mrpt_ekf_slam_2d_app.cpp
Go to the documentation of this file.
1 
3 
4 int main(int argc, char **argv)
5 {
6  ros::init(argc, argv, "mrpt_ekf_slam_2d");
8  ros::Rate r(100);
9  EKFslamWrapper slam;
10  slam.get_param();
11  slam.init();
12  ros::Duration(3).sleep();
13 
14  if (!slam.rawlogPlay())
15  { // if not play from rawlog file
16 
17  while (ros::ok())
18  {
19  ros::spinOnce();
20  r.sleep();
21  }
22  }
23 }
The EKFslamWrapper class provides the ROS wrapper for EKF SLAM 2d from MRPT libraries.
int main(int argc, char **argv)
bool sleep() const
bool rawlogPlay()
play rawlog file
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void get_param()
read the parameters from launch file
ROSCPP_DECL bool ok()
void init()
initialize publishers subscribers and EKF 2d slam
bool sleep()
ROSCPP_DECL void spinOnce()
r


mrpt_ekf_slam_2d
Author(s): Jose Luis, Vladislav Tananaev
autogenerated on Thu Jun 6 2019 19:37:43