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

static_transform_publisher - coordinate transformation

asked 2022-12-23 11:27:35 -0600

Vals9 gravatar image

updated 2022-12-23 20:49:51 -0600

Good morning. I am currently working on a project to extract lanes from LiDAR scan (currently from a bag file) using PCL library. The main issue is that LiDAR is angled and picking up extra stuff (e.g. road barrels). I added static_transform_publisher node to have the point cloud leveled and was thinking of basically slicing it down to get rid of most of the extra noise. I can see transformation successfully in Rviz, but when I try to adjust the Cropbox, it looks like original coordinates are being used. At this point I am confused about what I am missing so that not only I have transformed point cloud, but also updated coordinates after transformation. Do I need to do conversion of coordinates separately?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-12-24 07:24:58 -0600

Mike Scheutzow gravatar image

The LaserScan message is usually reported in the lidar frame. The frame name is in header.frame_id of the message. So yes, if you want to process the data in some other frame, you need to transform each scan sample.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-12-23 11:24:50 -0600

Seen: 178 times

Last updated: Dec 24 '22