Public Member Functions | Protected Slots | Private Member Functions | Private Attributes | List of all members
rsm::RSMControlPanel Class Reference

Plugin for rqt which adds buttons to interface the rsm. More...

#include <RSMControls.h>

Inheritance diagram for rsm::RSMControlPanel:
Inheritance graph
[legend]

Public Member Functions

virtual void initPlugin (qt_gui_cpp::PluginContext &context)
 
virtual void restoreSettings (const qt_gui_cpp::Settings &plugin_settings, const qt_gui_cpp::Settings &instance_settings)
 
 RSMControlPanel ()
 
virtual void saveSettings (qt_gui_cpp::Settings &plugin_settings, qt_gui_cpp::Settings &instance_settings) const
 
virtual void shutdownPlugin ()
 
virtual ~RSMControlPanel ()
 
- Public Member Functions inherited from rqt_gui_cpp::Plugin
 Plugin ()
 
- Public Member Functions inherited from qt_gui_cpp::Plugin
virtual bool hasConfiguration () const
 
 Plugin ()
 
virtual void triggerConfiguration ()
 
- Public Member Functions inherited from nodelet::Nodelet
void init (const std::string &name, const M_string &remapping_args, const V_string &my_argv, ros::CallbackQueueInterface *st_queue=NULL, ros::CallbackQueueInterface *mt_queue=NULL)
 
 Nodelet ()
 
virtual ~Nodelet ()
 

Protected Slots

void addWaypoint ()
 
void emergencyStop ()
 
void resetWaypoints ()
 
void setAutonomyOperation ()
 
void setReverseMode ()
 
void setTeleoperation ()
 
void startStopExploration ()
 
void startStopWaypointFollowing ()
 
void stop2dNavGoal ()
 
void stopOperation ()
 

Private Member Functions

void callSetOperationMode ()
 
void connectSlots ()
 
void getStateInfo ()
 
void initCommunications ()
 
void initRoutineComboBox ()
 
void operationModeCallback (const rsm_msgs::OperationMode::ConstPtr &operation_mode)
 
void reverseModeCallback (const std_msgs::Bool::ConstPtr &reverse_mode)
 
void setExplorationMode ()
 
void setWaypointFollowingMode ()
 
void stateInfoCallback (const std_msgs::String::ConstPtr &state_info)
 
void updateOperationModeGUI ()
 

Private Attributes

ros::ServiceClient _add_waypoint_client
 
bool _emergency_stop_active
 
bool _exploration_mode
 
ros::Subscriber _exploration_mode_subscriber
 
bool _exploration_running
 Is the exploration currently running. More...
 
ros::ServiceClient _get_robot_pose_client
 
ros::ServiceClient _get_waypoint_routines_client
 
Ui::rsm_controls * _gui
 
ros::NodeHandle _nh
 
int _operation_mode
 
bool _operation_mode_button_pushed
 Was an operation mode button just pushed. More...
 
ros::Subscriber _operation_mode_subcriber
 
bool _reverse_mode
 
ros::Subscriber _reverse_mode_subscriber
 
ros::ServiceClient _set_exploration_mode_client
 
ros::ServiceClient _set_operation_mode_client
 
ros::ServiceClient _set_reverse_mode_client
 
ros::ServiceClient _set_waypoint_following_mode_client
 
ros::ServiceClient _start_stop_exploration_client
 
ros::ServiceClient _start_stop_waypoint_following_client
 
ros::ServiceClient _state_info_client
 
ros::Subscriber _state_info_subscriber
 
ros::ServiceClient _stop_2d_nav_goal_client
 
bool _waypoint_following_running
 Is waypoint following currently running. More...
 
ros::ServiceClient _waypoint_reset_client
 
std::vector< std::string > _waypoint_routines
 
QWidget * _widget_main
 

Additional Inherited Members

- Protected Member Functions inherited from nodelet::Nodelet
ros::CallbackQueueInterfacegetMTCallbackQueue () const
 
