diff --git a/README.md b/README.md index 54538a9..a09dd1a 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,10 @@ # ros_components_description - URDF models of sensors and other components offered alongside with Husarion robots ## Including sensor First build the package by running: - -```bash +``` bash # create workspace folder and clone ros_components_description mkdir -p ros2_ws/src cd ros2_ws @@ -27,8 +25,7 @@ colcon build ``` To include the sensor, use the following code: - -```xml +``` xml @@ -42,16 +39,15 @@ To include the sensor, use the following code: ``` A list of parameters can be found here: - - `parent_link` [*string*, default: **None**] parent link to which sensor should be attached. - `xyz` [*float list*, default: **None**] 3 float values defining translation between base of a sensor and parent link. Values in **m**. - `rpy` [*float list*, default: **None**] 3 float values define rotation between parent link and base of a sensor. Values in **rad**. - `tf_prefix` [*string*, optional] tf prefix applied before all links created by sensor. If defined, applies `_`. If not defined, leaves `` intact. Applies also to `frame_id` parameter. -- `topic` [*string*, default: **same as manufacturer's default**] name of topic at which simulated sensor will publish data. -- `frame_id` [*string*, default: **same as manufacturer's default**] name of final tf to which sensor will be attached. Should match one from message published by sensor. +- `topic` [*string*, default: **same as default of manufacturer**] name of topic at which simulated sensor will publish data. +- `frame_id` [*string*, default: **same as default of manufacturer**] name of final tf to which sensor will be attached. Should match one from message published by sensor. - `use_gpu` [*bool*, default: **false**] enable GPU acceleration for sensor. Available only if sensor can be accelerated. - `simulation_engine` [*string*, default: **gazebo-classic**] selected for which simulation engine plugins should be loaded. Currently the only supported: - - **gazebo-classic** used to select [Gazebo Classic](https://classic.gazebosim.org/). - - **ignition-gazebo** used to select [Ignition Gazebo](https://gazebosim.org/home). + - **gazebo-classic** used to select [Gazebo Classic](https://classic.gazebosim.org/). + - **ignition-gazebo** used to select [Ignition Gazebo](https://gazebosim.org/home). -Some sensors can define their specific parameters. Refer to their definition for more info. +Some sensors can define their specific parameters. Refer to their definition for more info. \ No newline at end of file diff --git a/urdf/intel_realsense_d435.urdf.xacro b/urdf/intel_realsense_d435.urdf.xacro index ca1e8ee..7ab292e 100644 --- a/urdf/intel_realsense_d435.urdf.xacro +++ b/urdf/intel_realsense_d435.urdf.xacro @@ -17,22 +17,14 @@ # limitations under the License. --> - + - - - - - - - @@ -62,22 +54,22 @@ - + - + - + - + - - + + - + @@ -104,86 +96,86 @@ published. e.g. running the device in simulation --> - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - - + + true 30.0 ${topic}/color/image_raw false - ${prefix}${name}_color_optical_frame + ${name}_color_optical_frame ${69.0/180.0*pi} 1280 @@ -196,14 +188,14 @@ - + true 30.0 ${topic}/depth false - ${prefix}${name}_depth_optical_frame + ${name}_depth_optical_frame ${87.0/180.0*pi} diff --git a/urdf/orbbec_astra.urdf.xacro b/urdf/orbbec_astra.urdf.xacro index 7af5ce2..cc88d07 100644 --- a/urdf/orbbec_astra.urdf.xacro +++ b/urdf/orbbec_astra.urdf.xacro @@ -7,19 +7,19 @@ simulation_engine:=gazebo-classic"> - + - + - + - + - + @@ -52,50 +52,50 @@ - + - + - + - + - + - + - + - - + + - + - + - - + + - + - - + + true 20.0 ${camera_name} - ${prefix}${camera_name}_depth_optical_frame + The frame of color stream should be ${tf_prefix_ext}${camera_name}_color_optical_frame --> + ${tf_prefix_ext}${camera_name}_depth_optical_frame - + ${60.0/180.0*pi} 640 @@ -117,12 +117,12 @@ - - + + true 20.0 - + ${60.0/180.0*pi} R8G8B8 @@ -131,7 +131,7 @@ - + orbbec_astra_camera custom_camera/image_raw:=rgb/image_raw @@ -141,8 +141,8 @@ custom_camera/points:=depth/points - ${prefix}camera - ${prefix}${frame_id} + ${tf_prefix_ext}camera + ${tf_prefix_ext}${frame_id} 0.07 0.6 @@ -152,4 +152,4 @@ - + \ No newline at end of file diff --git a/urdf/ouster_os1_32.urdf.xacro b/urdf/ouster_os1_32.urdf.xacro index 1b4cfcb..d2c636c 100644 --- a/urdf/ouster_os1_32.urdf.xacro +++ b/urdf/ouster_os1_32.urdf.xacro @@ -18,19 +18,19 @@ - + - + - + - + - + @@ -54,16 +54,16 @@ - + - - + + - + - - + + false @@ -95,15 +95,15 @@ 20.0 - + ~/out:=${topic} sensor_msgs/PointCloud2 - ${prefix}${frame_id} + ${tf_prefix_ext}${frame_id} - + \ No newline at end of file diff --git a/urdf/slamtec_rplidar_a2.urdf.xacro b/urdf/slamtec_rplidar_a2.urdf.xacro index f60d0a5..257c810 100644 --- a/urdf/slamtec_rplidar_a2.urdf.xacro +++ b/urdf/slamtec_rplidar_a2.urdf.xacro @@ -34,10 +34,10 @@ - + - + @@ -60,13 +60,13 @@ - + - + - + @@ -90,21 +90,21 @@ - + - - + + - + - - + + ${topic} - ${prefix}${frame_id} - ${prefix}${frame_id} + ${tf_prefix_ext}${frame_id} + ${tf_prefix_ext}${frame_id} 10.0 @@ -139,8 +139,8 @@ - - + + false @@ -171,10 +171,10 @@ ~/out:=${topic} sensor_msgs/LaserScan - ${prefix}${frame_id} + ${tf_prefix_ext}${frame_id} - + \ No newline at end of file diff --git a/urdf/slamtec_rplidar_a3.urdf.xacro b/urdf/slamtec_rplidar_a3.urdf.xacro index 8b11d2d..d7e68f6 100644 --- a/urdf/slamtec_rplidar_a3.urdf.xacro +++ b/urdf/slamtec_rplidar_a3.urdf.xacro @@ -28,19 +28,19 @@ - + - + - + - + - + @@ -65,21 +65,21 @@ - + - - + + - + - - + + ${topic} - ${prefix}${frame_id} - ${prefix}${frame_id} + ${tf_prefix_ext}${frame_id} + ${tf_prefix_ext}${frame_id} 10.0 @@ -115,8 +115,8 @@ - - + + false @@ -148,10 +148,10 @@ ~/out:=${topic} sensor_msgs/LaserScan - ${prefix}${frame_id} + ${tf_prefix_ext}${frame_id} - + \ No newline at end of file diff --git a/urdf/slamtec_rplidar_s1.urdf.xacro b/urdf/slamtec_rplidar_s1.urdf.xacro index fcbd06f..f3c4336 100644 --- a/urdf/slamtec_rplidar_s1.urdf.xacro +++ b/urdf/slamtec_rplidar_s1.urdf.xacro @@ -28,19 +28,19 @@ - + - + - + - + - + @@ -73,21 +73,21 @@ - + - - + + - + - - + + ${topic} - ${prefix}${frame_id} - ${prefix}${frame_id} + ${tf_prefix_ext}${frame_id} + ${tf_prefix_ext}${frame_id} 10.0 @@ -122,8 +122,8 @@ - - + + false @@ -154,10 +154,10 @@ ~/out:=${topic} sensor_msgs/LaserScan - ${prefix}${frame_id} + ${tf_prefix_ext}${frame_id} - + \ No newline at end of file diff --git a/urdf/slamtec_rplidar_s2.urdf.xacro b/urdf/slamtec_rplidar_s2.urdf.xacro index 5505e36..e79aa28 100644 --- a/urdf/slamtec_rplidar_s2.urdf.xacro +++ b/urdf/slamtec_rplidar_s2.urdf.xacro @@ -44,7 +44,7 @@ - + diff --git a/urdf/slamtec_rplidar_s3.urdf.xacro b/urdf/slamtec_rplidar_s3.urdf.xacro index a7d5b90..e54c5fc 100644 --- a/urdf/slamtec_rplidar_s3.urdf.xacro +++ b/urdf/slamtec_rplidar_s3.urdf.xacro @@ -44,7 +44,7 @@ - + diff --git a/urdf/stereolabs_zed.urdf.xacro b/urdf/stereolabs_zed.urdf.xacro index 288d81f..5b4262a 100644 --- a/urdf/stereolabs_zed.urdf.xacro +++ b/urdf/stereolabs_zed.urdf.xacro @@ -22,19 +22,11 @@ - - - - - - - @@ -85,15 +77,15 @@ - - + + - + - + @@ -109,71 +101,71 @@ - - - + + + - - - - + + + + - - - - + + + + - - + + - - + + - - - - + + + + - - + + - - + + - - - - + + + + - - - - + + + + - - - - + + + + @@ -182,15 +174,15 @@ - - + + true 30.0 ${model}/zed_node/rgb/image_rect_color false - ${prefix}${name}_center_optical_frame + ${name}_center_optical_frame ${110.0/180.0*pi} @@ -205,14 +197,14 @@ - + true 30.0 ${model}/zed_node/depth false - ${prefix}${name}_center_optical_frame + ${name}_center_optical_frame ${110.0/180.0*pi} diff --git a/urdf/velodyne_puck.urdf.xacro b/urdf/velodyne_puck.urdf.xacro index e2a1f0a..b26ed06 100644 --- a/urdf/velodyne_puck.urdf.xacro +++ b/urdf/velodyne_puck.urdf.xacro @@ -18,19 +18,19 @@ - + - + - + - + - + @@ -54,17 +54,17 @@ - - - + + - + - - + + false 10.0 @@ -97,8 +97,8 @@ ${topic} - ${prefix}${frame_id} - ${prefix}${frame_id} + ${tf_prefix_ext}${frame_id} + ${tf_prefix_ext}${frame_id} true @@ -107,14 +107,14 @@ - ~/out:=${topic} sensor_msgs/PointCloud2 - ${prefix}${frame_id} + ${tf_prefix_ext}${frame_id}