slam_toolbox_localization.hpp
Go to the documentation of this file.
1 /*
2  * slam_toolbox
3  * Copyright Work Modifications (c) 2019, Steve Macenski
4  *
5  * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
6  * COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
7  * COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
8  * AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
9  *
10  * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO
11  * BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS
12  * CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
13  * CONDITIONS.
14  *
15  */
16 
17 /* Author: Steven Macenski */
18 
19 #ifndef SLAM_TOOLBOX_SLAM_TOOLBOX_LOCALIZATION_H_
20 #define SLAM_TOOLBOX_SLAM_TOOLBOX_LOCALIZATION_H_
21 
23 #include "std_srvs/Empty.h"
24 
25 namespace slam_toolbox
26 {
27 
28 using namespace ::karto;
29 
31 {
32 public:
35 
36 protected:
37  virtual void laserCallback(
38  const sensor_msgs::LaserScan::ConstPtr& scan) override final;
40  const geometry_msgs::PoseWithCovarianceStampedConstPtr& msg);
41 
43  std_srvs::Empty::Request& req,
44  std_srvs::Empty::Response& resp);
45  virtual bool serializePoseGraphCallback(
46  slam_toolbox_msgs::SerializePoseGraph::Request& req,
47  slam_toolbox_msgs::SerializePoseGraph::Response& resp) override final;
48  virtual bool deserializePoseGraphCallback(
49  slam_toolbox_msgs::DeserializePoseGraph::Request& req,
50  slam_toolbox_msgs::DeserializePoseGraph::Response& resp) override final;
51 
52  virtual LocalizedRangeScan* addScan(karto::LaserRangeFinder* laser,
53  const sensor_msgs::LaserScan::ConstPtr& scan,
54  karto::Pose2& karto_pose) override final;
55 
58 };
59 
60 }
61 
62 #endif //SLAM_TOOLBOX_SLAM_TOOLBOX_LOCALIZATION_H_
slam_toolbox::SlamToolbox
Definition: slam_toolbox_common.hpp:55
slam_toolbox::LocalizationSlamToolbox::clearLocalizationBuffer
bool clearLocalizationBuffer(std_srvs::Empty::Request &req, std_srvs::Empty::Response &resp)
Definition: slam_toolbox_localization.cpp:65
karto::LaserRangeFinder
Definition: Karto.h:3922
slam_toolbox_common.hpp
slam_toolbox::LocalizationSlamToolbox::deserializePoseGraphCallback
virtual bool deserializePoseGraphCallback(slam_toolbox_msgs::DeserializePoseGraph::Request &req, slam_toolbox_msgs::DeserializePoseGraph::Response &resp) override final
Definition: slam_toolbox_localization.cpp:88
slam_toolbox::LocalizationSlamToolbox::serializePoseGraphCallback
virtual bool serializePoseGraphCallback(slam_toolbox_msgs::SerializePoseGraph::Request &req, slam_toolbox_msgs::SerializePoseGraph::Response &resp) override final
Definition: slam_toolbox_localization.cpp:77
slam_toolbox::LocalizationSlamToolbox::addScan
virtual LocalizedRangeScan * addScan(karto::LaserRangeFinder *laser, const sensor_msgs::LaserScan::ConstPtr &scan, karto::Pose2 &karto_pose) override final
Definition: slam_toolbox_localization.cpp:133
slam_toolbox::LocalizationSlamToolbox::laserCallback
virtual void laserCallback(const sensor_msgs::LaserScan::ConstPtr &scan) override final
Definition: slam_toolbox_localization.cpp:103
slam_toolbox::LocalizationSlamToolbox
Definition: slam_toolbox_localization.hpp:30
slam_toolbox::LocalizationSlamToolbox::LocalizationSlamToolbox
LocalizationSlamToolbox(ros::NodeHandle &nh)
Definition: slam_toolbox_localization.cpp:25
ros::ServiceServer
slam_toolbox::LocalizationSlamToolbox::localization_pose_sub_
ros::Subscriber localization_pose_sub_
Definition: slam_toolbox_localization.hpp:56
slam_toolbox::LocalizationSlamToolbox::localizePoseCallback
void localizePoseCallback(const geometry_msgs::PoseWithCovarianceStampedConstPtr &msg)
Definition: slam_toolbox_localization.cpp:198
slam_toolbox::LocalizationSlamToolbox::clear_localization_
ros::ServiceServer clear_localization_
Definition: slam_toolbox_localization.hpp:57
slam_toolbox::LocalizationSlamToolbox::~LocalizationSlamToolbox
~LocalizationSlamToolbox()
Definition: slam_toolbox_localization.hpp:34
slam_toolbox
Definition: slam_toolbox_lifelong.hpp:24
karto::Pose2
Definition: Karto.h:2046
ros::NodeHandle
ros::Subscriber
karto
Definition: Karto.h:88


slam_toolbox
Author(s): Steve Macenski
autogenerated on Thu Jan 11 2024 03:37:56