ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Turns out, the issue is due to the typo logerror
should be logerr
But more importantly, the reason more helpful error messages (e.g. AttributeError
when using logerror
) aren't appearing is becauserospy.init_node
isn't started in its own thread. The following should be used instead
threading.Thread(target=lambda: rospy.init_node('example_node', disable_signals=True)).start()
as mentioned here