Camera Plugin doesn't work in Sphinx


Hello there,

I am trying to start Sphinx with a virtual camera placed in the world to see the drone from the side. Here is part of my .world file

 <model name="camera">
    <pose>-0.5 0 0.3 0 0 0</pose>
    <link name="camera_link">
      <collision name="collision">
            <size>0.1 0.1 0.1</size>
      <visual name="visual">
            <size>0.1 0.1 0.1</size>
      <sensor name="camera1" type="camera">

        <plugin name="camera_controller" filename="">


However, when I try to start Sphinx with this world and Bebop2.drone it says me the following:

[Err] [] CameraPlugin requires a CameraSensor

and then exits with a segmentation fault.

Would be nice if anyone new what to do.



You have found an issue with sphinx that will be fixed in the next version. It prevents anyone from using the CameraPlugin. In the meantime, you can simply use the “follow” camera that comes with Sphinx. To activate it, simply right click on your drone and select “Follow”.

Camera parameters can be changed in the GUI item of the client:
or you can adapt the <gui> section in your world file. Here is an example:

  <camera name="user_camera">
    <pose>-31.4742622375488281 10.6645917892456055 124.7510528564453125 -0.0000000061694163 0.6057507481416582 -0.4140146405913985</pose>
      <xyz>-3 0 1</xyz>


I guess, I found a solution. Somehow, when I deleted the whole plugin block, the camera started working properly and publishing the image.


Yes, the problem is that the CameraPlugin is not compatible with your sphinx version. Note that if you want to visualize the camera, you can also use the camera model included in sphinx like so:

  <pose>-0.5 0 0.3 0 0 0</pose>