Skip to content

Uhrendoktor/tf2_remapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tf2_remapper

A ROS2-Node for remapping frame_ids in generic Message types on a given list of topics: i.e. the /tf or /tf_static topics.

Currently frame-ids in the following message parts will be remapped:
std_msgs::msg::Header (frame_id)
tf2_msgs::msg::TFMessage (frame_id, child_frame_id)

Disclaimer

The code for this project is not yet fully tested and most certainly not bugfree. If you encounter any bugs while trying to use this project, feel free to commit a pull-request.

Usage

Arguments of the tf2_remapper ROS2-Node: frame_mapping - string (json):

[
    { "reg": "a|b|c", "rep": "[$&]"}, // albert likes apples -> [a]l[b]ert likes [a]pples
    ...
    { "in": "wierd_base_link", "out": "base_link"},
    { "in": "wierd_base_link/other_link", "out": "base_link/other_link"}, // only replaces full occurences
    ...
]

topic_mapping - string (json) same rules as in frame_mapping:

[
    { "reg": "abc", "rep": "def"}, // /abc/test -> /def/test
    ...
    { "in": "/velodyne_points", "out": "/reframed_points"},
    // only replaces full occurences
    ...
]

In booth settings only the first match will be used!

topic_refresh_rate - int (default: 1000ms) the intervall in which the available topics are refreshed. When a subscribed topic goes down, the remapper will follow by closing its subscription and publisher. When a new valid topic is discovered the remapper will open a new subscription and publisher. Changing this on runtime is not possible!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors