Ask Your Question
0

How to transform the whole /tf frame?

asked 2014-05-21 03:49:01 -0500

Xegara gravatar image

updated 2017-08-15 15:29:32 -0500

tfoote gravatar image

Given I have an occupancy grid map which I would want to transform with a certain [tx,ty,theta] transformation. How do I do it? The tf tree is posted below and also the rviz which contains the grid map. My ultimate goal is that I would have two occupancy grid maps which I would have to apply a transformation to either one of them so that they can be overlapped -- Map Merging. I'm looking for the mechanism in ROS where I can transform the map, particularly the whole /tf frame so that even the robot's pose will be transformed into a new coordinate frame.

http://postimg.org/image/d4xd3d39p/

http://postimg.org/image/vrdqce6x9/

edit retag flag offensive close merge delete

Comments

Hi Xegara, I am looking at your /tf frames in the first image, and I am wondering how you were able to link /camera_link to /map? What launch files did you use to connect octomap and rgbdslam? Are you able to share what code in the .launch file (or your method of connecting the two and projecting the map?) Thank you.

xuningy gravatar image xuningy  ( 2014-05-28 08:00:35 -0500 )edit

You can run the following commands: roscore roslaunch rgbdslam slow_computer.launch roslaunch rgbdslam octomap_server.launch roslaunch openni_launch openni.launch The rgbdslam node itself also creates the tf tree I uploaded in the first image.

Xegara gravatar image Xegara  ( 2014-06-21 09:58:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-08-15 15:29:14 -0500

tfoote gravatar image

You can add a new tf frame with an offset from any existing frame to represent your new coodinate frame, and put the new map in that frame, transforming any objects into that coordinate frame first.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-05-21 03:49:01 -0500

Seen: 635 times

Last updated: Aug 15 '17