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

bag_to_pcd invalid characters

asked 2022-12-06 22:35:44 -0500

sinsinsinsin gravatar image

updated 2022-12-06 22:36:02 -0500

Hello

I transformed a rosbag file to pcd file by ros_tool bag_to_pcd.

with some success output like this:

Got 50384 data points in frame velodyne on topic /velodyne_points with the following fields: x y z intensity ring time Data saved to rostool_output/1628410321.879456997.pcd

Got 50367 data points in frame velodyne on topic /velodyne_points with the following fields: x y z intensity ring time Data saved to rostool_output/1628410321.979679108.pcd

Got 50357 data points in frame velodyne on topic /velodyne_points with the following fields: x y z intensity ring time Data saved to rostool_output/1628410322.079864025.pcd

But when I clicked the pcd file. the header part is valid, with some info like FIELDS SIZE HEIGHT DATA binary but the following data parts are invalid characters

image description

Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-12-07 01:43:28 -0500

ljaniec gravatar image

The header suggests by using DATA binary that your editor is trying to show binary values instead of UTF-8 etc.

Can you use some visualization tool, like https://foxglove.dev/, to visualize and debug these PCDs?

edit flag offensive delete link more

Comments

Thanks. I didn't try this tool but eventually manually saved the info in ASCII format. I will try this tool next time

sinsinsinsin gravatar image sinsinsinsin  ( 2023-02-12 11:16:21 -0500 )edit

So what is the status of this question? Can you load this bag in the code? Was the rosbag correct? Conversion to ASCII - how did you do it manually?

ljaniec gravatar image ljaniec  ( 2023-02-12 14:52:55 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-12-06 22:35:44 -0500

Seen: 99 times

Last updated: Dec 07 '22