type hinting rosmsgs in callbacks?
Trying to prepare proper documentation for a code review and I wanted to use type hinting, however Im getting errors (expectedly) when type hinting for rosmsgs during function callbacks...
Wanted to know if anyone else has experienced this and any workarounds?
def on_action_done(self, goal_status: actionlib_msgs/GoalStatus, result: rows/RowsResult) -> None:
def on_action_done(self, goal_status: GoalStatus, result: RowsResult) -> None:
Neither is working, both are throwing NameError exceptions.
python3.7.4
ROS1: noetic
have you built Noetic from source? The default Python 3 version supported on Ubuntu Focal by Noetic is
3.8
according to REP-3.