Classes | Public Member Functions | Public Attributes | List of all members
joy_teleop.JoyTeleop Class Reference

Classes

class  AsyncServiceProxy
 

Public Member Functions

def __init__ (self)
 
def add_command (self, name, command)
 
def get_action_type (self, action_name)
 
def get_message_type (self, type_name)
 
def get_service_type (self, service_name)
 
def joy_callback (self, data)
 
def match_command (self, c, buttons)
 
def register_action (self, name, command)
 
def register_service (self, name, command)
 
def register_topic (self, name, command)
 
def run_action (self, c, joy_state)
 
def run_command (self, command, joy_state)
 
def run_service (self, c, joy_state)
 
def run_topic (self, c, joy_state)
 
def set_member (self, msg, member, value)
 
def update_actions (self, evt=None)
 

Public Attributes

 al_clients
 
 command_list
 
 message_types
 
 offline_actions
 
 offline_services
 
 old_buttons
 
 publishers
 
 service_types
 
 srv_clients
 

Detailed Description

Generic joystick teleoperation node.
Will not start without configuration, has to be stored in 'teleop' parameter.
See config/joy_teleop.yaml for an example.

Definition at line 18 of file joy_teleop.py.

Constructor & Destructor Documentation

◆ __init__()

def joy_teleop.JoyTeleop.__init__ (   self)

Definition at line 24 of file joy_teleop.py.

Member Function Documentation

◆ add_command()

def joy_teleop.JoyTeleop.add_command (   self,
  name,
  command 
)
Add a command to the command list

Definition at line 147 of file joy_teleop.py.

◆ get_action_type()

def joy_teleop.JoyTeleop.get_action_type (   self,
  action_name 
)

Definition at line 261 of file joy_teleop.py.

◆ get_message_type()

def joy_teleop.JoyTeleop.get_message_type (   self,
  type_name 
)

Definition at line 247 of file joy_teleop.py.

◆ get_service_type()

def joy_teleop.JoyTeleop.get_service_type (   self,
  service_name 
)

Definition at line 267 of file joy_teleop.py.

◆ joy_callback()

def joy_teleop.JoyTeleop.joy_callback (   self,
  data 
)

Definition at line 63 of file joy_teleop.py.

◆ match_command()

def joy_teleop.JoyTeleop.match_command (   self,
  c,
  buttons 
)
Find a command matching a joystick configuration

Definition at line 137 of file joy_teleop.py.

◆ register_action()

def joy_teleop.JoyTeleop.register_action (   self,
  name,
  command 
)
Add an action client for a joystick command

Definition at line 81 of file joy_teleop.py.

◆ register_service()

def joy_teleop.JoyTeleop.register_service (   self,
  name,
  command 
)
Add an AsyncServiceProxy for a joystick command 

Definition at line 118 of file joy_teleop.py.

◆ register_topic()

def joy_teleop.JoyTeleop.register_topic (   self,
  name,
  command 
)
Add a topic publisher for a joystick command

Definition at line 72 of file joy_teleop.py.

◆ run_action()

def joy_teleop.JoyTeleop.run_action (   self,
  c,
  joy_state 
)

Definition at line 223 of file joy_teleop.py.

◆ run_command()

def joy_teleop.JoyTeleop.run_command (   self,
  command,
  joy_state 
)
Run a joystick command

Definition at line 162 of file joy_teleop.py.

◆ run_service()

def joy_teleop.JoyTeleop.run_service (   self,
  c,
  joy_state 
)

Definition at line 229 of file joy_teleop.py.

◆ run_topic()

def joy_teleop.JoyTeleop.run_topic (   self,
  c,
  joy_state 
)

Definition at line 189 of file joy_teleop.py.

◆ set_member()

def joy_teleop.JoyTeleop.set_member (   self,
  msg,
  member,
  value 
)

Definition at line 238 of file joy_teleop.py.

◆ update_actions()

def joy_teleop.JoyTeleop.update_actions (   self,
  evt = None 
)

Definition at line 275 of file joy_teleop.py.

Member Data Documentation

◆ al_clients

joy_teleop.JoyTeleop.al_clients

Definition at line 30 of file joy_teleop.py.

◆ command_list

joy_teleop.JoyTeleop.command_list

Definition at line 34 of file joy_teleop.py.

◆ message_types

joy_teleop.JoyTeleop.message_types

Definition at line 33 of file joy_teleop.py.

◆ offline_actions

joy_teleop.JoyTeleop.offline_actions

Definition at line 35 of file joy_teleop.py.

◆ offline_services

joy_teleop.JoyTeleop.offline_services

Definition at line 36 of file joy_teleop.py.

◆ old_buttons

joy_teleop.JoyTeleop.old_buttons

Definition at line 38 of file joy_teleop.py.

◆ publishers

joy_teleop.JoyTeleop.publishers

Definition at line 29 of file joy_teleop.py.

◆ service_types

joy_teleop.JoyTeleop.service_types

Definition at line 32 of file joy_teleop.py.

◆ srv_clients

joy_teleop.JoyTeleop.srv_clients

Definition at line 31 of file joy_teleop.py.


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


joy_teleop
Author(s): Paul Mathieu
autogenerated on Sun May 7 2023 02:17:53