refactor(depth): keep DepthCameraObstacleLayer, drop the legacy depth clearing
Two depth-image clearing designs lived in this package: the frustum ray
clearing inherited from dev_cam_intel (DepthCameraData sources of
ObstacleLayer/VoxelLayer, frustum_* and column_* keys) and the observed_volume
evidence clearing (ROC) on top of it. Both are replaced on the robot by
DepthCameraObstacleLayer, a port of costmap_depth_camera that takes the
filtered PointCloud2 directly, so both are removed and the tree is rebuilt
from main (a63c084) plus the plugin.
- observation.h / observation_buffer: DepthFrustumConfig, DepthCameraObservation
and the depth buffering API are gone; buffers hold point clouds only.
- ObstacleLayer/VoxelLayer: no frustum ray casting, column clearing or depth
ray cache. A DepthCameraData source or frustum_clearing_enabled: true now
fails at startup with a message pointing to DepthCameraObstacleLayer
instead of silently dropping the camera; DepthCameraData reaching the layer
through the gateway is ignored.
- copyParentParameters no longer forwards the frustum_* / column_* keys.
- ROC files (depth_evidence_store, depth_visibility, depth_frame_pairer) and
their tests are not carried over; CloudProcessingConfig goes with them.
- PCL is needed by the plugin library only. The plugin test moves under
BUILD_COSTMAP_TESTS; BUILD_DEPTH_MARKING_TESTS is gone.
- README documents DepthCameraObstacleLayer and its known limits.
The plugin code is unchanged from the version running on the KIT robot.
This commit is contained in:
@@ -180,28 +180,6 @@ TEST(CostmapPerformanceRegression, observation_copy_shares_cloud_payload)
|
||||
EXPECT_EQ(copied.cloud_->data, cloud.data);
|
||||
}
|
||||
|
||||
TEST(CostmapPerformanceRegression, latest_depth_frame_is_consumed_once)
|
||||
{
|
||||
// tf3::BufferCore tf_buffer(tf3::Duration(10.0));
|
||||
// ObservationBuffer buffer(
|
||||
// "/camera/depth/data", 0.0, 0.5, 0.0, 2.0, 2.5, 3.0,
|
||||
// 8, 0.2, 3.0, tf_buffer, "odom", "", 0.2);
|
||||
|
||||
// robot_sensor_msgs::DepthCameraData::ConstPtr depth =
|
||||
// boost::make_shared<robot_sensor_msgs::DepthCameraData>();
|
||||
// buffer.bufferDepthCamera(depth);
|
||||
|
||||
// std::vector<DepthCameraObservation> first_snapshot;
|
||||
// buffer.getDepthObservations(first_snapshot);
|
||||
// ASSERT_EQ(first_snapshot.size(), 1u);
|
||||
// EXPECT_EQ(first_snapshot.front().data_, depth.get());
|
||||
// EXPECT_EQ(first_snapshot.front().topic_, "/camera/depth/data");
|
||||
|
||||
// std::vector<DepthCameraObservation> second_snapshot;
|
||||
// buffer.getDepthObservations(second_snapshot);
|
||||
// EXPECT_TRUE(second_snapshot.empty());
|
||||
}
|
||||
|
||||
TEST(CostmapPerformanceRegression, inflation_buckets_preserve_radial_costs)
|
||||
{
|
||||
ASSERT_EQ(setenv("PNKX_NAV_CORE_CONFIG_DIR", ROBOT_COSTMAP_2D_DIR, 1), 0);
|
||||
|
||||
Reference in New Issue
Block a user