Go to the documentation of this file.
38 #ifndef MESH_MAP__STEEPNESS_LAYER_H
39 #define MESH_MAP__STEEPNESS_LAYER_H
41 #include <dynamic_reconfigure/server.h>
42 #include <mesh_layers/SteepnessLayerConfig.h>
80 return std::numeric_limits<float>::infinity();
109 virtual std::set<lvr2::VertexHandle>&
lethals()
120 virtual void updateLethal(std::set<lvr2::VertexHandle>& added_lethal, std::set<lvr2::VertexHandle>& removed_lethal){};
129 virtual bool initialize(
const std::string& name);
138 dynamic_reconfigure::Server<mesh_layers::SteepnessLayerConfig>::CallbackType
config_callback;
155 #endif // MESH_MAP__STEEPNESS_LAYER_H
bool computeLethals()
mark vertices with values above the threshold as lethal
virtual bool writeLayer()
try to write layer to map file
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
virtual std::set< lvr2::VertexHandle > & lethals()
deliver set containing all vertices marked as lethal
void reconfigureCallback(mesh_layers::SteepnessLayerConfig &cfg, uint32_t level)
callback for incoming reconfigure configs
virtual bool initialize(const std::string &name)
initializes this layer plugin
dynamic_reconfigure::Server< mesh_layers::SteepnessLayerConfig >::CallbackType config_callback
std::set< lvr2::VertexHandle > lethal_vertices
lvr2::DenseVertexMap< float > steepness
virtual bool computeLayer()
calculate the values of this layer
Costmap layer which calculates the steepness of the vertices. This is useful to avoid stairs.
virtual float threshold()
delivers the threshold above which vertices are marked lethal
virtual float defaultValue()
delivers the default layer value
boost::shared_ptr< dynamic_reconfigure::Server< mesh_layers::SteepnessLayerConfig > > reconfigure_server_ptr
SteepnessLayerConfig config
virtual lvr2::VertexMap< float > & costs()
deliver the current costmap
virtual bool readLayer()
try read layer from map file
mesh_layers
Author(s): Sebastian Pütz
autogenerated on Thu Jan 25 2024 03:43:03