proxemic_layer.h
Go to the documentation of this file.
1 // Copyright 2018 David V. Lu!!
2 #ifndef SOCIAL_NAVIGATION_LAYERS_PROXEMIC_LAYER_H
3 #define SOCIAL_NAVIGATION_LAYERS_PROXEMIC_LAYER_H
4 #include <ros/ros.h>
6 #include <dynamic_reconfigure/server.h>
7 #include <social_navigation_layers/ProxemicLayerConfig.h>
8 
9 double gaussian(double x, double y, double x0, double y0, double A, double varx, double vary, double skew);
10 double get_radius(double cutoff, double A, double var);
11 
13 {
14 class ProxemicLayer : public SocialLayer
15 {
16 public:
18  {
19  layered_costmap_ = NULL;
20  }
21 
22  virtual void onInitialize();
23  virtual void updateBoundsFromPeople(double* min_x, double* min_y, double* max_x, double* max_y);
24  virtual void updateCosts(costmap_2d::Costmap2D& master_grid, int min_i, int min_j, int max_i, int max_j);
25 
26 protected:
27  void configure(ProxemicLayerConfig &config, uint32_t level);
29  dynamic_reconfigure::Server<ProxemicLayerConfig>* server_;
30  dynamic_reconfigure::Server<ProxemicLayerConfig>::CallbackType f_;
31 };
32 } // namespace social_navigation_layers
33 
34 #endif // SOCIAL_NAVIGATION_LAYERS_PROXEMIC_LAYER_H
double gaussian(double x, double y, double x0, double y0, double A, double varx, double vary, double skew)
LayeredCostmap * layered_costmap_
virtual void updateCosts(costmap_2d::Costmap2D &master_grid, int min_i, int min_j, int max_i, int max_j)
virtual void updateBoundsFromPeople(double *min_x, double *min_y, double *max_x, double *max_y)
void configure(ProxemicLayerConfig &config, uint32_t level)
dynamic_reconfigure::Server< ProxemicLayerConfig >::CallbackType f_
double get_radius(double cutoff, double A, double var)
dynamic_reconfigure::Server< ProxemicLayerConfig > * server_


social_navigation_layers
Author(s): David V. Lu!!
autogenerated on Thu Mar 4 2021 04:02:57