Open the-raspberry-pi-guy opened 3 years ago
In NextageAOpen_gazebo_intel_realsense.urdf.xacro, there is a plugin for Gazebo that operates the Intel Realsense camera - it transforms the simulation and publishes on ROS topics: https://github.com/ipab-slmc/nextagea/blob/672767b356fcdec99076227e42bf2a1eed55a94d/nextagea_description/urdf/NextageAOpen_gazebo_intel_realsense.urdf.xacro#L113-L136
NextageAOpen_gazebo_intel_realsense.urdf.xacro
I have noticed however that, while the camera view is visualised in Gazebo, none of the topics were appearing in ROS:
Notice in the plugin, there is a librealsense_gazebo_plugin.so referenced. This is currently missing and hasn't been documented. It is built from the PAL Robotics repo here: https://github.com/pal-robotics/realsense_gazebo_plugin. This must be cloned into your workspace and built, and after this the Realsense topics appear in ROS. This was strange as Gazebo does not complain when it is missing, it just does not pass the topics into ROS. It is also discussed in this forum post: https://answers.ros.org/question/345598/intel-realsense-d400-in-gazebo-simulation/?answer=348386#post-id-348386
librealsense_gazebo_plugin.so
@VladimirIvan how would you like me to enforce this dependency? Where to document? Or is there any clever way of also ensuring that this Git repo gets downloaded?
Spoke to Vlad, will add into the package.xml and create a ROS install
In
NextageAOpen_gazebo_intel_realsense.urdf.xacro
, there is a plugin for Gazebo that operates the Intel Realsense camera - it transforms the simulation and publishes on ROS topics: https://github.com/ipab-slmc/nextagea/blob/672767b356fcdec99076227e42bf2a1eed55a94d/nextagea_description/urdf/NextageAOpen_gazebo_intel_realsense.urdf.xacro#L113-L136I have noticed however that, while the camera view is visualised in Gazebo, none of the topics were appearing in ROS:![image](https://user-images.githubusercontent.com/5570173/107665664-93241e00-6c85-11eb-8b26-3994946cd5ba.png)
Notice in the plugin, there is a
librealsense_gazebo_plugin.so
referenced. This is currently missing and hasn't been documented. It is built from the PAL Robotics repo here: https://github.com/pal-robotics/realsense_gazebo_plugin. This must be cloned into your workspace and built, and after this the Realsense topics appear in ROS. This was strange as Gazebo does not complain when it is missing, it just does not pass the topics into ROS. It is also discussed in this forum post: https://answers.ros.org/question/345598/intel-realsense-d400-in-gazebo-simulation/?answer=348386#post-id-348386@VladimirIvan how would you like me to enforce this dependency? Where to document? Or is there any clever way of also ensuring that this Git repo gets downloaded?