# Error: unknown target | Unable to simulate the iris\_stereo\_camera model

**URL:** <https://discuss.px4.io/t/error-unknown-target-unable-to-simulate-the-iris-stereo-camera-model/21180>\
**Category:** ROS 1 / ROS 2\
**Created:** [February 25, 2021, 11:24pm UTC](https://discuss.px4.io/t/error-unknown-target-unable-to-simulate-the-iris-stereo-camera-model/21180 "2021-02-25T23:24:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![canberkgurel](https://discuss.px4.io/user_avatar/discuss.px4.io/canberkgurel/32/8133_2.png) [@canberkgurel](https://discuss.px4.io/u/canberkgurel)\
**Post date:** [February 25, 2021, 11:24pm UTC](https://discuss.px4.io/t/error-unknown-target-unable-to-simulate-the-iris-stereo-camera-model/21180/1 "2021-02-25T23:24:09Z")

</div>

Hi.

I’m trying to run a gazebo px4 sitl simulation with the iris\_stereo\_camera model.

My setup works with the default iris model, but not with the iris\_stereo\_camera model.

This one works:

```
cd /path/to/PX4-Autopilot
DONT_RUN=1 make px4_sitl_default gazebo
source ~/catkin_ws/devel/setup.bash # (optional)
source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/sitl_gazebo
roslaunch px4 posix_sitl.launch x:=0 y:=0 z:=0 R:=0 P:=0 Y:=1.57079 vehicle:=iris

```

This one doesn’t work:

```
cd /path/to/PX4-Autopilot
DONT_RUN=1 make px4_sitl gazebo_iris_stereo_camera
source ~/catkin_ws/devel/setup.bash # (optional)
source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/sitl_gazebo
roslaunch px4 posix_sitl.launch x:=0 y:=0 z:=0 R:=0 P:=0 Y:=1.57079 vehicle:=iris_stereo_camera

```

The error is:

> ninja: error: unknown target ‘gazebo\_iris\_stereo\_camera’  
> Makefile:224: recipe for target ‘px4\_sitl’ failed  
> make: \*\*\* [px4\_sitl] Error 1

> Error: Unknown model ‘iris\_stereo\_camera’  
> process[gazebo-2]: started with pid [31272]  
> ERROR [px4] Startup script returned with return value: 256  
> process[gazebo\_gui-3]: started with pid [31280]  
> process[vehicle\_spawn\_eialab1\_AERO\_15\_X9\_31243\_4218840550519229751-4]: started with pid [31285]  
> ================================================================================REQUIRED process [sitl-1] has died!  
> process has died [pid 31258, exit code 255, cmd /home/eia-lab1/PX4-SITL/PX4-Autopilot/build/px4\_sitl\_default/bin/px4 /home/eia-lab1/PX4-SITL/PX4-Autopilot/ROMFS/px4fmu\_common -s etc/init.d-posix/rcS \_\_name:=sitl \_\_log:=/home/eia-lab1/.ros/log/ab72c876-76ee-11eb-841b-fc777466ce75/sitl-1.log].  
> log file: /home/eia-lab1/.ros/log/ab72c876-76ee-11eb-841b-fc777466ce75/sitl-1\*.log  
> Initiating shutdown!  
> ================================================================================

As I understand from here: [Redirecting to latest version of document (main)](https://docs.px4.io/master/en/simulation/gazebo_vehicles.html#quadrotor_optical_flow),

The desired vehicle model needs to be appended after `gazebo` as follows: `make px4_sitl gazebo_iris_opt_flow`

FYI. My firmware version is 1.11.2dev. I’m using Ubuntu 18.04LTS

---

<div class="post-metadata">

**Author:** ![Jaeyoung-Lim](https://discuss.px4.io/user_avatar/discuss.px4.io/jaeyoung-lim/32/10829_2.png) [@Jaeyoung-Lim](https://discuss.px4.io/u/Jaeyoung-Lim)\
**Post date:** [February 26, 2021, 6:24am UTC](https://discuss.px4.io/t/error-unknown-target-unable-to-simulate-the-iris-stereo-camera-model/21180/2 "2021-02-26T06:24:31Z")

</div>

@canberkgurel The iris\_stereo\_camera is a ROS dependent model (e.g. the stereo camera is a ROS plugin), therefore it is not a make target.

You cannot run the model without ROS. If you want to use the model, you need to spawn it using ROS

---

<div class="post-metadata">

**Author:** ![canberkgurel](https://discuss.px4.io/user_avatar/discuss.px4.io/canberkgurel/32/8133_2.png) [@canberkgurel](https://discuss.px4.io/u/canberkgurel)\
**Post date:** [February 26, 2021, 1:35pm UTC](https://discuss.px4.io/t/error-unknown-target-unable-to-simulate-the-iris-stereo-camera-model/21180/3 "2021-02-26T13:35:23Z")

</div>

@Jaeyoung-Lim How do I do that? I’m already using ROS. Did you see the roslaunch file I’m running in my original post?

---

<div class="post-metadata">

**Author:** ![Jaeyoung-Lim](https://discuss.px4.io/user_avatar/discuss.px4.io/jaeyoung-lim/32/10829_2.png) [@Jaeyoung-Lim](https://discuss.px4.io/u/Jaeyoung-Lim)\
**Post date:** [February 26, 2021, 8:00pm UTC](https://discuss.px4.io/t/error-unknown-target-unable-to-simulate-the-iris-stereo-camera-model/21180/4 "2021-02-26T20:00:11Z")

</div>

@canberkgurel You can use [https://github.com/PX4/PX4-Avoidance/blob/master/avoidance/launch/avoidance\_sitl\_mavros.launch](https://github.com/PX4/PX4-Avoidance/blob/master/avoidance/launch/avoidance_sitl_mavros.launch) as reference.

The launchfile you are using assumes that the name of the airframe config matches the name of your model, while in your case you are just running a `iris` airframe config and want to use a `iris_stereo_camera` sdf model

---

<div class="post-metadata">

**Author:** ![canberkgurel](https://discuss.px4.io/user_avatar/discuss.px4.io/canberkgurel/32/8133_2.png) [@canberkgurel](https://discuss.px4.io/u/canberkgurel)\
**Post date:** [February 26, 2021, 8:19pm UTC](https://discuss.px4.io/t/error-unknown-target-unable-to-simulate-the-iris-stereo-camera-model/21180/5 "2021-02-26T20:19:49Z")

</div>

@Jaeyoung-Lim I made some modifications in the PX4-Autopilot software to get it working. I think there was a gap in the implementation. I’ll create a PR and you can review it if you want.

---

<div class="post-metadata">

**Author:** ![Jaeyoung-Lim](https://discuss.px4.io/user_avatar/discuss.px4.io/jaeyoung-lim/32/10829_2.png) [@Jaeyoung-Lim](https://discuss.px4.io/u/Jaeyoung-Lim)\
**Post date:** [February 27, 2021, 1:52pm UTC](https://discuss.px4.io/t/error-unknown-target-unable-to-simulate-the-iris-stereo-camera-model/21180/6 "2021-02-27T13:52:41Z")

</div>

@canberkgurel yes please

---

<div class="post-metadata">

**Author:** ![canberkgurel](https://discuss.px4.io/user_avatar/discuss.px4.io/canberkgurel/32/8133_2.png) [@canberkgurel](https://discuss.px4.io/u/canberkgurel)\
**Post date:** [February 27, 2021, 4:28pm UTC](https://discuss.px4.io/t/error-unknown-target-unable-to-simulate-the-iris-stereo-camera-model/21180/7 "2021-02-27T16:28:25Z")

</div>

Please see [https://github.com/PX4/PX4-Autopilot/pull/16993](https://github.com/PX4/PX4-Autopilot/pull/16993)
