Skip to content

Running iSAM2 pipeline

Florian Tschopp edited this page Jun 28, 2019 · 1 revision

Setup and Launch

  • Install screen for automated launch
sudo apt-get install screen
  • Get rviz plugins for better visualization
git clone git@github.com:ethz-asl/fw_rviz_plugins.git
catkin build fw_rviz
catkin build fw_gps
  • Build isam2 by catkin
catkin build isam_app
  • Checkout correct branch: Make sure maplab is on branch feature/isam_three_stage_landmarks
  • Launch app:
    • Navigate to experimental/online-viwls-isam/isam-app/launch
    • Check flags.ff and start_isam_app (Path to rosbag etc.)
    • Type screen -c start_isam_app. This launches all required terminals. In case of problem you can copy commands from start_isam_app file and run it in 3 separate terminals
  • Quick intro to screen:
    • Switch between windows: Ctrl+o "
    • Kill screen: Ctrl+o \ Y
    • Do not just close the screen window, it will remain in the background. (Type screen -r to get a detached screen back to the foreground.)
  • Raw GPS measurements are visualized as red spheres.

RVIZ

Using the provided rviz config file we can see the following:

  • Pose of STS and LTS (coordinate systems)
  • trajectory of LTS (blue)
  • STS constraints (white)
  • STS landmarks (black)
  • LTS landmarks
    • light yellow - 1st stage observed
    • dark yellow - 1st stage finished
    • light orange - 2st stage observed
    • dark orange - 2st stage finished
    • light red - 3st stage observed
    • dark red - 3st stage finished
  • GPS measurements in from LTS (red dots)

flags.ff

Most important flags:

  • v - verbosity
  • sts_worker_use_gps_until_timestamp and lts_worker_use_gps_until_timestamp - disable/enable GPS
  • sts_loop_closure_start_offset and sts_loop_closure_interval - STS constraint parameters (in poses)
  • isam_sts_localise_nframe_using_landmarks - type of STS constraint (pose/landmarks)
  • kf_distance_threshold_m and kf_every_nth_vertex - keyframing related
  • lc_min_timestamp - internal loop closure of LTS

Running pipeline on EuRoC datasets:

What needs to be done:

  • fake GPS measurements in initialization phase

    • in worker-data-source-rosbag take messages with ground-truth and convert them to GPS positions (adding some offset can be helpful)
    • add the fake messages to output_gps_wgs_buffer_
  • adjust rosbag start and end (flags.ff)

  • adjust all timestamp-based parameters (flags.ff)

  • on screen 0 in start_isam_app run only roscore

  • adjust landmark min/max distance parameters (look into flags.ff file)

Clone this wiki locally