Public Member Functions | Private Member Functions | Private Attributes | List of all members
planning_scene_monitor::TrajectoryMonitor Class Reference

#include <trajectory_monitor.h>

Public Member Functions

void clearTrajectory ()
 
double getSamplingFrequency () const
 
const robot_trajectory::RobotTrajectorygetTrajectory ()
 
bool isActive () const
 
void setOnStateAddCallback (const TrajectoryStateAddedCallback &callback)
 
void setSamplingFrequency (double sampling_frequency)
 
void startTrajectoryMonitor ()
 
void stopTrajectoryMonitor ()
 
void swapTrajectory (robot_trajectory::RobotTrajectory &other)
 
 TrajectoryMonitor (const CurrentStateMonitorConstPtr &state_monitor, double sampling_frequency=0.0)
 Constructor. More...
 
 ~TrajectoryMonitor ()
 

Private Member Functions

void recordStates ()
 

Private Attributes

CurrentStateMonitorConstPtr current_state_monitor_
 
ros::Time last_recorded_state_time_
 
std::unique_ptr< boost::thread > record_states_thread_
 
double sampling_frequency_
 
TrajectoryStateAddedCallback state_add_callback_
 
robot_trajectory::RobotTrajectory trajectory_
 
ros::Time trajectory_start_time_
 

Detailed Description

Monitors the joint_states topic and tf to record the trajectory of the robot.

Definition at line 84 of file trajectory_monitor.h.

Constructor & Destructor Documentation

◆ TrajectoryMonitor()

planning_scene_monitor::TrajectoryMonitor::TrajectoryMonitor ( const CurrentStateMonitorConstPtr &  state_monitor,
double  sampling_frequency = 0.0 
)

Constructor.

Definition at line 45 of file trajectory_monitor.cpp.

◆ ~TrajectoryMonitor()

planning_scene_monitor::TrajectoryMonitor::~TrajectoryMonitor ( )

Definition at line 54 of file trajectory_monitor.cpp.

Member Function Documentation

◆ clearTrajectory()

void planning_scene_monitor::TrajectoryMonitor::clearTrajectory ( )

Definition at line 96 of file trajectory_monitor.cpp.

◆ getSamplingFrequency()

double planning_scene_monitor::TrajectoryMonitor::getSamplingFrequency ( ) const
inline

Definition at line 101 of file trajectory_monitor.h.

◆ getTrajectory()

const robot_trajectory::RobotTrajectory& planning_scene_monitor::TrajectoryMonitor::getTrajectory ( )
inline

Return the current maintained trajectory. This function is not thread safe (hence NOT const), because the trajectory could be modified.

Definition at line 110 of file trajectory_monitor.h.

◆ isActive()

bool planning_scene_monitor::TrajectoryMonitor::isActive ( ) const

Definition at line 71 of file trajectory_monitor.cpp.

◆ recordStates()

void planning_scene_monitor::TrajectoryMonitor::recordStates ( )
private

Definition at line 106 of file trajectory_monitor.cpp.

◆ setOnStateAddCallback()

void planning_scene_monitor::TrajectoryMonitor::setOnStateAddCallback ( const TrajectoryStateAddedCallback callback)
inline

Definition at line 120 of file trajectory_monitor.h.

◆ setSamplingFrequency()

void planning_scene_monitor::TrajectoryMonitor::setSamplingFrequency ( double  sampling_frequency)

Definition at line 59 of file trajectory_monitor.cpp.

◆ startTrajectoryMonitor()

void planning_scene_monitor::TrajectoryMonitor::startTrajectoryMonitor ( )

Definition at line 76 of file trajectory_monitor.cpp.

◆ stopTrajectoryMonitor()

void planning_scene_monitor::TrajectoryMonitor::stopTrajectoryMonitor ( )

Definition at line 85 of file trajectory_monitor.cpp.

◆ swapTrajectory()

void planning_scene_monitor::TrajectoryMonitor::swapTrajectory ( robot_trajectory::RobotTrajectory other)
inline

Definition at line 115 of file trajectory_monitor.h.

Member Data Documentation

◆ current_state_monitor_

CurrentStateMonitorConstPtr planning_scene_monitor::TrajectoryMonitor::current_state_monitor_
private

Definition at line 128 of file trajectory_monitor.h.

◆ last_recorded_state_time_

ros::Time planning_scene_monitor::TrajectoryMonitor::last_recorded_state_time_
private

Definition at line 133 of file trajectory_monitor.h.

◆ record_states_thread_

std::unique_ptr<boost::thread> planning_scene_monitor::TrajectoryMonitor::record_states_thread_
private

Definition at line 135 of file trajectory_monitor.h.

◆ sampling_frequency_

double planning_scene_monitor::TrajectoryMonitor::sampling_frequency_
private

Definition at line 129 of file trajectory_monitor.h.

◆ state_add_callback_

TrajectoryStateAddedCallback planning_scene_monitor::TrajectoryMonitor::state_add_callback_
private

Definition at line 136 of file trajectory_monitor.h.

◆ trajectory_

robot_trajectory::RobotTrajectory planning_scene_monitor::TrajectoryMonitor::trajectory_
private

Definition at line 131 of file trajectory_monitor.h.

◆ trajectory_start_time_

ros::Time planning_scene_monitor::TrajectoryMonitor::trajectory_start_time_
private

Definition at line 132 of file trajectory_monitor.h.


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


planning
Author(s): Ioan Sucan , Sachin Chitta
autogenerated on Thu Nov 21 2024 03:24:18