Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 25 Next »

Description

This application note describes step to launch lidar-based SLAM on iRobot Create3 with NavQPlus as a compute board.

Preparation

The application note assume the following preparation steps are concluded:

iRobot Create3 SLAM Setup

Setup Linux Host for Running Rviz

Put your robot on a level surface, make sure there are no dangling wires that could damage the robot or the NavQPlus board during the movements.

Installing Heatsinks on NAVQ+

To prevent the kit from heating it is recommended to install heatsinks on NAVQ+. Install PcCooler Ram Heatsinks RHS-03 or similar on MCU U1 and SDRAM U2 following instructions of heatsink vendors.

See below the picture of NAVQ+ with installed heatsinks:

Launching SLAM/Navigation Stack

  1. Open a terminal window.

  2. Log in to the NavQPlus console:

    ssh user@<navqplus-ip>
  3. Make sure USB1 is in the host mode:

    sudo sh -c 'echo host > /sys/kernel/debug/usb/38100000.usb/mode' && lsusb

    Output:

    Bus 002 Device 002: ID 0451:8140 Texas Instruments, Inc. TUSB8041 4-Port Hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 005: ID 2109:0101 VIA Labs, Inc. USB 2.0 BILLBOARD
    Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
    Bus 001 Device 003: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
    Bus 001 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  4. Place the robot on the initial place outside the base.

  5. Start the navigation applications:

    /opt/ros/humble/share/create3_slam_launch/scripts/start_slam -b
  6. Leave the window open with the application running.

Launching Rviz

Perform the steps below on your Desktop PC:

  1. Restart chrony service:

    sudo systemctl restart chrony

    (Use your Desktop PC password.)

  2. Set up cyclonedds as default RMW:

    export RMW_IMPLEMENTATION="rmw_cyclonedds_cpp"
  3. Start Rviz:

    /opt/ros/humble/share/create3_slam_launch/scripts/start_rviz

Setting Movement Goals in Rviz

In the Rviz window use the 2D Goal Pose toolbar button and then click to the location you want the robot to move to.

The robot moves to the assigned point.

Navigation Through Waypoints

In the Rviz window perform the following steps:

  1. Open the Panels->Add new panel menu and select Navigation 2. The Navigation 2 panel is displayed in Rviz window.

  2. In the Displays view press Add, in the By Topic tab select /waypoints (Marker Array) to add Marker Array to the Displays view.

  3. On the Rviz menu toolbar press the + sign and select nav2_riz-plugins. A new button, Nav2 Goal, appears on the toolbar.

  4. In the Navigation 2 panel press Startup Waypoint/Nav through Poses Mode.

  5. Press Nav2 Goal on the toolbar and click on the map in Rviz window to specify a way point. wp_1 appears on the map.

  6. Repeat step 5 to specify more way points.

  7. To make the robot follow way points starting from wp_1 press Start Waypoint Following in Navigation2.

  8. To remove the current way points in the Displays view clear the Marker Array checkbox.

  9. To set up a new root for the robot using waypoints feature, check the Marker Array checkbox and start from Step 4.

  • No labels