Ask Your Question
0

pointcloud .pcd in rviz - transformation problem

asked 2016-04-27 08:10:33 -0600

almosca gravatar image

Hello guys, with another program I obtained my pointcloud and saved in a .pcd file. Now I'm trying to insert the pointcloud into the ros visualizer. I did the program and everything works fine. The only problem is that the cloud is a weird positon (as shown in the image below):

image description

the right-up part should be the floor. How can I do for making a right transformation and put the pointcloud in a right way?

edit retag flag offensive close merge delete

Comments

Are you publishing it with the correct tf frame?

Felix Endres gravatar imageFelix Endres ( 2016-04-27 09:25:53 -0600 )edit

well i don't know I followed a tutorial for importing the point cloud on rviz! the point are taken respect to the kinect that is on the gripper of the robot

almosca gravatar imagealmosca ( 2016-04-27 10:03:25 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-04-29 04:43:49 -0600

Even though "Fixed Frame" says "odom" in your picture, rviz seems to display the point cloud in the coordinate frame of the sensor. I.e. your sensor is placed at the displayed coordinate axes.

You need to set the "Fixed Frame" to a frame that is (in reality) placed on the floor and make the transformation from there to the sensor known via tf. Often these transformations are available from the robot model and published on /tf, so you need only to select the correct frames. If you attached the sensor yourself, you probably need to tell rviz the transformation from, e.g., the gripper to the sensor's optical center (which would be an extrinsic calibration issue).

Then fixed frame in RViz should be, e.g. "base_link", "odom", "world" or "map". The "frame_id" set in the header of the pointcloud then needs to be the frame of the sensor.

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

1 follower

Stats

Asked: 2016-04-27 08:10:33 -0600

Seen: 512 times

Last updated: Apr 29 '16