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 know this is a late reply, yet the information here helped me find another alternative thus sharing it might be helpful to others. What I did was change the init_node to :

rospy.init_node("serial_node", anonymous=True) rospy.loginfo("ROS Serial Python Node {}".format(rospy.get_caller_id()))

This way every node created is unique thus you can have as many serial_nodes as you wish. Till now I haven't found any repercussions and everything seems to work perfectly, if you know about any known issues with my solution feel free to comment.

For those out there which do not know which file to modify, the change was carried out on serial_node.py which could be found in your ros workspace in your rosserial/rosserial_python/nodes folder.

I know this is a late reply, yet the information here helped me find another alternative thus sharing it might be helpful to others. What I did was change the init_node to :

rospy.init_node("serial_node", anonymous=True) rospy.loginfo("ROS Serial Python Node {}".format(rospy.get_caller_id()))

This way every node created is unique thus you can have as many serial_nodes as you wish. Till now I haven't found any repercussions and everything seems to work perfectly, if you know about any known issues with my solution feel free to comment.

For those out there which that do not know which file to modify, the change was carried out on serial_node.py which could be found in your ros workspace in your rosserial/rosserial_python/nodes folder.