1.5 Running the Motor Commands

1.5.0 Open A New Terminal And Start rosccore 

~$ roscore
... logging to /home/r2/.ros/log/7635f0cc-81c5-11e9-87e1-00044be40987/roslaunch-r2-race-11057.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://r2-race:33485/
ros_comm version 1.14.3


 * /rosdistro: melodic
 * /rosversion: 1.14.3


auto-starting new master
process[master]: started with pid [11069]

setting /run_id to 7635f0cc-81c5-11e9-87e1-00044be40987
process[rosout-1]: started with pid [11080]
started core service [/rosout]

1.5.1 Open A New Terminal And Start openr2_race_motors Node 

~$ rosrun openr2_race openr2_race_motors.py

1.5.1 Open A New Terminal And Publish openr2_race_motors Topic

~$ rostopic pub /openr2_race_motors/string std_msgs/String --once "forward"
~$ rostopic pub /openr2_race_motors/string std_msgs/String --once "reverse"
Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 11 mths agoLast active
  • 7Views
  • 1 Following