Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tf coordinate transformation #4

Open
wangmengjian opened this issue Nov 9, 2020 · 1 comment
Open

tf coordinate transformation #4

wangmengjian opened this issue Nov 9, 2020 · 1 comment

Comments

@wangmengjian
Copy link

Hello, how to realize the coordinate transformation of two robots through iop?Through ros, I can get the relative position of two robots in tf, but with iop, the tf trees on the two machines are different.

@atiderko
Copy link
Member

Hi, sorry for late answer!

you find an example for two robots in fkie_iop_cfg_sim_stage.

You need a client for each robot and a global position for each robot. In simulation it is done by tf2satfix.py on the robot side.

If global position available the client on OCU side creates tf automatically [world->anchor->base_link]. For multiple robots you have to rename frame id's, e.g:

    <param name="tf_frame_odom" value="/$(arg ns)/odom"/>
    <param name="tf_frame_robot" value="/$(arg ns)/base_link"/>
    <param name="tf_frame_costmap" value="/$(arg ns)/costmap"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants