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

With our cras_py_common library, it's actually quite easy:

from cras import get_msg_type
t = get_msg_type("sensor_msgs/Image")
print(t)
# prints <class 'sensor_msgs.msg._Image.Image'>

Install via sudo apt install ros-${ROS_DISTRO}-cras-py-common.