Open iSIlya opened 4 years ago
hi @iSIlya , which rosbag did you play? You can use rqt_graph
to check whether each rosnode is connected correctly.
hi @iSIlya , which rosbag did you play? You can use
rqt_graph
to check whether each rosnode is connected correctly.
Thanks for your answer, but I've already figured it out. Everything is working. The only question left is how to save the result of the slam? I mean how to save the resulting final cloud
hi @iSIlya , which rosbag did you play? You can use
rqt_graph
to check whether each rosnode is connected correctly.Thanks for your answer, but I've already figured it out. Everything is working. The only question left is how to save the result of the slam? I mean how to save the resulting final cloud
There is no API for map saving yet, you can subscribe the topic /laser_cloud_surround
and save it as PCD file.
Hi @iSIlya could you please share with us how you figured it out? Perhaps a step-by-step guide? Thanks
Hi @iSIlya could you please share with us how you figured it out? Perhaps a step-by-step guide? Thanks
I am using steps like this:
Launch order for slam in real time:
Open a terminal in the ~ / horizon_ws directory (Data processing service and building slam)
cd ~ / horizon_ws / && source devel / setup.bash
Open another terminal in the ~ / ws_livox directory (Connecting to the scanner and receiving data)
and execute the command
cd ~ / ws_livox / && source ./devel/setup.sh
In the first terminal (~ / horizon_ws), execute the command
roslaunch horizon_highway_slam horizon_highway_slam_host.launch IMU: = 0
In the second terminal (~ / ws_livox) execute the command
roslaunch livox_ros_driver livox_lidar_msg.launch bd_list: = "1HDDH1200100451"
or
roslaunch livox_ros_driver livox_lidar_msg.launch
Slam in real time has been launched! To stop, press ctrl + C first in the second and then in the first terminal.
Startup order for recording:
1.Open a terminal in the ~ / ws_livox directory (Connecting to a scanner and receiving data)
and execute the command
cd ~ / ws_livox / && source ./devel/setup.sh
Open the terminal in the directory where we want to save the file, I saved it here
cd ~ / Livox-SDK / build / sample / lidar_lvx_file
In the first terminal (~ / ws_livox), execute the command
roslaunch livox_ros_driver livox_lidar_msg.launch bd_list: = "1HDDH1200100451"
or
roslaunch livox_ros_driver livox_lidar_msg.launch
In the second terminal, execute the command
rosbag record -a horizon_ghway_mapping
Recording has started, to stop press ctrl + C first in the second terminal, and then in the first
We have a file of this type "2020-09-16-14-39-39.bag"
In order to open the file, you need to open another terminal in the ~ / horizon_ws directory
cd ~ / horizon_ws / && source devel / setup.bash
and execute the command
roslaunch horizon_highway_slam horizon_highway_slam_host.launch IMU: = 0
In the second terminal (where the record command was executed), execute the play command specifying the file
rosbag play 2020-09-16-14-39-39.bag
Done!
Thank you @iSIlya , you are awesome. I will try it and i will send feedback :)
I did it. Thanks again @iSIlya. For anyone in trouble, perhaps this will help: https://github.com/BellosC/lidar-slam-3d-docker
You can build the image from the repository or use the one uploaded in DockerHub. Careful: It doesn't work on ARM architecture (raspberry pi).
Hello. I used the compilation method. No errors occurred during assembly. When I execute this command
roslaunch horizon_highway_slam horizon_highway_slam_host.launch
then I have a black screen and nothing happens.Console output
The "Rviz" viewport is empty