data-driven-dynamics icon indicating copy to clipboard operation
data-driven-dynamics copied to clipboard

Unable to Run the Simulation

Open MohamedAhsan97 opened this issue 1 year ago • 4 comments

image

When I try to run the simulation with the commands provided in the Readme file, I get this error (screenshot attached). Please advise me how to run the simulation.

I am working with PX4 Vision autonomy drone, and managed to generate the .yaml file for the quadrotor_model.ulg using the plugin.

MohamedAhsan97 avatar Sep 17 '24 17:09 MohamedAhsan97

Hi Mohamed, did you follow the instructions step by step in the Readme to setup the environment. In particular the commands cd <Firmware Dir> DONT_RUN=1 make px4_sitl gazebo

and `` echo "export PX4_ROOT=~/src/PX4-Autopilot" >> ~/.bashrc source ~/.bashrc```

If yes could you post the results you see in the terminal so we can check whether the build succeded?

manumerous avatar Sep 17 '24 20:09 manumerous

Hello. Thank you for your response.

Yes, I did follow the instructions in the Readme file. The PX4-Autopilot plugin builds fine with the commands mentioned, and the data-driven plugin also builds successfully. But when I run these commands to run the simulation

source setup.bash Tools/sitl_run.sh -m iris -s iris_aerodynamics

I am getting this error; image

This is my terminal output when PX4 is built; image image

And these are my outputs when i build the data-driven plugin; image

MohamedAhsan97 avatar Sep 20 '24 17:09 MohamedAhsan97

The error seems to be that a file in PX4-Autopilot/Tools/sitl_gazebo/worlds/empty.world can not be found. I assume you validated that the file does not exist?

I took a quick look into the PX4 repository on github and it seems like on the latest commit there is no more sitl_gazebo folder present in Tools. https://github.com/PX4/PX4-Autopilot/tree/main/Tools In that case they likely changed something without us adapting the data-driven-dynamics pipeline yet. @Jaeyoung-Lim do you know by chance where that config might have moved?

manumerous avatar Sep 20 '24 17:09 manumerous

@manumerous Sorry for the late response. The path has now moved to PX4-Autopilot/tree/main/Tools/simulation/gazebo-classic/sitl_gazebo-classic/worlds/empty.world

Jaeyoung-Lim avatar Sep 21 '24 14:09 Jaeyoung-Lim