flydra
flydra copied to clipboard
roslib.names does not exist
This might be a issue because I am using ros hydro, changing:
nodename = nodename[1:].split(roslib.names.SEP)[-1]
to:
nodename = nodename[1:].split(rospy.names.SEP)[-1]
Seems to fix the problem.
The Hydro API documentation for roslib
states "roslib is largely deprecated starting in the ROS Fuerte release", and the documentation for roslib.names states
Warning: do not use this library. It is unstable and most of the routines here have been superceded by other libraries (e.g. genmsg). These routines will likely be deleted in future releases.
Similar warnings appear in other places, and in particular, the ROS Wiki page for roslib recommends using rospy
instead.