Livox-SDK / livox_ros_driver

Livox device driver under ros, support Lidar Mid-40, Mid-70, Tele-15, Horizon, Avia.
Other
365 stars 203 forks source link

It is converted to only 4 kb regardless of the original capacity. #56

Closed dmmp360view closed 3 years ago

dmmp360view commented 4 years ago

Hello Do I have to give an option to convert lvx file to bag file so that it can be converted normally? If you check the information in the bag file after conversion, the version and size will be shown below. Regardless of the original size.(4.0kb) Is there any way to solve this problem?

command

roslaunch livox_ros_driver lvx_to_rosbag_rviz.launch lvx_file_path:="/home/livox/test.lvx"

rosbag info /home/livox/test.bag

result path : /home/livox/test.bag version : 2.0 size : 4.0kb

Livox-SDK commented 4 years ago

Replace ("/home/livox/test.lvx") with your livox file path please, thanks!

dmmp360view commented 4 years ago

Of course I did. I'm not asking you that.!!!!!
It's an example. I've already converted a lot of files with that command. No errors. When converting an lvx file to a bag file, I am asking you how to use the parameter. ex) roslaunch livox_ros_driver lvx_to_rosbag_rviz.launch lvx_file_path:="/home/livox/test.lvx" If I don't use the parameter, does it not convert properly? What's the default setting?

Whether the original file size of lvx is large or small, it will be converted to 4.0 kb.

Livox-SDK commented 3 years ago

Hi dmmp360view, Hmm, let me explain this comment first roslaunch livox_ros_driver lvx_to_rosbag_rviz.launch lvx_file_path:="/home/livox/test.lvx" run-livox ros dirver convert the test.lvx under directory "/home/livox/ "to rosbag file yes, this parameter( lvx_to_rosbag_rviz.launch lvx_file_path:="/home/livox/test.lvx") is possible to be changed if you changed your lvx-file's name or put the lvx file under another directory the rosbag file converted will be placed under the same directory, that's the reason why when you check the detail of the rosbag file the path showed "/home/livox/test.bag"

let me make another example, if you have another lvx file need to be converted named: test_1.lvx under directory " /home/dmmp360view/" , just simply type: roslaunch livox_ros_driver lvx_to_rosbag_rviz.launch lvx_file_path:="/home/dmmp360view/test_1.lvx"

hope you found this answer is helpful.

walid-el commented 3 years ago

I have the same problem, It created the bad file, in the directory, but it s an empty bag file, I hope u can solve this one thank you