Launch my own world and model in gazebo


#1

I have now gotten flytsim up and running using the docker. I can run both demoapps and my own apps. What I am having trouble with is when I make changes to the world or model how do I get these changes next time I launch. I can save my modified world as an .world file but how do I get flytsim to launch my world next time I want to use it?


#2

Sorry for the delayed response.

Just copy the launch file at:

/flyt/flytos/flytcore/share/sitl_gazebo/launch/posix_sitl.launch

to the location

/flyt/flytos/flytcore/share/sitl_gazebo/launch/posix_sitl_user.launch

update your newly created launch file according to your needs.
Once done, edit the launch file at

/flyt/flytos/flytcore/share/core_api/launch/core_api_autopilot.launch

and replace this line:

<include file="$(find sitl_gazebo)/launch/posix_sitl.launch" >

with

<include file="$(find sitl_gazebo)/launch/posix_sitl_user.launch" >