Skip to content

Slam_gmapping #434

@Pentalink9

Description

@Pentalink9

Hi,

I'm trying to generate a map using slam_gmapping, but I seem to have problems getting the map to work.

Where is what I what I have understood so far:
FAST_LIO publishes camera_init -> body TF. The 3d point cloud which is published under /cloud_registered with header frame camera_init .

I have used this 3D point cloud and created a 2D laser scan using pointcloud_to_laserscan package, With the header frame camera_init. It seems to be working alright. I am testing the system using the rosbag outdoor_Mainbuilding_10hz_2020-12-24-16-38-00.bag.
In order to use gmapping I need the odom -> base_link -> lidar_frame.
I have given the following params to gmapping.

(/scan/header: camera_init)

My issue is gmapping doesn't seem to extend the map from the origin. It just seems to be rotating around the axis when the drone is rotating. img attached. Image

I'm sure I have unwittingly made plenty of errors in my workflow. I appreciate if anyone can point them out or suggest a better way of getting gmapping(and navigation) to work with Livox Lidars.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions