Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
ur_driver.driver.URConnection Class Reference
Inheritance diagram for ur_driver.driver.URConnection:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, hostname, port, program)
 
def connect (self)
 
def disconnect (self)
 
def ready_to_program (self)
 
def send_program (self)
 
def send_reset_program (self)
 
def throttle_warn_unknown (self, period, msg)
 

Public Attributes

 hostname
 
 last_state
 
 port
 
 program
 
 robot_state
 IO-Support is EXPERIMENTAL. More...
 

Static Public Attributes

int CONNECTED = 1
 
int DISCONNECTED = 0
 
int EXECUTING = 3
 
int READY_TO_PROGRAM = 2
 
float TIMEOUT = 1.0
 

Private Member Functions

def __on_packet (self, buf)
 
def __run (self)
 
def __trigger_disconnected (self)
 
def __trigger_halted (self)
 
def __trigger_ready_to_program (self)
 

Private Attributes

 __buf
 
 __keep_running
 
 __sock
 
 __thread
 
 _last_hit
 

Detailed Description

Definition at line 122 of file driver.py.

Constructor & Destructor Documentation

def ur_driver.driver.URConnection.__init__ (   self,
  hostname,
  port,
  program 
)

Definition at line 130 of file driver.py.

Member Function Documentation

def ur_driver.driver.URConnection.__on_packet (   self,
  buf 
)
private

Definition at line 186 of file driver.py.

def ur_driver.driver.URConnection.__run (   self)
private

Definition at line 260 of file driver.py.

def ur_driver.driver.URConnection.__trigger_disconnected (   self)
private

Definition at line 178 of file driver.py.

def ur_driver.driver.URConnection.__trigger_halted (   self)
private

Definition at line 183 of file driver.py.

def ur_driver.driver.URConnection.__trigger_ready_to_program (   self)
private

Definition at line 181 of file driver.py.

def ur_driver.driver.URConnection.connect (   self)

Definition at line 139 of file driver.py.

def ur_driver.driver.URConnection.disconnect (   self)

Definition at line 164 of file driver.py.

def ur_driver.driver.URConnection.ready_to_program (   self)

Definition at line 175 of file driver.py.

def ur_driver.driver.URConnection.send_program (   self)

Definition at line 150 of file driver.py.

def ur_driver.driver.URConnection.send_reset_program (   self)

Definition at line 160 of file driver.py.

def ur_driver.driver.URConnection.throttle_warn_unknown (   self,
  period,
  msg 
)

Definition at line 253 of file driver.py.

Member Data Documentation

ur_driver.driver.URConnection.__buf
private

Definition at line 142 of file driver.py.

ur_driver.driver.URConnection.__keep_running
private

Definition at line 145 of file driver.py.

ur_driver.driver.URConnection.__sock
private

Definition at line 132 of file driver.py.

ur_driver.driver.URConnection.__thread
private

Definition at line 131 of file driver.py.

ur_driver.driver.URConnection._last_hit
private

Definition at line 257 of file driver.py.

int ur_driver.driver.URConnection.CONNECTED = 1
static

Definition at line 126 of file driver.py.

int ur_driver.driver.URConnection.DISCONNECTED = 0
static

Definition at line 125 of file driver.py.

int ur_driver.driver.URConnection.EXECUTING = 3
static

Definition at line 128 of file driver.py.

ur_driver.driver.URConnection.hostname

Definition at line 134 of file driver.py.

ur_driver.driver.URConnection.last_state

Definition at line 137 of file driver.py.

ur_driver.driver.URConnection.port

Definition at line 135 of file driver.py.

ur_driver.driver.URConnection.program

Definition at line 136 of file driver.py.

int ur_driver.driver.URConnection.READY_TO_PROGRAM = 2
static

Definition at line 127 of file driver.py.

ur_driver.driver.URConnection.robot_state

IO-Support is EXPERIMENTAL.

Notes:

  • Where are the flags coming from? Do we need flags? No, as 'prog' does not use them and other scripts are not running!
  • analog_input2 and analog_input3 are within ToolData
  • What to do with the different analog_input/output_range/domain?
  • Shall we have appropriate ur_msgs definitions in order to reflect MasterboardData, ToolData,...?

Definition at line 133 of file driver.py.

float ur_driver.driver.URConnection.TIMEOUT = 1.0
static

Definition at line 123 of file driver.py.


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


ur_driver
Author(s): Stuart Glaser, Shaun Edwards, Felix Messmer
autogenerated on Sun Nov 24 2019 03:36:29