robomasters_ros
System Architecture
Get start
-
check if your computer has a catkin workspace in ~/ directory. If not,
mkdir catkin_ws
cd catkin_ws/
mkdir src
cd src/
git clone https://github.com/pico737/robomasters_ros.git
catkin_make
-
After you run the
roscore
, open a new terminal and pull the new code from github inside the ~/catkin_ws/src/robomasters_roscatkin_make -DCATKIN_BLACKLIST_PACKAGES="rm_cv;sensor_send"
source devel/setup.bash
(not necessary if it is in ./bashrc)rosrun trapezoid trapezoid_node.py/
-
Test to see if your node is correctly running without error, the serial communication is working, open a new terminal and
rosnode list
rostopic list
rosrun trapezoid client.py
-
to edit the file
roscd trapezoid/src
gedit trapezoid_node.py
roscd aimbot/src
gedit aimbot_node.py
roscd rm_cv/src
gedit rm_cv_node.py
-
to run the complete program
roscore
rosrun trapezoid trapezoid_node.py
rosrun aimbot aimbot_node.py
rosrun rm_cv rm_cv_node.py