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

pylint is your linter, and so the import error here is because of a misconfiguration of your code development environment (unrelated to your actual error). Your actual error states that init_node has already been called: a ROS node should be created using init_node, but doing it more than once in a given process this error is presented. It looks like this is caused by putting the init_node call in your LatestJointStates class: that class then gets called more than once, and so init_node gets called more than once.

Instead, make sure that whatever is running your main thread is in charge of your init_node and rospy.spin() calls.