3 Robot information release

According to different models, you only need to set the purchased model in [.bashrc], X1(ordinary four-wheel drive) X3(Mike wheel) X3plus(Mike wheel mechanical arm) R2(Ackerman differential) and so on. Section takes X3 as an example

Open the [.bashrc] file

Find the [ROBOT_TYPE] parameter and modify the corresponding model

This section takes X3, Mecanum wheeler as an example.

3.1 Node subscription and publishing topics

3.1.1 Function package path:

Functions that ROSMASTER needs to implement: speed control, speed information feedback, battery voltage feedback, buzzer control, running water lamp control.(Note: In the version with a robotic arm, it is also necessary to implement robotic arm control, robotic arm status feedback and PTZ control)

3.2 node data view

3.2.1 Start

3.2.2 View topic list

image-20220310143516736

image-20220326181727628

3.2.3 Program flow chart

image-20220214113442759

3.2.4 Core code(Mcunamu_driver.py)

3.2.5 Analysis of three callback functions

3.2.6 Use rostopic pub command to send running water light control, speed control, buzzer control commands

3.2.7 Use the rostopic echo command to view speed information and battery voltage