49 costmap_2d::Costmap2DROS(name, *tf_listener_ptr),
50 shutdown_costmap_(false), costmap_users_(0), private_nh_(
"~")
75 ROS_WARN(
"Zero shutdown costmaps delay is not recommended, as it forces us to enable costmaps on each action");
92 boost::unique_lock<costmap_2d::Costmap2D::mutex_t> lock(*
getCostmap()->getMutex());
bool clear_on_shutdown_
clear the costmap, when shutting down
bool shutdown_costmap_
don't update costmap when not using it
void reconfigure(double shutdown_costmap, double shutdown_costmap_delay)
Reconfiguration method called by dynamic reconfigure.
void clear()
Clear costmap.
void checkActivate()
Check whether the costmap should be activated.
ros::Duration shutdown_costmap_delay_
costmap delayed shutdown delay
boost::mutex check_costmap_mutex_
Start/stop costmap mutex; concurrent calls to start can lead to segfault.
void deactivate(const ros::TimerEvent &event)
Timer-triggered deactivation of the costmap.
void checkDeactivate()
Check whether the costmap should and could be deactivated.
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
#define ROS_ASSERT_MSG(cond,...)
Timer createTimer(Rate r, Handler h, Obj o, bool oneshot=false, bool autostart=true) const
#define ROS_DEBUG_STREAM(args)
ros::Timer shutdown_costmap_timer_
costmap delayed shutdown timer
virtual ~CostmapWrapper()
Destructor.
int16_t costmap_users_
keep track of plugins using costmap
CostmapWrapper(const std::string &name, const TFPtr &tf_listener_ptr)
Constructor.
ros::NodeHandle private_nh_
Private node handle.