Hi I try to apply camera module into the x500 model to get camera stream data. I added the camera sensor:
<sensor name="camera" type="camera">
<pose>-0.051 0 -0.162 0 0 3.14159</pose>
<camera>
<horizontal_fov>1.0</horizontal_fov>
<image>
<format>R8G8B8</format>
<width>640</width>
<height>360</height>
</image>
<clip>
<near>0.05</near>
<far>15000</far>
</clip>
</camera>
<always_on>1</always_on>
<update_rate>5</update_rate>
<visualize>true</visualize>
<plugin name="GstCameraPlugin" filename="libgazebo_gst_camera_plugin.so">
<robotNamespace></robotNamespace>
<udpPort>5600</udpPort>
</plugin>
<plugin name="CameraManagerPlugin" filename="libgazebo_camera_manager_plugin.so">
<robotNamespace></robotNamespace>
<interval>1</interval>
<width>3840</width>
<height>2160</height>
</plugin>
</sensor>
But at the end I got this error when I try to build it with:
make px4_sitl gz_x500
[Err] [SystemLoader.cc:118] Failed to load system plugin: (Reason: Could not find shared library)
- Requested plugin name: [GstCameraPlugin]
- Requested library name: [libgazebo_gst_camera_plugin.so]
- Library search paths:
- /home/shen/.gz/sim/plugins/
- /usr/lib/x86_64-linux-gnu/gz-sim-7/plugins/
- /home/shen/.ignition/gazebo/plugins/
[Err] [SystemLoader.cc:118] Failed to load system plugin: (Reason: Could not find shared library)
- Requested plugin name: [CameraManagerPlugin]
- Requested library name: [libgazebo_camera_manager_plugin.so]
- Library search paths:
- /home/shen/.gz/sim/plugins/
- /usr/lib/x86_64-linux-gnu/gz-sim-7/plugins/
- /home/shen/.ignition/gazebo/plugins
I am using Ubuntu 22.04 with Gazebo Garden. Can anyone help to figure out how to solve this issue?
Thank you very much.