SMACC
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
cl_move_base_z::odom_tracker Namespace Reference

Classes

class  OdomTracker
 This class track the required distance of the cord based on the external localization system. More...
 
struct  StackedPathEntry
 

Enumerations

enum class  WorkingMode : uint8_t { RECORD_PATH = 0 , CLEAR_PATH = 1 , IDLE = 2 }
 

Functions

double p2pDistance (const geometry_msgs::Point &p1, const geometry_msgs::Point &p2)
 

Enumeration Type Documentation

◆ WorkingMode

enum class cl_move_base_z::odom_tracker::WorkingMode : uint8_t
strong
Enumerator
RECORD_PATH 
CLEAR_PATH 
IDLE 

Definition at line 32 of file odom_tracker.h.

Function Documentation

◆ p2pDistance()

double cl_move_base_z::odom_tracker::p2pDistance ( const geometry_msgs::Point &  p1,
const geometry_msgs::Point &  p2 
)
inline

p2pDistance()

Definition at line 158 of file odom_tracker.h.

159{
160 double dx = (p1.x - p2.x);
161 double dy = (p1.y - p2.y);
162 double dz = (p2.z - p2.z);
163 double dist = sqrt(dx * dx + dy * dy + dz * dz);
164 return dist;
165}

Referenced by cl_move_base_z::odom_tracker::OdomTracker::updateClearPath(), and cl_move_base_z::odom_tracker::OdomTracker::updateRecordPath().

Here is the caller graph for this function: