Skip to content

Fix slam.launch.py to start the lifecycle node #24

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

Open
wants to merge 1 commit into
base: jazzy
Choose a base branch
from

Conversation

civerachb-cpr
Copy link
Contributor

Update SLAM launch file to start lifecycle nodes. Adds sync parameter to optionally toggle between synchronous & async SLAM.

Tested in simulation with robot.yaml:

serial_number: a300-0000
version: 0
system:
  hosts:
    - hostname: REDACTED
      ip: 127.0.0.1
  ros2:
    namespace: a300_0000
  workspaces:
    - /home/REDACTED/clearpath_ws/install/setup.bash
platform:
  enable_ekf: true
  controller: ps4
  extras:
    ros_parameters:
      ekf_node:
        imu0: 'sensors/imu_0/data_raw'
        imu0_config: [False, False, False, False, False, False, False, False, False, False, False, True, True, False, False]
        imu0_differential: False
        imu0_queue_size: 10
        imu0_remove_gravitational_acceleration: True
      platform_velocity_controller:
        wheel_separation_multiplier: 1.75
        wheels_per_side: 2
  attachments:
    - name: front_bumper
      type: a300.bumper
      parent: front_bumper_mount
    - name: rear_bumper
      type: a300.bumper
      parent: rear_bumper_mount
    - name: top_plate
      type: a300.top_plate
sensors:
  imu:
    - model: phidgets_spatial
      urdf_enabled: true
      launch_enabled: true
      parent: base_link
      xyz: [0.059, 0.0, 0.161275]
      rpy: [0.0, 0.0, 0.0]
      ros_parameters:
        phidgets_spatial:
          data_interval_ms: 20
  lidar2d:
    - model: hokuyo_ust
      parent: default_mount

Confirmed that map displays properly in Rviz, lidar subscription works as expected.

Resolves #23

@civerachb-cpr civerachb-cpr requested a review from a team as a code owner May 14, 2025 14:35
@civerachb-cpr civerachb-cpr requested review from mikehosmar and luis-camero and removed request for a team May 14, 2025 14:35
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

Successfully merging this pull request may close these issues.

slam_toolbox doesn't subscribe to lidar2d_0/scan topic
1 participant