social_layer.h
Go to the documentation of this file.
1 // Copyright 2018 David V. Lu!!
2 #ifndef SOCIAL_NAVIGATION_LAYERS_SOCIAL_LAYER_H
3 #define SOCIAL_NAVIGATION_LAYERS_SOCIAL_LAYER_H
4 #include <ros/ros.h>
5 #include <costmap_2d/layer.h>
7 #include <people_msgs/People.h>
8 #include <boost/thread.hpp>
9 #include <list>
10 
12 {
14 {
15 public:
17  {
18  layered_costmap_ = NULL;
19  }
20 
21  virtual void onInitialize();
22  virtual void updateBounds(double origin_x, double origin_y, double origin_yaw, double* min_x, double* min_y,
23  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) = 0;
25 
26  virtual void updateBoundsFromPeople(double* min_x, double* min_y, double* max_x, double* max_y) = 0;
27 
29  {
30  return false;
31  }
32 
33 protected:
34  void peopleCallback(const people_msgs::People& people);
36  people_msgs::People people_list_;
37  std::list<people_msgs::Person> transformed_people_;
39  boost::recursive_mutex lock_;
43 };
44 } // namespace social_navigation_layers
45 
46 #endif // SOCIAL_NAVIGATION_LAYERS_SOCIAL_LAYER_H
LayeredCostmap * layered_costmap_
std::list< people_msgs::Person > transformed_people_
Definition: social_layer.h:37
virtual void updateBoundsFromPeople(double *min_x, double *min_y, double *max_x, double *max_y)=0
virtual void updateBounds(double origin_x, double origin_y, double origin_yaw, double *min_x, double *min_y, double *max_x, double *max_y)
virtual void updateCosts(costmap_2d::Costmap2D &master_grid, int min_i, int min_j, int max_i, int max_j)=0
void peopleCallback(const people_msgs::People &people)


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