SecurBot  0.1
A cutting edge robotic security platform
All Classes Namespaces Files Functions Variables Pages
Functions | Variables
electronTeleop Namespace Reference

This script subscribe to the electron node dealing the teleop data coming from the UI, convert those datas and publish them on the cmd node of the base. More...

Functions

def teleopListener ()
 Starts the ros node and subscribes to the electron node. More...
 
def teleopCallback (msg)
 Callback of the node subscription, parses the JSON string. More...
 
def runCommand (data)
 Sets the data in the Twist object and publishes them. More...
 

Variables

 vel_msg = Twist()
 
 publisher = rospy.Publisher('/cmd_vel', Twist, queue_size=10)
 

Detailed Description

This script subscribe to the electron node dealing the teleop data coming from the UI, convert those datas and publish them on the cmd node of the base.

Author
Cedric Godin cedri.nosp@m.c.go.nosp@m.din@u.nosp@m.sher.nosp@m.brook.nosp@m.e.ca
Edouard Legare edoua.nosp@m.rd.l.nosp@m.egare.nosp@m.@ush.nosp@m.erbro.nosp@m.oke..nosp@m.ca

Function Documentation

def electronTeleop.runCommand (   data)

Sets the data in the Twist object and publishes them.

Parameters
datateleop data.
def electronTeleop.teleopCallback (   msg)

Callback of the node subscription, parses the JSON string.

Parameters
msgJSON string of the teleop datas.
def electronTeleop.teleopListener ( )

Starts the ros node and subscribes to the electron node.

Variable Documentation

electronTeleop.publisher = rospy.Publisher('/cmd_vel', Twist, queue_size=10)
electronTeleop.vel_msg = Twist()