@@ -25,29 +25,34 @@ Key features:
25
25
26
26
- GPU: CUDA-enabled
27
27
28
- - Nvidia Driver: [ See RGL requirements] ( https://github.com/RobotecAI/RobotecGPULidar/tree/v0.17 .0#runtime-requirements )
28
+ - Nvidia Driver: [ See RGL requirements] ( https://github.com/RobotecAI/RobotecGPULidar/tree/v0.20 .0#runtime-requirements )
29
29
30
30
## Installation:
31
31
32
32
### Using pre-built libraries
33
33
1 . Download libraries from [ release] ( https://github.com/RobotecAI/RGLGazeboPlugin/releases ) .
34
34
2 . Make RGL plugins visible to Gazebo:
35
35
- Move libraries to the plugin's directories.
36
- ``` shell
37
- # If Gazebo installed from apt:
38
- cp libRobotecGPULidar.so /usr/lib/x86_64-linux-gnu/ign-gazebo-6/plugins/
39
- cp libRGLServerPluginInstance.so /usr/lib/x86_64-linux-gnu/ign-gazebo-6/plugins/
40
- cp libRGLServerPluginManager.so /usr/lib/x86_64-linux-gnu/ign-gazebo-6/plugins/
41
- cp libRGLVisualize.so /usr/lib/x86_64-linux-gnu/ign-gazebo-6/plugins/gui/
42
- ```
36
+ - If Gazebo installed from apt:
37
+ ``` shell
38
+ cp libRobotecGPULidar.so /usr/lib/x86_64-linux-gnu/gz-sim-8/plugins
39
+ cp libRGLServerPluginInstance.so /usr/lib/x86_64-linux-gnu/gz-sim-8/plugins
40
+ cp libRGLServerPluginManager.so /usr/lib/x86_64-linux-gnu/gz-sim-8/plugins
41
+ cp libRGLVisualize.so /usr/lib/x86_64-linux-gnu/gz-sim-8/plugins/gui
42
+ ```
43
+ - If Gazebo installed from the ROS repository ([see](https://gazebosim.org/docs/latest/ros_installation/# installing-the-default-gazebo-ros-pairing)):
44
+ ` ` ` shell
45
+ cp libRobotecGPULidar.so /opt/ros/${ROS_DISTRO} /opt/gz_sim_vendor/lib/gz-sim-8/plugins
46
+ cp libRGLServerPluginInstance.so /opt/ros/${ROS_DISTRO} /opt/gz_sim_vendor/lib/gz-sim-8/plugins
47
+ cp libRGLServerPluginManager.so /opt/ros/${ROS_DISTRO} /opt/gz_sim_vendor/lib/gz-sim-8/plugins
48
+ cp libRGLVisualize.so /opt/ros/${ROS_DISTRO} /opt/gz_sim_vendor/lib/gz-sim-8/plugins/gui
49
+ ` ` `
43
50
- Or set environment variables:
44
51
` ` ` shell
45
- # Assuming that libraries:
46
- # libRGLServerPluginInstance.so, libRGLServerPluginManager.so and libRobotecGPULidar.so
47
- # are located in RGLServerPlugin directory,
48
- # and libRGLVisualize.so in RGLGuiPlugin.
52
+ # Assuming that system plugin libraries are located in RGLServerPlugin directory,
53
+ # and gui plugins (libRGLVisualize.so) in RGLVisualize.
49
54
export GZ_SIM_SYSTEM_PLUGIN_PATH=` pwd` /RGLServerPlugin:$GZ_SIM_SYSTEM_PLUGIN_PATH
50
- export GZ_GUI_PLUGIN_PATH=` pwd` /RGLGuiPlugin :$GZ_GUI_PLUGIN_PATH
55
+ export GZ_GUI_PLUGIN_PATH=` pwd` /RGLVisualize :$GZ_GUI_PLUGIN_PATH
51
56
` ` `
52
57
# ## Building from source
53
58
@@ -57,15 +62,14 @@ docker build \
57
62
--target=exporter \
58
63
--output=install .
59
64
` ` `
65
+ * Note: Build with [ROS Jazzy](https://docs.ros.org/en/jazzy/index.html) using [colcon](https://colcon.readthedocs.io/en/released/)*
60
66
61
67
# ### Manual
62
68
` ` ` shell
63
- mkdir build
64
- cd build
65
- cmake ..
66
- make -j
67
- make install
69
+ mkdir build && cd build
70
+ cmake .. && make -j && make install
68
71
cd ..
72
+ # Make it visible to Gazebo via environment variables:
69
73
export GZ_SIM_SYSTEM_PLUGIN_PATH=` pwd` /install/RGLServerPlugin:$GZ_SIM_SYSTEM_PLUGIN_PATH
70
74
export GZ_GUI_PLUGIN_PATH=` pwd` /install/RGLVisualize:$GZ_GUI_PLUGIN_PATH
71
75
` ` `
@@ -186,7 +190,8 @@ Inside the link entity in your model, add a custom sensor:
186
190
` ` `
187
191
188
192
- ** pattern_preset** \
189
- We have prepared several lidar presets. You can type in the name of a LiDAR to use its pattern (all available patterns are shown below).
193
+ We have prepared several lidar presets. You can type in the name of a LiDAR to use its pattern (all available patterns are shown below).\
194
+ * Note: All presets are assumed to work at 10Hz update rate*
190
195
` ` ` xml
191
196
< pattern_preset> Alpha Prime< /pattern_preset>
192
197
< pattern_preset> Puck< /pattern_preset>
0 commit comments