ros::NodeHandlegetMTNodeHandle () const
 
ros::NodeHandlegetMTPrivateNodeHandle () const
 
const V_stringgetMyArgv () const
 
const std::string & getName () const
 
ros::NodeHandlegetNodeHandle () const
 
ros::NodeHandlegetPrivateNodeHandle () const
 
const M_stringgetRemappingArgs () const
 
ros::CallbackQueueInterfacegetSTCallbackQueue () const
 
std::string getSuffixedName (const std::string &suffix) const
 

Detailed Description

Plugin for rqt which adds buttons to interface the rsm.

Definition at line 31 of file RSMControls.h.

Constructor & Destructor Documentation

rsm::RSMControlPanel::RSMControlPanel ( )

Definition at line 5 of file RSMControls.cpp.

rsm::RSMControlPanel::~RSMControlPanel ( )
virtual

Definition at line 10 of file RSMControls.cpp.

Member Function Documentation

void rsm::RSMControlPanel::addWaypoint ( )
protectedslot

Definition at line 174 of file RSMControls.cpp.

void rsm::RSMControlPanel::callSetOperationMode ( )
private

Definition at line 253 of file RSMControls.cpp.

void rsm::RSMControlPanel::connectSlots ( )
private

Definition at line 68 of file RSMControls.cpp.

void rsm::RSMControlPanel::emergencyStop ( )
protectedslot

Definition at line 217 of file RSMControls.cpp.

void rsm::RSMControlPanel::getStateInfo ( )
private

Definition at line 359 of file RSMControls.cpp.

void rsm::RSMControlPanel::initCommunications ( )
private

Definition at line 30 of file RSMControls.cpp.

void rsm::RSMControlPanel::initPlugin ( qt_gui_cpp::PluginContext context)
virtual

Reimplemented from qt_gui_cpp::Plugin.

Definition at line 13 of file RSMControls.cpp.

void rsm::RSMControlPanel::initRoutineComboBox ( )
private

Definition at line 344 of file RSMControls.cpp.

void rsm::RSMControlPanel::operationModeCallback ( const rsm_msgs::OperationMode::ConstPtr &  operation_mode)
private

Definition at line 333 of file RSMControls.cpp.

void rsm::RSMControlPanel::resetWaypoints ( )
protectedslot

Definition at line 156 of file RSMControls.cpp.

void rsm::RSMControlPanel::restoreSettings ( const qt_gui_cpp::Settings plugin_settings,
const qt_gui_cpp::Settings instance_settings 
)
virtual

Reimplemented from qt_gui_cpp::Plugin.

Definition at line 396 of file RSMControls.cpp.

void rsm::RSMControlPanel::reverseModeCallback ( const std_msgs::Bool::ConstPtr &  reverse_mode)
private

Definition at line 327 of file RSMControls.cpp.

void rsm::RSMControlPanel::saveSettings ( qt_gui_cpp::Settings plugin_settings,
qt_gui_cpp::Settings instance_settings 
) const
virtual

Reimplemented from qt_gui_cpp::Plugin.

Definition at line 391 of file RSMControls.cpp.

void rsm::RSMControlPanel::setAutonomyOperation ( )
protectedslot

Definition at line 230 of file RSMControls.cpp.

void rsm::RSMControlPanel::setExplorationMode ( )
private

Definition at line 286 of file RSMControls.cpp.

void rsm::RSMControlPanel::setReverseMode ( )
protectedslot

Definition at line 200 of file RSMControls.cpp.

void rsm::RSMControlPanel::setTeleoperation ( )
protectedslot

Definition at line 237 of file RSMControls.cpp.

void rsm::RSMControlPanel::setWaypointFollowingMode ( )
private

Definition at line 267 of file RSMControls.cpp.

void rsm::RSMControlPanel::shutdownPlugin ( )
virtual

Reimplemented from rqt_gui_cpp::Plugin.

Definition at line 387 of file RSMControls.cpp.

void rsm::RSMControlPanel::startStopExploration ( )
protectedslot

