Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Attributes
slam::SlamBase Class Reference

#include <base.h>

List of all members.

Classes

struct  Params

Public Member Functions

void finalize ()
 Finalize stereo slam node.
Params params () const
void setParams (const Params &params)
 SlamBase (ros::NodeHandle nh, ros::NodeHandle nhp)
 Class constructor. Reads node parameters and initialize some properties.

Protected Member Functions

void init ()
 Initializes the stereo slam node.
void msgsCallback (const nav_msgs::Odometry::ConstPtr &odom_msg, const sensor_msgs::ImageConstPtr &l_img_msg, const sensor_msgs::ImageConstPtr &r_img_msg, const sensor_msgs::CameraInfoConstPtr &l_info_msg, const sensor_msgs::CameraInfoConstPtr &r_info_msg)
 Messages callback. This function is called when synchronized odometry and image message are received.
void msgsCallback (const nav_msgs::Odometry::ConstPtr &odom_msg, const sensor_msgs::ImageConstPtr &l_img_msg, const sensor_msgs::ImageConstPtr &r_img_msg, const sensor_msgs::CameraInfoConstPtr &l_info_msg, const sensor_msgs::CameraInfoConstPtr &r_info_msg, const sensor_msgs::PointCloud2ConstPtr &cloud_msg)
 Messages callback. This function is called when synchronized odometry and image message are received.
void readParameters ()
 Reads the stereo slam node parameters.

Protected Attributes

ros::NodeHandle nh_
ros::NodeHandle nh_private_

Private Types

typedef
message_filters::sync_policies::ExactTime
< nav_msgs::Odometry,
sensor_msgs::Image,
sensor_msgs::Image,
sensor_msgs::CameraInfo,
sensor_msgs::CameraInfo,
sensor_msgs::PointCloud2 > 
ExactPolicyCloud
typedef
message_filters::sync_policies::ExactTime
< nav_msgs::Odometry,
sensor_msgs::Image,
sensor_msgs::Image,
sensor_msgs::CameraInfo,
sensor_msgs::CameraInfo > 
ExactPolicyNoCloud
typedef
message_filters::Synchronizer
< ExactPolicyCloud
ExactSyncCloud
typedef
message_filters::Synchronizer
< ExactPolicyNoCloud
ExactSyncNoCloud

Private Attributes

message_filters::Subscriber
< sensor_msgs::PointCloud2 > 
cloud_sub_
boost::shared_ptr< ExactSyncCloudexact_sync_cloud_
boost::shared_ptr
< ExactSyncNoCloud
exact_sync_no_cloud_
bool first_iter_
 > Graph object
slam::Graph graph_
 > Pose object
haloc::LoopClosure lc_
 > Stores parameters
message_filters::Subscriber
< sensor_msgs::CameraInfo > 
left_info_sub_
image_transport::SubscriberFilter left_sub_
message_filters::Subscriber
< nav_msgs::Odometry > 
odom_sub_
Params params_
PointCloud pcl_cloud_
 > Indicates first iteration
slam::Pose pose_
 > Loop closure object
message_filters::Subscriber
< sensor_msgs::CameraInfo > 
right_info_sub_
image_transport::SubscriberFilter right_sub_

Detailed Description

Definition at line 37 of file base.h.


Member Typedef Documentation

typedef message_filters::sync_policies::ExactTime<nav_msgs::Odometry, sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::CameraInfo, sensor_msgs::CameraInfo, sensor_msgs::PointCloud2> slam::SlamBase::ExactPolicyCloud [private]

Definition at line 120 of file base.h.

typedef message_filters::sync_policies::ExactTime<nav_msgs::Odometry, sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::CameraInfo, sensor_msgs::CameraInfo> slam::SlamBase::ExactPolicyNoCloud [private]

Definition at line 110 of file base.h.

Definition at line 121 of file base.h.

Definition at line 111 of file base.h.


Constructor & Destructor Documentation

Class constructor. Reads node parameters and initialize some properties.

