Public Member Functions | Private Attributes | List of all members
rviz_visual_tools::RemoteControl Class Reference

#include <remote_control.h>

Public Member Functions

bool getAutonomous ()
 Get the autonomous mode. More...
 
bool getFullAutonomous ()
 
bool getStop ()
 See if we are in stop mode. More...
 
bool isWaiting ()
 Return true if debug interface is waiting for user input. More...
 
 RemoteControl (const ros::NodeHandle &nh)
 Constructor. More...
 
void rvizDashboardCallback (const sensor_msgs::Joy::ConstPtr &msg)
 Callback from ROS topic. More...
 
void setAutonomous (bool autonomous=true)
 Enable autonomous mode. More...
 
void setDisplayWaitingState (DisplayWaitingState displayWaitingState)
 
void setFullAutonomous (bool autonomous=true)
 
bool setReadyForNextStep ()
 Step to next step. More...
 
void setStop (bool stop=true)
 Stop something in pipeline. More...
 
bool waitForNextFullStep (const std::string &caption="go to next full step")
 
bool waitForNextStep (const std::string &caption="go to next step")
 Wait until user presses a button. More...
 

Private Attributes

bool autonomous_ = false
 
DisplayWaitingState displayWaitingState_
 
bool full_autonomous_ = false
 
bool is_waiting_ = false
 
std::string name_ = "remote_control"
 
bool next_step_ready_ = false
 
ros::NodeHandle nh_
 
ros::Subscriber rviz_dashboard_sub_
 
bool stop_ = false
 

Detailed Description

Definition at line 55 of file remote_control.h.

Constructor & Destructor Documentation

rviz_visual_tools::RemoteControl::RemoteControl ( const ros::NodeHandle nh)
explicit

Constructor.

Definition at line 53 of file remote_control.cpp.

Member Function Documentation

bool rviz_visual_tools::RemoteControl::getAutonomous ( )

Get the autonomous mode.

Returns
true if is in autonomous mode

Definition at line 128 of file remote_control.cpp.

bool rviz_visual_tools::RemoteControl::getFullAutonomous ( )

Definition at line 133 of file remote_control.cpp.

bool rviz_visual_tools::RemoteControl::getStop ( )

See if we are in stop mode.

Definition at line 123 of file remote_control.cpp.

bool rviz_visual_tools::RemoteControl::isWaiting ( )
inline

Return true if debug interface is waiting for user input.

Definition at line 105 of file remote_control.h.

void rviz_visual_tools::RemoteControl::rvizDashboardCallback ( const sensor_msgs::Joy::ConstPtr &  msg)

Callback from ROS topic.

Definition at line 65 of file remote_control.cpp.

void rviz_visual_tools::RemoteControl::setAutonomous ( bool  autonomous = true)

Enable autonomous mode.

Definition at line 100 of file remote_control.cpp.

void rviz_visual_tools::RemoteControl::setDisplayWaitingState ( DisplayWaitingState  displayWaitingState)
inline

Definition at line 110 of file remote_control.h.

void rviz_visual_tools::RemoteControl::setFullAutonomous ( bool  autonomous = true)

Definition at line 106 of file remote_control.cpp.

bool rviz_visual_tools::RemoteControl::setReadyForNextStep ( )

Step to next step.

Returns
true on success

Definition at line 89 of file remote_control.cpp.

void rviz_visual_tools::RemoteControl::setStop ( bool  stop = true)

Stop something in pipeline.

Definition at line 113 of file remote_control.cpp.

bool rviz_visual_tools::RemoteControl::waitForNextFullStep ( const std::string &  caption = "go to next full step")

Definition at line 178 of file remote_control.cpp.

bool rviz_visual_tools::RemoteControl::waitForNextStep ( const std::string &  caption = "go to next step")

Wait until user presses a button.

Returns
true on success

Definition at line 138 of file remote_control.cpp.

Member Data Documentation

bool rviz_visual_tools::RemoteControl::autonomous_ = false
private

Definition at line 128 of file remote_control.h.

DisplayWaitingState rviz_visual_tools::RemoteControl::displayWaitingState_
private

Definition at line 133 of file remote_control.h.

bool rviz_visual_tools::RemoteControl::full_autonomous_ = false
private

Definition at line 129 of file remote_control.h.

bool rviz_visual_tools::RemoteControl::is_waiting_ = false
private

Definition at line 126 of file remote_control.h.

std::string rviz_visual_tools::RemoteControl::name_ = "remote_control"
private

Definition at line 120 of file remote_control.h.

bool rviz_visual_tools::RemoteControl::next_step_ready_ = false
private

Definition at line 127 of file remote_control.h.

ros::NodeHandle rviz_visual_tools::RemoteControl::nh_
private

Definition at line 117 of file remote_control.h.

ros::Subscriber rviz_visual_tools::RemoteControl::rviz_dashboard_sub_
private

Definition at line 123 of file remote_control.h.

bool rviz_visual_tools::RemoteControl::stop_ = false
private

Definition at line 130 of file remote_control.h.


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


rviz_visual_tools
Author(s): Dave Coleman
autogenerated on Mon Jun 10 2019 15:05:18