robomaster_msgs
- package robomaster_msgs
This package implements all Robomaster specific interfaces used by the driver node
RoboMasterROS
. Most interfaces maps the arguments of SDK methods (e.g., robomaster_msgs/action/Move maps to arguments ofrm:robomaster.chassis.Chassis.move()
or the information provided by SDK subscribers (e.g., robomaster_msgs/msg/ChassisStatus maps to the callback arguments inrm:robomaster.chassis.Chassis.sub_status()
).Summary
Messages
Services
Interfaces
Messages
Services
- service robomaster_msgs/srv/GetADC
Command to read on the Analog to Digital Converter (ADC) interface of one of the sensor adapters.
- Request fields:
- Response fields:
- service robomaster_msgs/srv/GetIO
Command to read an IO pin state of sensor adapters.
- service robomaster_msgs/srv/GetPulse
Command to read the pulse duration measured by one of the sensor adapters.
- Request fields:
- Response fields:
Actions
- action robomaster_msgs/action/GripperControl
The gripper goal to open, close, or pause, by applying some power.
The action succeeds when the gripper reaches the the target state.
- Goal fields:
- Goal constants:
- Result fields:
duration (builtin_interfaces/msg/Duration) – the duration of the action
- Feedback fields:
current_state (uint8) – the current gripper state: one of
PAUSE
,OPEN
, orCLOSE
- action robomaster_msgs/action/Move
An action to move the robot relative to its current pose, at desired angular and linear speeds using the onboard control.
The action succeeds when the robot arrives near the goal pose.
- Goal fields:
- Feedback fields:
progress (float32) – the relative progress towards goal from 0 to 1
- action robomaster_msgs/action/MoveArm
An action to move the arm end effector using the onboard control. Coodinates may be relative to the current end effector position or absolute with respect to
arm_base_link
.The action succeeds when the end effector come closest to the target point as possible .. note:: it may not be able to reach the target point
- Goal fields:
- Feedback fields:
progress (float32) – the relative progress towards goal from 0 to 1
- action robomaster_msgs/action/MoveGimbal
An action to rotate the gimbal using the onboard control. Attitute can be specified in four different frames.
The action succeeds when the gimbal reaches the target orientation.
- Goal fields:
yaw (float32) – target yaw in rad
pitch (float32) – target pitch in rad
yaw_speed (float32) =
0.52
– maximal yaw rotation speed in rad/spitch_speed (float32) =
0.52
– maximal pitch rotation speed in rad/sframe (uint8) =
3
– the frame in which target orientation is specified. One ofFIXED
,GIMBAL
,CHASSIS_GIMBAL_PITCH
, orCHASSIS_FIXED_PITCH
- Goal constants:
FIXED (uint8) =
0
– Frame: gravity aligned, origin set at boot (same frame as chassis odometry and imu)GIMBAL (uint8) =
1
– Frame: attached to gimbal, useful to send relative movements.CHASSIS_GIMBAL_PITCH (uint8) =
2
– Frame: yaw aligned to chassis, pitch as in GIMBALCHASSIS_FIXED_PITCH (uint8) =
3
– Frame: yaw aligned to chassis, pitch as in FIXED
- Feedback fields:
progress (float32) – the relative progress towards goal from 0 to 1
- action robomaster_msgs/action/MoveServo
An action to rotate a servo using the onboard control.
The action succeeds when the servo reaches the target angle.
- action robomaster_msgs/action/PlaySound
An action to play a predefined sound or an audio file from the speaker.
The action succeeds when the speaker finishes to play.
- Goal fields:
- Feedback fields:
- action robomaster_msgs/action/RecenterGimbal
An action to recenter the gimbal using the onboard control distict from robomaster_msgs/action/MoveGimbal to trigger a specific onboard action.
The action succeeds when the gimbal reaches the neutral orientation.