Costmap layer which calculates the steepness of the vertices. This is useful to avoid stairs. More...
#include <steepness_layer.h>

Private Member Functions | |
| virtual bool | computeLayer () |
| calculate the values of this layer More... | |
| bool | computeLethals () |
| mark vertices with values above the threshold as lethal More... | |
| virtual lvr2::VertexMap< float > & | costs () |
| deliver the current costmap More... | |
| virtual float | defaultValue () |
| delivers the default layer value More... | |
| virtual bool | initialize (const std::string &name) |
| initializes this layer plugin More... | |
| virtual std::set< lvr2::VertexHandle > & | lethals () |
| deliver set containing all vertices marked as lethal More... | |
| virtual bool | readLayer () |
| try read layer from map file More... | |
| void | reconfigureCallback (mesh_layers::SteepnessLayerConfig &cfg, uint32_t level) |
| callback for incoming reconfigure configs More... | |
| virtual float | threshold () |
| delivers the threshold above which vertices are marked lethal More... | |
| virtual void | updateLethal (std::set< lvr2::VertexHandle > &added_lethal, std::set< lvr2::VertexHandle > &removed_lethal) |
| update set of lethal vertices by adding and removing vertices More... | |
| virtual bool | writeLayer () |
| try to write layer to map file More... | |
Private Attributes | |
| SteepnessLayerConfig | config |
| dynamic_reconfigure::Server< mesh_layers::SteepnessLayerConfig >::CallbackType | config_callback |
| bool | first_config |
| std::set< lvr2::VertexHandle > | lethal_vertices |
| boost::shared_ptr< dynamic_reconfigure::Server< mesh_layers::SteepnessLayerConfig > > | reconfigure_server_ptr |
| lvr2::DenseVertexMap< float > | steepness |
Additional Inherited Members | |
Public Types inherited from mesh_map::AbstractLayer | |
| typedef boost::shared_ptr< mesh_map::AbstractLayer > | Ptr |
Public Member Functions inherited from mesh_map::AbstractLayer | |
| virtual bool | initialize (const std::string &name, const notify_func notify_update, std::shared_ptr< mesh_map::MeshMap > &map, std::shared_ptr< lvr2::HalfEdgeMesh< Vector >> &mesh, std::shared_ptr< lvr2::AttributeMeshIOBase > &io) |
| void | notifyChange () |
| virtual lvr2::BaseVector< float > | vectorAt (const lvr2::VertexHandle &vertex) |
| virtual lvr2::BaseVector< float > | vectorAt (const std::array< lvr2::VertexHandle, 3 > &vertices, const std::array< float, 3 > &barycentric_coords) |
| virtual const boost::optional< lvr2::VertexMap< lvr2::BaseVector< float > > & > | vectorMap () |
Protected Attributes inherited from mesh_map::AbstractLayer | |
| std::string | layer_name |
| std::shared_ptr< mesh_map::MeshMap > | map_ptr |
| std::shared_ptr< lvr2::AttributeMeshIOBase > | mesh_io_ptr |
| std::shared_ptr< lvr2::HalfEdgeMesh< Vector > > | mesh_ptr |
| ros::NodeHandle | private_nh |
Costmap layer which calculates the steepness of the vertices. This is useful to avoid stairs.
Definition at line 50 of file steepness_layer.h.
|
privatevirtual |
calculate the values of this layer
Implements mesh_map::AbstractLayer.
Definition at line 95 of file steepness_layer.cpp.
|
private |
mark vertices with values above the threshold as lethal
Definition at line 77 of file steepness_layer.cpp.
|
privatevirtual |
deliver the current costmap
Implements mesh_map::AbstractLayer.
Definition at line 163 of file steepness_layer.cpp.
|
inlineprivatevirtual |
delivers the default layer value
Implements mesh_map::AbstractLayer.
Definition at line 78 of file steepness_layer.h.
|
privatevirtual |
initializes this layer plugin
| name | name of this plugin |
Implements mesh_map::AbstractLayer.
Definition at line 192 of file steepness_layer.cpp.
|
inlineprivatevirtual |
deliver set containing all vertices marked as lethal
Implements mesh_map::AbstractLayer.
Definition at line 109 of file steepness_layer.h.
|
privatevirtual |
try read layer from map file
Implements mesh_map::AbstractLayer.
Definition at line 49 of file steepness_layer.cpp.
|
private |
callback for incoming reconfigure configs
| cfg | new config |
| level | level |
Definition at line 168 of file steepness_layer.cpp.
|
privatevirtual |
delivers the threshold above which vertices are marked lethal
Implements mesh_map::AbstractLayer.
Definition at line 90 of file steepness_layer.cpp.
|
inlineprivatevirtual |
update set of lethal vertices by adding and removing vertices
| added_lethal | vertices to be marked as lethal |
| removed_lethal | vertices to be removed from the set of lethal vertices |
Implements mesh_map::AbstractLayer.
Definition at line 120 of file steepness_layer.h.
|
privatevirtual |
try to write layer to map file
Implements mesh_map::AbstractLayer.
Definition at line 63 of file steepness_layer.cpp.
|
private |
Definition at line 142 of file steepness_layer.h.
|
private |
Definition at line 138 of file steepness_layer.h.
|
private |
Definition at line 140 of file steepness_layer.h.
|
private |
Definition at line 134 of file steepness_layer.h.
|
private |
Definition at line 137 of file steepness_layer.h.
|
private |
Definition at line 132 of file steepness_layer.h.