-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No map topic and visualization #103
Comments
The scan matcher hasn't been running since the node initialization, so it might simply be that no scans are being fed into the scan matcher. I suggest checking the connections with commands like ros2 topic info -v, ros2 node info, or using rqt_graph to ensure there are no issues. |
Do I need to define some additional transform for the map to base_link or will the scanmatcher do that itself? |
Probably it does that itself... Sorry, I haven't worked with tf recently, so my memory is a bit vague. |
Hello! The issue was resolved. The drone base_link transform frame had a "/" at the start of its name. The tf system was throwing errors but they were not being visualized. Also, the lidarslam.yaml file had to be updated to the new transform frame name. The package now works. I now need to tune the parameters of the graph_based_slam node so that it performs better optimization. The current setting seems to over-optimize it, optimizing curves in the trajectory as straight lines. |
The low resolution of the green path compared to the yellow path should not be an issue. I believe the map is properly created. ref |
@ShameerMasroor can you show what your tf looks like and what changes you made in lidarslam.launch.py and lidarslam.yaml file. this is what I have in lidarslam.launch.py
and lidarslam.yaml
my tf is I have the same issue. There is no visualization and map topic doesn't output anything. |
My yaml file:
My rqt_graph looks like this:
You need to ensure that there is a transform from the robot base link to the sensor frame. I am not sure if os_sensor is a base_link or simply the sensor frame. |
@rsasaki0109 I additionally wish to know if your work is an implementation of some paper. It would be great if you could tell me as that paper can teach me much more about how this algorithm is working. Thank you |
@ShameerMasroor Thanks for the response. It actually works with the tf configuration I posted above. It works when I publish lidar data with command |
@ShameerMasroor I believe it is using the orthodox algorithm of that time. Useful references might include Autoware's NDT Mapping, HDL Graph SLAM, BLAM, and LEGO LOAM. |
Hello!
I am trying to integrate your work with a project that I am working on.
My project involves using a drone affixed with a 3D Lidar to map a forest and localize itself.
My drone publishes the following topics, the relevant ones are /scan and /imu/out, and the namespace is simple_drone.
/scan is published as a topic with a message type of PointCloud2, and the IMU topic is of type Imu.
I tried to remap the parameters in the lidar_slam.launch.py file to the ones for my drone, as shown in the following code:
import os
import launch
import launch_ros.actions
from ament_index_python.packages import get_package_share_directory
def generate_launch_description():
What I feel that the issue lies in is with the transform frames. Do I need to make a transformation between the map and the base_link of the drone? Apologies as I am a beginner with ROS at the moment.
Terminal output on running the lidarslam launch file
Secondly, RVIZ shows absolutely no output. I see that some /map and /modified map is being published, but PointCloud2 is not visualizing it.
It seems the map frame is missing
The following shows the point cloud created by the lidar:
I am unsure as to what the issue is. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: