ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Just publish on /pan_controller/command messages of type std_msgs/Float64. Here's how to.

Line 7 would look like:

pub = rospy.Publisher('/pan_controller/command', Float64, queue_size=10)

and 13 like:

pub.publish(1.5)