Public Member Functions | Public Attributes | List of all members
switchbot_ros.switchbot_ros_client.SwitchBotROSClient Class Reference
Inheritance diagram for switchbot_ros.switchbot_ros_client.SwitchBotROSClient:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, actionname='switchbot_ros/switch', topicname='switchbot_ros/devices')
 
def control_device (self, device_name, command, parameter='', command_type='', wait=False)
 
def get_devices (self, timeout=None)
 

Public Attributes

 action_client
 
 actionname
 
 topicname
 

Detailed Description

Definition at line 8 of file switchbot_ros_client.py.

Constructor & Destructor Documentation

◆ __init__()

def switchbot_ros.switchbot_ros_client.SwitchBotROSClient.__init__ (   self,
  actionname = 'switchbot_ros/switch',
  topicname = 'switchbot_ros/devices' 
)

Definition at line 12 of file switchbot_ros_client.py.

Member Function Documentation

◆ control_device()

def switchbot_ros.switchbot_ros_client.SwitchBotROSClient.control_device (   self,
  device_name,
  command,
  parameter = '',
  command_type = '',
  wait = False 
)

Definition at line 35 of file switchbot_ros_client.py.

◆ get_devices()

def switchbot_ros.switchbot_ros_client.SwitchBotROSClient.get_devices (   self,
  timeout = None 
)

Definition at line 21 of file switchbot_ros_client.py.

Member Data Documentation

◆ action_client

switchbot_ros.switchbot_ros_client.SwitchBotROSClient.action_client

Definition at line 16 of file switchbot_ros_client.py.

◆ actionname

switchbot_ros.switchbot_ros_client.SwitchBotROSClient.actionname

Definition at line 14 of file switchbot_ros_client.py.

◆ topicname

switchbot_ros.switchbot_ros_client.SwitchBotROSClient.topicname

Definition at line 15 of file switchbot_ros_client.py.


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


switchbot_ros
Author(s): Yoshiki Obinata
autogenerated on Sat Jun 24 2023 02:40:43