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

Revision history [back]

click to hide/show revision 1
initial version

I had a similar topic when publishing anything but std_msgs from rosserial_arduino. Specifically, I am publishing sensor_msgs/JointState messages. For me adding nh.negotiateTopics after all nh.advertise and nh.subscribe calls did the trick:

# subscribe and advertise topics
nh.subscribe(position_sub);
nh.advertise(joint_pub);
# give serial_node.py a chance to get to know the topics
nh.negotiateTopics();