Public Member Functions | Protected Attributes | List of all members
ros_control_boilerplate::JoystickManualControl Class Referenceabstract

#include <joystick_manual_control.h>

Public Member Functions

virtual void joyCallback (const sensor_msgs::Joy::ConstPtr &msg)=0
 Response to joystick control Button mapping is customized by each class that inherits from this. More...
 
 JoystickManualControl (const std::string &parent_name, const std::string &service_namespace)
 Constructor. More...
 
bool loadManualControllers ()
 Load a secondary manual controller. More...
 
void switchToManual ()
 
void switchToTrajectory ()
 

Protected Attributes

ros::ServiceClient load_controlers_client_
 
std::string load_service_
 
std::vector< std::string > manual_controllers_
 
ros::NodeHandle nh_
 
const std::string parent_name_
 
ros::Subscriber remote_joy_
 
ros::ServiceClient switch_controlers_client_
 
std::string switch_service_
 
std::vector< std::string > trajectory_controllers_
 
bool using_trajectory_controller_
 

Detailed Description

Definition at line 52 of file joystick_manual_control.h.

Constructor & Destructor Documentation

◆ JoystickManualControl()

ros_control_boilerplate::JoystickManualControl::JoystickManualControl ( const std::string &  parent_name,
const std::string &  service_namespace 
)
inline

Constructor.

Parameters
parent_name- name of parent class, only used for namespacing logging debug output
service_namespace- prefix to controller manager service, or blank. do not add trailing "/"

Definition at line 61 of file joystick_manual_control.h.

Member Function Documentation

◆ joyCallback()

virtual void ros_control_boilerplate::JoystickManualControl::joyCallback ( const sensor_msgs::Joy::ConstPtr &  msg)
pure virtual

Response to joystick control Button mapping is customized by each class that inherits from this.

◆ loadManualControllers()

bool ros_control_boilerplate::JoystickManualControl::loadManualControllers ( )
inline

Load a secondary manual controller.

Definition at line 87 of file joystick_manual_control.h.

◆ switchToManual()

void ros_control_boilerplate::JoystickManualControl::switchToManual ( )
inline

Definition at line 116 of file joystick_manual_control.h.

◆ switchToTrajectory()

void ros_control_boilerplate::JoystickManualControl::switchToTrajectory ( )
inline

Definition at line 140 of file joystick_manual_control.h.

Member Data Documentation

◆ load_controlers_client_

ros::ServiceClient ros_control_boilerplate::JoystickManualControl::load_controlers_client_
protected

Definition at line 178 of file joystick_manual_control.h.

◆ load_service_

std::string ros_control_boilerplate::JoystickManualControl::load_service_
protected

Definition at line 171 of file joystick_manual_control.h.

◆ manual_controllers_

std::vector<std::string> ros_control_boilerplate::JoystickManualControl::manual_controllers_
protected

Definition at line 184 of file joystick_manual_control.h.

◆ nh_

ros::NodeHandle ros_control_boilerplate::JoystickManualControl::nh_
protected

Definition at line 166 of file joystick_manual_control.h.

◆ parent_name_

const std::string ros_control_boilerplate::JoystickManualControl::parent_name_
protected

Definition at line 169 of file joystick_manual_control.h.

◆ remote_joy_

ros::Subscriber ros_control_boilerplate::JoystickManualControl::remote_joy_
protected

Definition at line 174 of file joystick_manual_control.h.

◆ switch_controlers_client_

ros::ServiceClient ros_control_boilerplate::JoystickManualControl::switch_controlers_client_
protected

Definition at line 177 of file joystick_manual_control.h.

◆ switch_service_

std::string ros_control_boilerplate::JoystickManualControl::switch_service_
protected

Definition at line 170 of file joystick_manual_control.h.

◆ trajectory_controllers_

std::vector<std::string> ros_control_boilerplate::JoystickManualControl::trajectory_controllers_
protected

Definition at line 185 of file joystick_manual_control.h.

◆ using_trajectory_controller_

bool ros_control_boilerplate::JoystickManualControl::using_trajectory_controller_
protected

Definition at line 181 of file joystick_manual_control.h.


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


ros_control_boilerplate
Author(s): Dave Coleman
autogenerated on Mon Feb 28 2022 23:27:26