ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

transformations in ros / rviz?

asked 2012-02-15 23:06:35 -0500

liquidmonkey gravatar image

updated 2014-01-28 17:11:23 -0500

ngrennan gravatar image

hi, i'm quite new to ros and am using rviz to display my point cloud which i have manipulated a little bit using pcl. by manipulated i only applied a voxel grid thereby reducing the number of points.

but my question is, how can i apply a transformation when using rviz? i was able to do it when using only pcl but now that i'm using ros and visualizing it all in rviz, i'm getting compiler errors for just #include pcl/common/transforms.h which is of course, stopping my transformation and translation from working.

or maybe transformations and translations are not necessary in ros? but there must be a way right?

thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-02-16 02:49:56 -0500

joq gravatar image

The pcl_ros package provides transforms for PCL point clouds.

Typically, you would add a <depend package="pcl_ros"/> to your manifest.xml, then:

 #include <pcl_ros/transforms.h>
edit flag offensive delete link more

Comments

thanks very much, worked great!

liquidmonkey gravatar image liquidmonkey  ( 2012-02-19 21:23:12 -0500 )edit
1

answered 2012-02-16 00:42:07 -0500

dornhege gravatar image

Transformations in ROS are handled with the tf library.

For rviz you need to publish whatever entity you have using a known frame_id. In addition someone needs to publish a transformation from the currently set fixed_frame to this frame_id. rviz will then display correctly.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-02-15 23:06:35 -0500

Seen: 361 times

Last updated: Feb 16 '12