Skip to content

Commit

Permalink
Update Sensor Format
Browse files Browse the repository at this point in the history
  • Loading branch information
DLu committed Jul 11, 2022
1 parent 19267f6 commit 83171c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ std::vector<SensorParameters> PerceptionConfig::load3DSensorsYAML(const std::fil
if (sensors_node && sensors_node.IsSequence())
{
// Loop over the sensors available in the file
for (const YAML::Node& sensor_name : sensors_node)
for (const YAML::Node& sensor_name_node : sensors_node)
{
const YAML::Node& sensor = doc[sensor_name.as<std::string>()];
std::string sensor_name = sensor_name_node.as<std::string>();
const YAML::Node& sensor = doc[sensor_name];

SensorParameters sensor_map;
sensor_map["name"] = sensor_name.as<std::string>();
sensor_map["name"] = sensor_name;
for (YAML::const_iterator sensor_it = sensor.begin(); sensor_it != sensor.end(); ++sensor_it)
{
sensor_map[sensor_it->first.as<std::string>()] = sensor_it->second.as<std::string>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
# The name of this file shouldn't be changed, or else the Setup Assistant won't detect it.
# Values may not be ideal defaults, original source unclear.
sensors:
- sensor_plugin: occupancy_map_monitor/PointCloudOctomapUpdater
- kinect_pointcloud
- kinect_depthimage
kinect_pointcloud:
sensor_plugin: occupancy_map_monitor/PointCloudOctomapUpdater
point_cloud_topic: /head_mount_kinect/depth_registered/points
max_range: 5.0
point_subsample: 1
padding_offset: 0.1
padding_scale: 1.0
max_update_rate: 1.0
filtered_cloud_topic: filtered_cloud
- sensor_plugin: occupancy_map_monitor/DepthImageOctomapUpdater
kinect_depthimage:
sensor_plugin: occupancy_map_monitor/DepthImageOctomapUpdater
image_topic: /head_mount_kinect/depth_registered/image_raw
queue_size: 5
near_clipping_plane_distance: 0.3
Expand Down

0 comments on commit 83171c6

Please sign in to comment.