Open ashBabu opened 5 months ago
the problem is your tf tree. In Rviz, for seen the map, it show the tf "map". But here your frame map isn't active/powered. for the active this map, you must to create a tf transform dynamic with the tf odom and the tf base_link (tf of your robot). Like that, your tf map will be active. Because actually, the point of your robot isn't send at your tf map, so the map don't create cause she not receives points.
@Spirquel : Thanks for the reply. However I am still a bit confused here. The odom --> base_link
transform is to be published by the SLAM system, isn't? What I observed after running the LIO_SAM is that it is not being published for reasons unknown to me yet.
The map-->odom
is a static transform published by the run.launch.py
and hence it's available as a detached one in the TF tree
@Spirquel : Thanks for the reply. However I am still a bit confused here. The
odom --> base_link
transform is to be published by the SLAM system, isn't? What I observed after running the LIO_SAM is that it is not being published for reasons unknown to me yet. Themap-->odom
is a static transform published by therun.launch.py
and hence it's available as a detached one in the TF tree
Hi, have you resolve this? I have exact same problem as you. My mapped trajectory is shown, but there's no concatenated points. I wonder if this problem happens related to ros2 bag
For me the problem is the name of yours frame. Because if you have the same problem, in use "ros2 topic echo /[name of your topic]" you see this data. For know the name of your topic use by ros2bag, you have to use "ros2 bag info [name_bag].db3". But if you test to use "ros2 topic /echo [name_topic_lio_sam]" i think you see nothing, because your lio sam is not link with your bag. For see the connections with your topic and node, you can to use "rqt_graph" is a command for show these connection and for know if your topic bag and lio-sam are connected. For me the problem is here :
these frame are used for get your tree frame. So you have to change the name in the param.yaml with your name frame, and change the name "child_frame_id" by your lidar_name frame or maybe your base_link. And for your "map trajectory" I assumed is your imu trajectory and no the slam trajectory isn't it ?
Hi, thank you so much for the speedy reply. Yes I didn't think of maybe the trajectory is just a visualization of my imu trajectory. If that's the case that would mean I never really initiated the correct mapping process. As I did ros2 bag info my-bag.db3, these are the topics I got:
And accordingly, I have my params.yaml file as follows:
And the mapoptimization:
As I checked with the frame_id, it is velo_link. I am trying to run kitti360 ros2 bag that I converted by myself. It only contains point cloud data, imu, and gps/velo, gps/fixed. As I did ros2 topic echo, I could see all four topics publishing stuff(not empty) help will be greatly appreciated!!
Okay, so your bag isn't a problem. The problem is the connection with the slam. Can you use "rqt_graph" when your launch your bag and your slam (it's for show all connections in the ros system). And send with that your tf_tree (with "ros2 run tf2_tools view_frames" or "ros2 run rqt_tf-tree rqt_tf_tree (it's like rqt_graph but for frames)). Also, you have nothing msg by your slam ? like a problem with odom frame or with the time ?
Okay, so actually your bag and your slam don't talk to each other. I can to explain to you the actual problem. When i see your rqt_graph, it show the node "/rosbag2_player" (it's your bag play) and the different node of lio-sam. so the connection between bag and slam doesn't exist. here a exemple with a connection beetwen a rosbag an slam :
(sorry because i don't use your slam actually), we see the topic "/points_raw" (it's my topic for PointCloud2) and my slam is sub (subscriber) for this topic. So the actually problem for you is this link. The answer is in your warning "/home/nobata/lio-sam-pix-ws/install/lio_sam/share/lio_sam /config/params.yamal", you have a file config (the file for configuration the name of topic to you bag and other parameters) and this file are not the good format, you have a "params.yamal" but the real format is "params.yaml" so when you "colcon build --symlink-install" (--symlink-install is for change the python file and yaml files without to colcon build again) you build a bad params.yamal. For this you have to go to you config folder and change the format "yamal" to "yaml". it is with this file that your slam knows the topic to which sub, so without him the connection don't exist. You understand what i said ? (I'm French and my English is pretty bad). when you have this connection, the slam should react to it. you can see this connection thanks to rqt_graph. without this connection, your slam is launched but it does nothing. Also, use "rm -r build install" (when you are in your folder lio_sam) for delete yours bad folder build and install.
Hi thank you for your speedy reply. I was able to spot this problem immediately after I posted this error and was about to edit my reply(I agree it is rather stupid!! I apologize for wasting your time. Thank you for your speedy reply!!) and I could see the GPS trajectory in my liosam.
rqt_graph
for |ros2 run tf2_tools view_frames it is showing this:
t'inquietes. Actually your slam is sub only to you imu (when i read the msg for your rviz, your slam is maybe sub to you gps but i not sure.) The problem is maybe a param in your yaml, your slam said "point cloud ring channel not valid". So search in internet (web) your velodyne and number of this channel ring, it's at change here :
usually it's 16 (for little lidar) or 32.
I have resolved the issue. It's due to the missing ring number that imageProjection.cpp was not working. Please refer to #452 . Both KITTI and KITTI360 dataset are missing ring number so it needs to be calculated manually. But some niche threshold needs further tuning as well, might as well refer to # #https://blog.csdn.net/qq_39607707/article/details/124758082?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-3-124758082-blog-122576884.pc_relevant_3mothn_strategy_recovery&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-3-124758082-blog-122576884.pc_relevant_3mothn_strategy_recovery&utm_relevant_index=3 if you are interested
Hi, I am in ROS2 humble, ubuntu 22.04 I have downloaded the rooftop_ouster_dataset.bag from here. Then I used rosbags to convert ROS1 bag to ROS2 bag. My params file is as follows (only the ones I changed)
I have used a static transform publisher to link
lidar_link
toos_lidar
as this is the frame id of the/points_raw
.ros2 bag play my_bagfile
ros2 launch lio_sam run.launch.py
My tf tree![image](https://github.com/TixiaoShan/LIO-SAM/assets/10324110/1ce79d35-b579-4469-b4ae-d436d9e3c9c1)
There's nothing shown in Rviz![image](https://github.com/TixiaoShan/LIO-SAM/assets/10324110/6556f54a-947e-404c-8e9c-c2c15fb4e51b)
Any pointers to where am I going wrong? Thanks in advance