Returns:
Parameters:
nhpublic node handler
nhpprivate node handler

Definition at line 12 of file base.cpp.


Member Function Documentation

Finalize stereo slam node.

Returns:

Definition at line 25 of file base.cpp.

void slam::SlamBase::init ( ) [protected]

Initializes the stereo slam node.

Returns:
true if init OK

Definition at line 261 of file base.cpp.

void slam::SlamBase::msgsCallback ( const nav_msgs::Odometry::ConstPtr &  odom_msg,
const sensor_msgs::ImageConstPtr &  l_img_msg,
const sensor_msgs::ImageConstPtr &  r_img_msg,
const sensor_msgs::CameraInfoConstPtr &  l_info_msg,
const sensor_msgs::CameraInfoConstPtr &  r_info_msg 
) [protected]

Messages callback. This function is called when synchronized odometry and image message are received.

Returns:
Parameters:
odom_msgros odometry message of type nav_msgs::Odometry
l_imgleft stereo image message of type sensor_msgs::Image
r_imgright stereo image message of type sensor_msgs::Image
l_infoleft stereo info message of type sensor_msgs::CameraInfo
r_inforight stereo info message of type sensor_msgs::CameraInfo

Definition at line 67 of file base.cpp.

void slam::SlamBase::msgsCallback ( const nav_msgs::Odometry::ConstPtr &  odom_msg,
const sensor_msgs::ImageConstPtr &  l_img_msg,
const sensor_msgs::ImageConstPtr &  r_img_msg,
const sensor_msgs::CameraInfoConstPtr &  l_info_msg,
const sensor_msgs::CameraInfoConstPtr &  r_info_msg,
const sensor_msgs::PointCloud2ConstPtr &  cloud_msg 
) [protected]

Messages callback. This function is called when synchronized odometry and image message are received.

Returns:
Parameters:
odom_msgros odometry message of type nav_msgs::Odometry
l_imgleft stereo image message of type sensor_msgs::Image
r_imgright stereo image message of type sensor_msgs::Image
l_infoleft stereo info message of type sensor_msgs::CameraInfo
r_inforight stereo info message of type sensor_msgs::CameraInfo
cloud_msgros pointcloud message of type sensor_msgs::PointCloud2

Definition at line 42 of file base.cpp.

Params slam::SlamBase::params ( ) const [inline]
Returns:
current parameters

Definition at line 74 of file base.h.

void slam::SlamBase::readParameters ( ) [protected]

Reads the stereo slam node parameters.

Returns:

Definition at line 187 of file base.cpp.

void slam::SlamBase::setParams ( const Params params) [inline]
Parameters:
paramsnew parameters

Definition at line 66 of file base.h.


Member Data Documentation

message_filters::Subscriber<sensor_msgs::PointCloud2> slam::SlamBase::cloud_sub_ [private]

Definition at line 103 of file base.h.

boost::shared_ptr<ExactSyncCloud> slam::SlamBase::exact_sync_cloud_ [private]

Definition at line 122 of file base.h.

Definition at line 112 of file base.h.

> Graph object

Definition at line 128 of file base.h.

> Pose object

Definition at line 127 of file base.h.

haloc::LoopClosure slam::SlamBase::lc_ [private]

> Stores parameters

Definition at line 125 of file base.h.

message_filters::Subscriber<sensor_msgs::CameraInfo> slam::SlamBase::left_info_sub_ [private]

Definition at line 101 of file base.h.

Definition at line 100 of file base.h.

Definition at line 79 of file base.h.

Definition at line 80 of file base.h.

Definition at line 102 of file base.h.

Definition at line 124 of file base.h.

> Indicates first iteration

Definition at line 129 of file base.h.

> Loop closure object

Definition at line 126 of file base.h.

Definition at line 101 of file base.h.

Definition at line 100 of file base.h.


The documentation for this class was generated from the following files:


stereo_slam
Author(s): Pep Lluis Negre
autogenerated on Thu Aug 27 2015 15:24:22