Skip to content

Commit

Permalink
Update config validation schemas for CropMapOperation
Browse files Browse the repository at this point in the history
  • Loading branch information
victorreijgwart committed Nov 28, 2024
1 parent c6759c6 commit 3bbd1b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct CropMapOperationConfig : public ConfigBase<CropMapOperationConfig, 5> {
Seconds<FloatingPoint> once_every = 10.f;

//! Name of the TF frame to treat as the center point. Usually the robot's
//! body frame. When the cropper runs, all voxels that are further than
//! body frame. When the cropper runs, all cells that are further than
//! `radius` from this point are deleted.
std::string body_frame = "body";

Expand Down
14 changes: 11 additions & 3 deletions tooling/schemas/wavemap/map_operations/crop_map_operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@
"$ref": "../value_with_unit/convertible_to_seconds.json"
},
"body_frame": {
"description": "Name of the TF frame to treat as the center point. Usually the robot's body frame. When the cropper runs, all blocks that are further than remove_blocks_beyond_distance from this point are deleted.",
"description": "Name of the TF frame to treat as the center point. Usually the robot's body frame. When the cropper runs, all cells that are further than `radius` from this point are deleted.",
"type": "string",
"examples": [
"body"
]
},
"remove_blocks_beyond_distance": {
"description": "Distance beyond which blocks are deleted when the cropper is executed.",
"tf_time_offset": {
"description": "Time offset applied when retrieving the transform from body_frame to world_frame. Set to -1 to use the most recent transform available in ROS TF, ignoring timestamps (default). If set to a non-negative value, the transform lookup uses a timestamp of `ros::Time::now() - tf_time_offset`.",
"$ref": "../value_with_unit/convertible_to_seconds.json"
},
"radius": {
"description": "Distance beyond which to remove cells from the map.",
"$ref": "../value_with_unit/convertible_to_meters.json"
},
"max_update_resolution": {
"description": "Maximum resolution at which the crop is applied. Set to 0 to match the map's maximum resolution (default). Setting a higher value reduces computation but produces more jagged borders.",
"$ref": "../value_with_unit/convertible_to_meters.json"
}
}
Expand Down

0 comments on commit 3bbd1b8

Please sign in to comment.