Services available
Rosserial lib provides following services to control the mainboard.
/reset service
Service call resets odometry ( /odom
) and current velocity setpoint ( /cmd_vel
). Robot stops and resets its position info. Service call accepts no parameters.
If one moves robot after /reset call it can be seen that odometry data is non-zero, although wheels did not spin. That happens because robot uses IMU data to calculate its position.
/set_pid service
Service sets PID values for motor control algorithm. Message type is turtlebro/PidRegulator
/board_info service
Service provides data on firmware version and MCU unique serial number
/start_motor service
Service starts LIDAR rotation ( RPLidar ). No parameters needed.
/stop_motor service
Service stops LIDAR rotation ( RPLidar ). No parameters needed.
Last updated
Was this helpful?