Classes | |
| class | MiR100Bridge |
| class | PublisherWrapper |
| class | SubscriberWrapper |
| class | TopicConfig |
Functions | |
| def | _cmd_vel_dict_filter (msg_dict) |
| def | _move_base_feedback_dict_filter (msg_dict) |
| def | _move_base_goal_dict_filter (msg_dict) |
| def | _move_base_result_dict_filter (msg_dict) |
| def | _prepend_tf_prefix_dict_filter (msg_dict) |
| def | _remove_tf_prefix_dict_filter (msg_dict) |
| def | _tf_dict_filter (msg_dict) |
| def | _tf_static_dict_filter (msg_dict) |
| def | main () |
Variables | |
| list | PUB_TOPICS |
| static_transforms = OrderedDict() | |
| list | SUB_TOPICS |
| string | tf_prefix = '' |
|
private |
Converts a geometry_msgs/Twist message dict (as sent from the ROS side) to a geometry_msgs/TwistStamped message dict (as expected by the MiR on software version >=2.7).
Definition at line 66 of file mir_bridge.py.
|
private |
Definition at line 50 of file mir_bridge.py.
|
private |
Definition at line 42 of file mir_bridge.py.
|
private |
Definition at line 60 of file mir_bridge.py.
|
private |
Definition at line 125 of file mir_bridge.py.
|
private |
Definition at line 152 of file mir_bridge.py.
|
private |
Definition at line 80 of file mir_bridge.py.
|
private |
The tf_static topic needs special handling. Publishers on tf_static are *latched*, which means that the ROS master caches the last message that was sent by each publisher on that topic, and will forward it to new subscribers. However, since the mir_driver node appears to the ROS master as a single node with a single publisher on tf_static, and there are multiple actual publishers hiding behind it on the MiR side, only one of those messages will be cached. Therefore, we need to implement the caching ourselves and make sure that we always publish the full set of transforms as a single message.
Definition at line 87 of file mir_bridge.py.
| def mir_bridge.main | ( | ) |
Definition at line 485 of file mir_bridge.py.
| list mir_bridge.PUB_TOPICS |
Definition at line 176 of file mir_bridge.py.
| mir_bridge.static_transforms = OrderedDict() |
Definition at line 30 of file mir_bridge.py.
| list mir_bridge.SUB_TOPICS |
Definition at line 317 of file mir_bridge.py.
| string mir_bridge.tf_prefix = '' |
Definition at line 29 of file mir_bridge.py.