Skip to content

Tag: ros

Get ros message type at runtime

I’m hoping to have a config file loaded in via rosparam that includes the type for a generic callback to subscribe to. Right now this is what I have but can’t figure out how to make it work with the subscriber. Answer In Python you can use globals to lookup and return the message type from a strin…

Logging with Python, ROS, and C++

I have a codebase of Python and C++ code, including heavy use of ROS. Logging is done throughout the Python code with both system logger and rospy logging — contrived example: As for C++ code we need to add logging, probably with glog but I’m open to other options. Is there a way to integrate the …