Skip to content
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

Run LIO-SAM with Carla and ROS2 #469

Open
guzgonav opened this issue Jan 7, 2024 · 2 comments
Open

Run LIO-SAM with Carla and ROS2 #469

guzgonav opened this issue Jan 7, 2024 · 2 comments

Comments

@guzgonav
Copy link

guzgonav commented Jan 7, 2024

Hi,
I've been trying to use LIO-SAM to map a ros2bag recorded in carla, however I'm not able to make it work.
The topics I have are the following ones:

/carla/ego_vehicle/control/set_transform
/carla/ego_vehicle/enable_autopilot
/carla/ego_vehicle/gnss
/carla/ego_vehicle/imu
/carla/ego_vehicle/lidar
/carla/ego_vehicle/odometry
/carla/ego_vehicle/rgb_front/camera_info
/carla/ego_vehicle/rgb_front/image
/carla/ego_vehicle/rgb_view/camera_info
/carla/ego_vehicle/rgb_view/image
/carla/ego_vehicle/speedometer
/carla/ego_vehicle/vehicle_control_manual_override
/carla/map
/carla/markers
/carla/markers/static
/clock
/events/read_split
/events/write_split
/parameter_events
/rosout
/tf

The tf_tree is the following:
image

So I've changes the params.yaml topics settings to:

# Topics
    pointCloudTopic: "/carla/ego_vehicle/lidar"                   # Point cloud data
    imuTopic: "/carla/ego_vehicle/imu"                        # IMU data
    odomTopic: "/carla/ego_vehicle/odometry"                    # IMU pre-preintegration odometry, same frequency as IMU
    gpsTopic: "/carla/ego_vehicle/gnss"                    # GPS odometry topic from navsat, see module_navsat.launch file

With that changes, the SLAM algorithm doesn't work, what else do I need to modify?

Thanks in advance :)

@TZECHIN6
Copy link

Can u clarify how it doesn't work? Miss aligned or even no map is built

@guzgonav
Copy link
Author

It didn't show map at all, I finally made it work changing the following in config/params.yaml

    # Topics
    pointCloudTopic: "/carla/ego_vehicle/lidar"                   # Point cloud data
    imuTopic: "/carla/ego_vehicle/imu"                        # IMU data
    odomTopic: "/carla/ego_vehicle/odometry"                    # IMU pre-preintegration odometry, same frequency as IMU
    gpsTopic: "/carla/ego_vehicle/gnss"                    # GPS odometry topic from navsat, see module_navsat.launch file

    # Frames
    lidarFrame: "ego_vehicle/lidar"
    baselinkFrame: "ego_vehicle"
    odometryFrame: "odom"
    mapFrame: "map"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants