Compare commits

..

2 Commits

Author SHA1 Message Date
chyoo a1e0abb7fd Handle TurtleBot3 Gazebo perception input 2026-08-06 18:28:22 +09:00
chyoo ee56703ea2 Sync module source with week 5 baseline 2026-08-06 18:04:27 +09:00
2 changed files with 5 additions and 1 deletions
@@ -6,6 +6,10 @@ def build_perception_commands(config):
level = config.get("level") level = config.get("level")
robot = config.get("robot", "") robot = config.get("robot", "")
sim_mode = str(config.get("sim_mode", False)).lower() sim_mode = str(config.get("sim_mode", False)).lower()
# Gazebo's TurtleBot3 model publishes LaserScan directly. Launching the
# pointcloud conversion stack here is both redundant and unsupported.
if sim_mode == "true" and robot == "turtlebot3":
return cmds
if level and level != "None": if level and level != "None":
cmds.append(["ros2", "launch", f"perception{level}_pkg", cmds.append(["ros2", "launch", f"perception{level}_pkg",
"perception.launch.py", f"robot:={robot}", f"sim_mode:={sim_mode}"]) "perception.launch.py", f"robot:={robot}", f"sim_mode:={sim_mode}"])