2、Robot information release

After the program runs, the ROS expansion board will return real-time data, including voltage and IMU data. Connecting the car encoder can also obtain the speed of the car.

1、start mode

Taking our company's Rosmaster-X3 as an example, the terminal enters the following command to start,

image-20230529205227219

2、View topic nodes

Enter the command at the terminal,

image-20230529205315888

image-20230529205330021

3、Reading Topic Data

If you want to read the voltage value, you need to enter the following command at the terminal,

image-20230529205428526

4、Publish topic data

To publish/cmd_ Taking speed data as an example, terminal input,

image-20230529205545401

5、Source code parsing

Please refer to the following path code for detailed code:~/driver_ws/src/yahboomcar_bringup/yahboomcar_bringup/Mcnamu_driver_X3.py