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


SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.3

NODES

auto-starting new master
process[master]: started with pid [11069]
ROS_MASTER_URI=http://r2-race:11311/

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
  • 5 mths agoLast active
  • 3Views
  • 1 Following