feat(depth): observed_volume depth clearing as deployed 2026-10-14
Baseline commit of the working-tree refactor built on 2026-10-14 17:24 and running on the KIT robot, recorded in one commit before further changes. - VoxelLayer clearing looks up TF at the depth image stamp. - ObservationBuffer: per-source cloud preparation at the measurement stamp, height/range gate before the PCL VoxelGrid. - DepthFramePairer: pairs the marking cloud with the clearing image by source and stamp, bounded queue and age. - DepthVisibilityChecker and the observed_volume clearing mode in VoxelLayer; the legacy frustum mode stays the default. - Tests: depth_observation_buffer_test, depth_visibility_test.
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include <robot_costmap_2d/costmap_layer.h>
|
||||
#include <robot_costmap_2d/layered_costmap.h>
|
||||
#include <robot_costmap_2d/observation_buffer.h>
|
||||
#include <robot_costmap_2d/depth_frame_pairer.h>
|
||||
#include <robot_costmap_2d/footprint.h>
|
||||
|
||||
#include <robot_nav_msgs/OccupancyGrid.h>
|
||||
@@ -202,6 +203,20 @@ protected:
|
||||
mutable std::mutex depth_camera_data_mutex_;
|
||||
robot_sensor_msgs::DepthCameraData::ConstPtr pending_depth_camera_data_;
|
||||
|
||||
struct PairedDepthSource
|
||||
{
|
||||
PairedDepthSource(const DepthFrustumConfig& config, double expected_period)
|
||||
: config(config), pairer(config, expected_period) {}
|
||||
std::string cloud_topic, depth_topic;
|
||||
boost::shared_ptr<ObservationBuffer> marking_buffer, depth_buffer;
|
||||
double min_height{0}, max_height{0};
|
||||
DepthFrustumConfig config;
|
||||
DepthFramePairer pairer;
|
||||
};
|
||||
std::vector<boost::shared_ptr<PairedDepthSource>> paired_depth_sources_;
|
||||
bool pairedDepthCurrent() const;
|
||||
void resetPairedDepth();
|
||||
|
||||
private:
|
||||
bool getParams(const std::string& config_file_name, robot::NodeHandle &nh);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user