Loading...
Searching...
No Matches
ompl::tools::PlannerMonitor Class Reference

Monitor the properties a planner exposes, as the planner is running. Dump the planner properties to a stream, periodically. More...

#include <ompl/tools/debug/PlannerMonitor.h>

Public Member Functions

 PlannerMonitor (const PlannerMonitor &)=delete
PlannerMonitoroperator= (const PlannerMonitor &)=delete
 PlannerMonitor (base::PlannerPtr planner, std::ostream &out, double period=0.5, bool autoStart=true)
 Monitor a planner instance, and dump its properties to a specified stream, periodically.
 ~PlannerMonitor ()
 Destructor.
void startMonitor ()
 Start the monitoring thread.
void stopMonitor ()
 Stop the monitoring thread (automatically stopped by the destructor).

Detailed Description

Monitor the properties a planner exposes, as the planner is running. Dump the planner properties to a stream, periodically.

Definition at line 53 of file PlannerMonitor.h.

Constructor & Destructor Documentation

◆ PlannerMonitor()

ompl::tools::PlannerMonitor::PlannerMonitor ( base::PlannerPtr planner,
std::ostream & out,
double period = 0.5,
bool autoStart = true )
inline

Monitor a planner instance, and dump its properties to a specified stream, periodically.

Every time the properties are dumped, the stream offset is set to 0. It is often useful to have the stream be a file, and then issue commands such as 'watch cat filename'.

Definition at line 64 of file PlannerMonitor.h.

◆ ~PlannerMonitor()

ompl::tools::PlannerMonitor::~PlannerMonitor ( )
inline

Destructor.

Definition at line 72 of file PlannerMonitor.h.

Member Function Documentation

◆ startMonitor()

void ompl::tools::PlannerMonitor::startMonitor ( )

Start the monitoring thread.

Definition at line 42 of file PlannerMonitor.cpp.

◆ stopMonitor()

void ompl::tools::PlannerMonitor::stopMonitor ( )

Stop the monitoring thread (automatically stopped by the destructor).

Definition at line 53 of file PlannerMonitor.cpp.


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