CodeTheRobot

ROS 2 Labs · exercise 02

Prove the overlay wins

Decide whether ~/robot_ws is ahead of /opt/ros/lyrical on the search path.

Lab 02 · Create the workspace

Guided steps

  1. 1.Return true only when the workspace prefix appears before the ROS install prefix.
  2. 2.Report both the correct and the reversed order.
  3. 3.This is exactly what printenv AMENT_PREFIX_PATH shows you in a real shell.

Your code

Your code is saved in this browser after every run and restored next time.