How to change Physics Engine behaviour in Ignition or Classic?
Hi everyone,
I would like to know how to modify in a certain way the Physics Engine (PE) in Ignition/Classic Gazebo. I'm particularly interested in collision computation, e.g. changing the object representation, collision detection, forces rendering, etc.
As far as I know, there are three possible ways to do this:
- Writing a physics plugin for Classic or Ignition. My question here is, can you actually modify the behaviour of the PE or is the API just meant for getting info from the PE and maybe set some "superficial" parameters, say the gravity vector or the friction coefficient for a given material/object?
Modifying the PE itself. I guess that should be the optimal option because I'd have total freedom. Here, the question is if the following workflow is correct:
git clone
both Gazebo and the PE.- Modify the PE as desired.
- Somehow linking Gazebo
CMakeLists.txt
to my cloned PE repo? - Compile Gazebo
As stated in an upcoming ign-physics tutorial, you can create new
Features
for each PE. The question is the same as no. 1.
If you can also provide a MWE, that would be awesome <3
Cheers,
mcres