From 38fd97bc7ad1e808b76ba82f47202c0339b6e7ca Mon Sep 17 00:00:00 2001 From: Alex Davies Date: Fri, 5 Jul 2024 14:12:37 -0300 Subject: [PATCH] Proper px4 path --- skel/Desktop/simulated-drone/sim_drone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skel/Desktop/simulated-drone/sim_drone.py b/skel/Desktop/simulated-drone/sim_drone.py index 8443dbe..61c7ec9 100755 --- a/skel/Desktop/simulated-drone/sim_drone.py +++ b/skel/Desktop/simulated-drone/sim_drone.py @@ -18,7 +18,6 @@ logger.add( px4Path = os.environ.get("SPIRI_SIM_PX4_PATH", "/opt/spiri-sdk/PX4-Autopilot/") logger.info(f"SPIRI_SIM_PX4_PATH={px4Path}") -px4 = sh.Command(px4Path) app = typer.Typer() @@ -116,6 +115,7 @@ def start(sys_id: int = 1, extra_apps: List[pathlib.Path] = []): with logger.contextualize(syd_id=sys_id): with modified_environ( PX4_SIM_MODEL=os.environ.get("PX4_SIM_MODEL") or "gz_x500", + # ToDo: pose is not passed to gazebo classic PX4_GZ_MODEL_POSE=os.environ.get("PX4_GZ_MODEL_POSE") or f"0,{(sys_id-1)}", PX4_INSTANCE="intance_id", ROS_MASTER_PORT=str(11310 + sys_id),