Overview

The DeepRacer Servo ROS package creates the servo_node which is part of the core AWS DeepRacer application and will be launched from the deepracer_launcher. More details about the application and the components can be found here.

License

The source code is released under Apache 2.0.

Supported ROS Distributions

  • Foxy

Node Details

servo_node

Subscribed Topics

/ctrl_pkg/servo_msg (msg/ServoCtrlMsg)
  • This message holds the scaled throttle and angle values in the range of [-1, 1] that will be translated based on the calibration to raw PWM values.
/ctrl_pkg/raw_pwm (msg/ServoCtrlMsg)
  • This message holds the raw PWM throttle and angle values to be set on the motor and servo.

Services

servo_gpio (srv/ServoGPIOSrv)
  • A service that is called enable/disable the servo GPIO pin.
set_calibration (srv/SetCalibrationSrv)
  • A service that is called to set the [min, mid, max, polarity] pwm values for the speed and steering calibration and store them in a file.
get_calibration (srv/GetCalibrationSrv)
  • A service that is called to get the [min, mid, max, polarity] pwm values for the speed and steering calibration from the saved file.
set_led_state (srv/SetLedCtrlSrv)
  • A service that is called to set the [red, green, blue] channel pwm values for the tail light LEDs and store them in a file.
get_led_state (srv/GetLedCtrlSrv)
  • A service that is called to get the [red, green, blue] channel pwm values for the tail light LEDs from the saved file.

Wiki: aws_deepracer_servo_pkg (last edited 2021-04-23 21:43:52 by SiddalingeshaDS)