3 from switchbot_ros.msg
import SwitchBotCommandAction
4 from switchbot_ros.msg
import SwitchBotCommandGoal
5 from switchbot_ros.msg
import DeviceArray
11 actionname='switchbot_ros/switch',
12 topicname='switchbot_ros/devices'):
18 SwitchBotCommandAction
23 return rospy.wait_for_message(
37 goal = SwitchBotCommandGoal()
38 goal.device_name = device_name
39 goal.command = command
40 goal.parameter = parameter
41 goal.command_type = command_type
def control_device(self, device_name, command, parameter='', command_type='', wait=False)
def __init__(self, actionname='switchbot_ros/switch', topicname='switchbot_ros/devices')
def get_devices(self, timeout=None)