|
|
| __init__ (self) |
| None | drive_forward (self, float duration=2.0, float lin_vel_x=0.15, float lin_vel_y=0.0, float ang_vel_z=0.0, float|None stabilize_time=None, bool wait_for_warmup=True, float ramp_up_duration=3.0, float ramp_up_increment=0.01) |
|
| | publisher_ |
|
float | controller_update_rate = 50.0 |
|
int | stabilization_delay_steps = 50 |
|
int | blend_in_steps = 200 |
| tuple | stabilization_delay_time |
|
int | blend_in_time = self.blend_in_steps / self.controller_update_rate |
|
tuple | controller_warmup_time = self.stabilization_delay_time + self.blend_in_time |
|
|
float | _sleep_time (self) |
|
None | _wait_for_subscriber (self, float timeout_s=10.0) |
|
None | _publish_for (self, float duration_s, VelocityCommandWithHead msg, int log_every_n=200) |
| None | _ramp_velocity (self, float duration_s, float lin_vel_x, float lin_vel_y, float ang_vel_z, float start_increment) |
|
|
VelocityCommandWithHead | _make_cmd (float lin_x=0.0, float lin_y=0.0, float ang_z=0.0, head_cmds=None) |
◆ _ramp_velocity()
| None test_motions.DriveForward._ramp_velocity |
( |
| self, |
|
|
float | duration_s, |
|
|
float | lin_vel_x, |
|
|
float | lin_vel_y, |
|
|
float | ang_vel_z, |
|
|
float | start_increment ) |
|
protected |
Ramp the dominant axis (x or y) from ±start_increment to its target.
◆ drive_forward()
| None test_motions.DriveForward.drive_forward |
( |
| self, |
|
|
float | duration = 2.0, |
|
|
float | lin_vel_x = 0.15, |
|
|
float | lin_vel_y = 0.0, |
|
|
float | ang_vel_z = 0.0, |
|
|
float | None | stabilize_time = None, |
|
|
bool | wait_for_warmup = True, |
|
|
float | ramp_up_duration = 3.0, |
|
|
float | ramp_up_increment = 0.01 ) |
Publish velocity commands for a test segment.
◆ publisher_
| test_motions.DriveForward.publisher_ |
Initial value:= self.create_publisher(
VelocityCommandWithHead, "/onnx_policy_controller/cmd_velocity_with_head", 10
)
◆ stabilization_delay_time
| tuple test_motions.DriveForward.stabilization_delay_time |
Initial value:= (
self.stabilization_delay_steps / self.controller_update_rate
)
The documentation for this class was generated from the following file:
- ros2_control_demos/example_18/bringup/launch/test_motions.py