Controller parameters offboard example Gazebo-PX4-iris-Mavros


I am running the Offboard example with ROS and PX4 in Gazebo as described here:

(There is no Hardware involved in my setup)

I am on Ubuntu 16.04 with the PX4/Firmware on the master branch.

I am making the target for gazebo and px4 with the command:
make px4_sitl_default gazebo
which opens an instance of gazebo with an IRIS drone on which PX4 is running.

Then I connect mavros to the PX4 instance through the following command

roslaunch mavros px4.launch fcu_url:=udp://:14540@localhost:14557

And then I run the offboard example node described in the link above. Everything works fine.

The IRIS model is loaded from the folder:

The world chosen is the in the folder:

I was trying to understand better the whole architecture and I was wondering in which part of the code the controller parameters of the IRIS are loaded.
For example, where do I find the gains of the PID controller of the IRIS?

Could you point me in the right direction?


1 Like

I have an update, maybe I found where the parameters are set. It should be in one of the files in the folder

I think it should be in one of the files regarding the iris which could be in the folder init.d or init.d-posix

The files could be
or any of these
in the folder

However, I still can’t understand where the link with between Gazebo, the airframes and mixer file is done in the launch files or the files launched by the launch files.

1 Like