Go to the documentation of this file.
38 #ifndef MESH_MAP__HEIGHTDIFF_LAYER_H
39 #define MESH_MAP__HEIGHTDIFF_LAYER_H
41 #include <dynamic_reconfigure/server.h>
42 #include <mesh_layers/HeightDiffLayerConfig.h>
73 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)
131 virtual bool initialize(
const std::string& name);
136 dynamic_reconfigure::Server<mesh_layers::HeightDiffLayerConfig>::CallbackType
config_callback;
158 #endif // MESH_MAP__HEIGHTDIFF_LAYER_H
virtual bool writeLayer()
try to write layer to map file
virtual float threshold()
delivers the threshold above which vertices are marked lethal
lvr2::DenseVertexMap< float > height_diff
HeightDiffLayerConfig config
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
bool computeLethals()
mark vertices with values above the threshold as lethal
virtual bool initialize(const std::string &name)
initializes this layer plugin
boost::shared_ptr< dynamic_reconfigure::Server< mesh_layers::HeightDiffLayerConfig > > reconfigure_server_ptr
virtual bool computeLayer()
calculate the values of this layer
void reconfigureCallback(mesh_layers::HeightDiffLayerConfig &cfg, uint32_t level)
callback for incoming reconfigure configs
virtual std::set< lvr2::VertexHandle > & lethals()
deliver set containing all vertices marked as lethal
virtual bool readLayer()
try read layer from map file
Costmap layer which calculates the height difference to avoid steep regions.
virtual float defaultValue()
delivers the default layer value
std::set< lvr2::VertexHandle > lethal_vertices
virtual lvr2::VertexMap< float > & costs()
deliver the current costmap
dynamic_reconfigure::Server< mesh_layers::HeightDiffLayerConfig >::CallbackType config_callback
mesh_layers
Author(s): Sebastian Pütz
autogenerated on Thu Jan 25 2024 03:43:03