Definition at line 86 of file RSMControls.cpp.

void rsm::RSMControlPanel::startStopWaypointFollowing ( )
protectedslot

Definition at line 119 of file RSMControls.cpp.

void rsm::RSMControlPanel::stateInfoCallback ( const std_msgs::String::ConstPtr &  state_info)
private

Definition at line 296 of file RSMControls.cpp.

void rsm::RSMControlPanel::stop2dNavGoal ( )
protectedslot

Definition at line 244 of file RSMControls.cpp.

void rsm::RSMControlPanel::stopOperation ( )
protectedslot

Definition at line 223 of file RSMControls.cpp.

void rsm::RSMControlPanel::updateOperationModeGUI ( )
private

Definition at line 370 of file RSMControls.cpp.

Member Data Documentation

ros::ServiceClient rsm::RSMControlPanel::_add_waypoint_client
private

Definition at line 66 of file RSMControls.h.

bool rsm::RSMControlPanel::_emergency_stop_active
private

Is emergency stop currently activated

Definition at line 98 of file RSMControls.h.

bool rsm::RSMControlPanel::_exploration_mode
private

Mode of exploration (0=complete goal, 1=interrupt goal when frontier vanished)

Definition at line 110 of file RSMControls.h.

ros::Subscriber rsm::RSMControlPanel::_exploration_mode_subscriber
private

Definition at line 77 of file RSMControls.h.

bool rsm::RSMControlPanel::_exploration_running
private

Is the exploration currently running.

Definition at line 86 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_get_robot_pose_client
private

Definition at line 69 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_get_waypoint_routines_client
private

Definition at line 67 of file RSMControls.h.

Ui::rsm_controls* rsm::RSMControlPanel::_gui
private

Definition at line 58 of file RSMControls.h.

ros::NodeHandle rsm::RSMControlPanel::_nh
private

Definition at line 60 of file RSMControls.h.

int rsm::RSMControlPanel::_operation_mode
private

Currently active mode of operation (0=stopped, 1=autonomous, 2=teleoperation)

Definition at line 102 of file RSMControls.h.

bool rsm::RSMControlPanel::_operation_mode_button_pushed
private

Was an operation mode button just pushed.

Definition at line 82 of file RSMControls.h.

ros::Subscriber rsm::RSMControlPanel::_operation_mode_subcriber
private

Definition at line 76 of file RSMControls.h.

bool rsm::RSMControlPanel::_reverse_mode
private

Is currently driving in reverse mode

Definition at line 94 of file RSMControls.h.

ros::Subscriber rsm::RSMControlPanel::_reverse_mode_subscriber
private

Definition at line 75 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_set_exploration_mode_client
private

Definition at line 71 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_set_operation_mode_client
private

Definition at line 70 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_set_reverse_mode_client
private

Definition at line 68 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_set_waypoint_following_mode_client
private

Definition at line 65 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_start_stop_exploration_client
private

Definition at line 62 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_start_stop_waypoint_following_client
private

Definition at line 63 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_state_info_client
private

Definition at line 72 of file RSMControls.h.

ros::Subscriber rsm::RSMControlPanel::_state_info_subscriber
private

Definition at line 74 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_stop_2d_nav_goal_client
private

Definition at line 73 of file RSMControls.h.

bool rsm::RSMControlPanel::_waypoint_following_running
private

Is waypoint following currently running.

Definition at line 90 of file RSMControls.h.

ros::ServiceClient rsm::RSMControlPanel::_waypoint_reset_client
private

Definition at line 64 of file RSMControls.h.

std::vector<std::string> rsm::RSMControlPanel::_waypoint_routines
private

List of all available waypoint routines

Definition at line 106 of file RSMControls.h.

QWidget* rsm::RSMControlPanel::_widget_main
private

Definition at line 57 of file RSMControls.h.


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


rsm_rqt_plugins
Author(s): Marco Steinbrink
autogenerated on Tue Mar 16 2021 02:44:37