Skip to main content
3 votes
Accepted

Transform PointCloud message

Welcome to Robotics Stack Exchange! I have noticed several concerns with your code snippet, which I would like to address below: Change the signature of your callback to receive ...
ravi's user avatar
  • 1,401
2 votes
Accepted

Point cloud in gazebo environment

So you want to take a ros2 PointCloud2 message and write it to a .pcd file. There is a existing ros1/ros2 package called pcl_ros. The src code for both is in this ...
Mike973's user avatar
  • 976
2 votes
Accepted

Point cloud using static lidar

For object detection in a point cloud, I'll propose a process for you to follow instead of just providing links. I assume you don't have experience with machine learning and that is driving your ...
billy's user avatar
  • 336
2 votes
Accepted

Rviz crash when adding topic

You need to set orientation.w = 1 for every quaternion in the message if you don't have another orientation you want them to have. It's unfortunate that ...
Lucas Walter's user avatar
  • 3,387
2 votes
Accepted

colorize area of point cloud on a 2D image

I managed to achieve better results with cv::dilate. As far as I tested, I haven't lost any perfomance and it is really easy to implement.
renan's user avatar
  • 53
1 vote
Accepted

I'm trying to visualize intel realsense D435's pointcloud in ros2 rviz2 with gazebo ignition fortress but the messages aren't getting through

I was able to make the point cloud data go through the parameter bridge after defining the correct fixed frame of reference for ros2 rviz2. My plain simulation world with gazebo ignition fortress had ...
ahiyantra's user avatar
1 vote

Alternative to tf2_sensor_msgs.do_transform_cloud in ROS 2[Humble] for Point Cloud Transformation?

This is the another way to do it: ...
Dragon's user avatar
  • 41
1 vote

Alternative to tf2_sensor_msgs.do_transform_cloud in ROS 2[Humble] for Point Cloud Transformation?

I could not find one but it is not too bad to write yourself. Using numpy and scipy you can do something like. ...
Tariq Soliman's user avatar
1 vote

Alternative to tf2_sensor_msgs.do_transform_cloud in ROS 2[Humble] for Point Cloud Transformation?

I would recommend using pcl and pcl_conversions. It allows you to convert ros pointcloud2 to pcl message type, do the transformation you need to and then convert back to ros pointcloud2. If your are ...
Ravi Kumar's user avatar
1 vote
Accepted

Wrong Point Cloud orientation in Rviz

In ros, the convention for camera-like devices is to orient the "optical frame" so that +x points right, +y points down, and the +z points forward (toward the scene.) One method to get the ...
Mike973's user avatar
  • 976
1 vote

Saving PLY file without rviz

Try point_cloud_io write. rosrun point_cloud_io write _topic:=/your_topic _folder_path:=/home/user/my_point_clouds It saves a ply file per point cloud message, if ...
Lucas Walter's user avatar
  • 3,387
1 vote

colorize area of point cloud on a 2D image

I think that a good approach could be: get the convex hull of each point set with convexHull fill the polygons with ...
Luca's user avatar
  • 150
1 vote
Accepted

ROS 2 - Poincloud2 message drop when trying to display in RVIZ2

What is your fixed frame? I see you are changing the frame_id every time. I am thinking that without proper connection between your pointcloud frame and rviz fixed frame, it is not able to visualize ...
Yusuf Etkin KIZILDAĞ's user avatar
1 vote

Transform PointCloud message

Maybe a good first step is to convert to PointCloud2 using the snippet from convertPointCloudtoPointCloud2 from the package ...
ignacio's user avatar
  • 125
1 vote
Accepted

RViz2 seems to have problems with dynamic TF when visualizing sensor data

If you are using simulation, the ros time is the 'number of seconds since simulation start'. However, the timestamp in your error message is much too large ("time 1675148130.527") for that, ...
Mike973's user avatar
  • 976

Only top scored, non community-wiki answers of a minimum length are eligible