PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.2k stars 13.37k forks source link

[Question] Is there any specific reason that cmake are tied with gitmodules? #18415

Open dkati opened 2 years ago

dkati commented 2 years ago

i am trying to fork the sitl_gazebo in order to edit worlds/models etc...but i cant! i always fell on git tag issues and such.

Why editing a single world/model file is such a rocket science?

dagar commented 2 years ago

Do you have any particular error message?

It's tied together to try and keep the common use case fast and convenient. Users can clone a single repo (PX4-Autopilot) and run a single command to build both the flight controller + simulator and then launch.

dkati commented 2 years ago
  1. i couldnt edit a single world file (empty.world) from sitl_gazebo. all i did now was to edit the makefiles and not search for .git folder of sitl_gazebo so i used my own fork. also removed the repo from .gitmodules. Really dirty solution but couldnt find any other. Adding my repo to gitmodules was crying about tag format. so i gave up

  2. i want to remove the POV camera(that blue cone at gazebo) from hexacopter of make px4_sitl gazebo_typhoon_h480 and i couldnt do it. i removed the whole plugins from cmake/cpp/model files and still nothing.

  3. i make changes to sitl_gazebo/src .cpp files, and they dont build with make px4_sitl gazebo or make px4_sitl gazebo_typhoon_h480

Generally is really tied up and i cant understand how , from the make command we go to launched gazebo.

PS my background is C++ and ROS development so i know whats goin on, on ros/gazebo side