RethinkRobotics / intera_sdk

Software Development Kit and Interface for Rethink Robotics robots
http://sdk.rethinkrobotics.com/intera/
Apache License 2.0
40 stars 63 forks source link

Lights Interface using the IO Framework #52

Closed IanTheEngineer closed 8 years ago

IanTheEngineer commented 8 years ago

It would be nice to turn off and on each of the lights onboard the robot at will with the SDK interface. Preferably, this would be an intera_interface class.

IanTheEngineer commented 8 years ago

To be repurposed:

intera_interface/src/intera_interface/digital_io.py

and

intera_examples/scripts/digital_io_blink.py
michaelschleiss commented 6 years ago

How can I use the flashlight on the hand camera? It is possible to use it in Intra Studio but I cannot find this function in the SDK.

IanTheEngineer commented 6 years ago

You can strobe the light on the Cognex through the camera interface:

import rospy
rospy.init_node("cognex_flash")

import intera_interface

c = intera_interface.Cameras()
c.cameras_io['right_hand_camera']['interface'].set_signal_value('set_strobe', True)   # sets the camera to strobe
c.cameras_io['right_hand_camera']['interface'].set_signal_value('set_strobe', False) # turns off the strobe