Skip to content

Commit d0cd1a6

Browse files
committed
Add SensorType::RGBDCamera/rgbd_camera type
1 parent fb7ce30 commit d0cd1a6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ to URDF limitations.
237237
| `sensorName` | String | LinkName_FrameName | Name of the sensor, to be used in the output URDF file |
238238
| `exportFrameInURDF` | Bool | False | If true, export a fake URDF link whose frame is coincident with the sensor frame (as if the sensor frame was added to the `exportedFrames` array) |
239239
| `exportedFrameName` | String | sensorName | Name of the URDF link exported by the `exportFrameInURDF` option |
240-
| `sensorType` | String | Mandatory | Type of sensor. Supported: "altimeter", "camera", "contact", "depth", "gps", "gpu_ray", "imu", "logical_camera", "magnetometer", "multicamera", "ray", "rfid", "rfidtag", "sonar", "wireless_receiver", "wireless_transmitter" |
240+
| `sensorType` | String | Mandatory | Type of sensor. Supported: "accelerometer", "gyroscope", "camera", "depth", "ray", "rgbd_camera" |
241241
| `updateRate` | String | Mandatory | Number representing the update rate of the sensor. Expressed in [Hz]. |
242242
| `sensorBlobs` | String | empty | Array of strings (possibly on multiple lines) represeting complex XML blobs that will be included as child of the `<sensor>` element |
243243

src/creo2urdf/include/creo2urdf/Utils.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ enum class SensorType {
106106
Gyroscope, ///< Gyroscope sensor type.
107107
Camera, ///< Camera sensor type, usually RGB.
108108
Depth, ///< Depth sensor type, usually associated with a RGBD camera.
109-
Ray ///< Ray sensor type, such as LIDAR.
109+
Ray, ///< Ray sensor type, such as LIDAR.
110+
RGBDCamera ///< RGBD camera sensor type.
110111
};
111112

112113
/**
@@ -131,7 +132,8 @@ static const std::map<SensorType, std::string> sensor_type_map = {
131132
{SensorType::Gyroscope, "gyroscope"}, /// < Gyroscope sensor type.
132133
{SensorType::Camera, "camera"}, /// < Camera sensor type.
133134
{SensorType::Depth, "depth"}, /// < Depth sensor type.
134-
{SensorType::Ray, "ray"} /// < Lidar sensor type.
135+
{SensorType::Ray, "ray"}, /// < Lidar sensor type.
136+
{SensorType::RGBDCamera, "rgbd_camera"} /// < RGBD camera sensor type.
135137
};
136138

137139
/**
@@ -157,7 +159,8 @@ static const std::map<SensorType, std::string> gazebo_sensor_type_map = {
157159
{SensorType::Gyroscope, "gyroscope"}, /// < Gyroscope sensor type.
158160
{SensorType::Camera, "camera"}, /// < Camera sensor type.
159161
{SensorType::Depth, "depth"}, /// < Depth sensor type.
160-
{SensorType::Ray, "ray"} /// < Lidar sensor type.
162+
{SensorType::Ray, "ray"}, /// < Lidar sensor type.
163+
{SensorType::RGBDCamera, "rgbd_camera"} /// < RGBD camera sensor type.
161164
};
162165

163166
/**

0 commit comments

Comments
 (0)