RTAB-Map 0.23.10
Real-Time Appearance-Based Mapping
Loading...
Searching...
No Matches
rtabmap::OdometryResetEvent Class Reference

Asks OdometryThread to restart the odometry from a given pose. More...

#include <OdometryEvent.h>

Inheritance diagram for rtabmap::OdometryResetEvent:
Collaboration diagram for rtabmap::OdometryResetEvent:

Public Member Functions

 OdometryResetEvent (const Transform &pose=Transform::getIdentity())
 
virtual std::string getClassName () const
 
const TransformgetPose () const
 
- Public Member Functions inherited from UEvent
int getCode () const
 

Additional Inherited Members

- Protected Member Functions inherited from UEvent
 UEvent (int code=0)
 

Detailed Description

Asks OdometryThread to restart the odometry from a given pose.

The buffered frames and IMU samples are dropped, and the integration starts over from getPose(). Handled even before the thread is started.

See also
OdometryThread
Odometry::reset()

Definition at line 144 of file OdometryEvent.h.

Constructor & Destructor Documentation

◆ OdometryResetEvent()

rtabmap::OdometryResetEvent::OdometryResetEvent ( const Transform pose = Transform::getIdentity())
inline
Parameters
posePose to restart from (identity by default).

Definition at line 148 of file OdometryEvent.h.

◆ ~OdometryResetEvent()

virtual rtabmap::OdometryResetEvent::~OdometryResetEvent ( )
inlinevirtual

Definition at line 149 of file OdometryEvent.h.

Member Function Documentation

◆ getClassName()

virtual std::string rtabmap::OdometryResetEvent::getClassName ( ) const
inlinevirtual

This method is used to get the class name of the event. For example, if a class MouseEvent inherits from UEvent, it must return the "MouseEvent" string.

Returns
the class name

Implements UEvent.

Definition at line 150 of file OdometryEvent.h.

◆ getPose()

const Transform & rtabmap::OdometryResetEvent::getPose ( ) const
inline
Returns
The pose the odometry should restart from.

Definition at line 152 of file OdometryEvent.h.


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