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

goal_status: actionlib_msgs/GoalStatus

this doesn't look like a proper Python type name to me.

shouldn't it at least be actionlib_msgs.msg.GoalStatus?

however Im getting errors (expectedly) when type hinting for rosmsgs during function callbacks...

why expectedly?

ROS msgs in Python are Python modules containing (mainly) a class. So you should be able to treat them as such.

goal_status: actionlib_msgs/GoalStatus

this doesn't look like a proper Python type name to me.

shouldn't it at least be actionlib_msgs.msg.GoalStatus?

however Im getting errors (expectedly) when type hinting for rosmsgs during function callbacks...

why expectedly?

ROS msgs in Python are Python modules containing (mainly) a class. So you should be able to treat them as such.

As long as the packages are on the PYTHONPATH, I'd expect things to work.

goal_status: actionlib_msgs/GoalStatus

this doesn't look like a proper Python type name to me.

shouldn't it at least be actionlib_msgs.msg.GoalStatus?