Public Member Functions | Public Attributes | Private Member Functions | Static Private Attributes
corobot_msgs.msg._MotorCommand.MotorCommand Class Reference

List of all members.

Public Member Functions

def __init__
def deserialize
def deserialize_numpy
def serialize
def serialize_numpy

Public Attributes

 acceleration
 leftSpeed
 rightSpeed
 secondsDuration

Private Member Functions

def _get_types

Static Private Attributes

list __slots__ = ['leftSpeed','rightSpeed','secondsDuration','acceleration']
string _full_text
 _has_header = False
string _md5sum = "451c087bf7cd0b5ee063409877e152e9"
list _slot_types = ['int16','int16','uint16','uint16']
string _type = "corobot_msgs/MotorCommand"

Detailed Description

Definition at line 8 of file _MotorCommand.py.


Constructor & Destructor Documentation

def corobot_msgs.msg._MotorCommand.MotorCommand.__init__ (   self,
  args,
  kwds 
)
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes.  You cannot mix in-order arguments and keyword arguments.

The available fields are:
   leftSpeed,rightSpeed,secondsDuration,acceleration

:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.

Definition at line 45 of file _MotorCommand.py.


Member Function Documentation

internal API method

Definition at line 76 of file _MotorCommand.py.

unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``

Definition at line 93 of file _MotorCommand.py.

unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module

Definition at line 121 of file _MotorCommand.py.

serialize message into buffer
:param buff: buffer, ``StringIO``

Definition at line 82 of file _MotorCommand.py.

serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module

Definition at line 109 of file _MotorCommand.py.


Member Data Documentation

Definition at line 42 of file _MotorCommand.py.

Initial value:
"""# Bill Mania <bmania@coroware.com>
#
# Service used with the CoroWare CoroBot to move the robot
# base. Originally developed for the Phidget HC Motor Controller
#
# leftSpeed and rightSpeed are signed integers which specify the
# combined speed and direction to rotate the wheels on each side
# of the robot. 0 indicates full stop. positive integers indicate
# a forward rotation and larger integers indicate a higher
# rotational speed.
#
int16 leftSpeed
int16 rightSpeed
#
# when at least one of leftSpeed or rightSpeed is non-zero,
# secondsDuration indicates for how many seconds to rotate those
# wheels at the requested speed. when secondsDuration is zero,
# the wheels will be rotated at the requested speed, in the
# requested direction until another request is received.
#
uint16 secondsDuration
#
# the number of seconds over which to effect the change in
# rotational speed from the current speed to the speed requested.
# a value of zero indicates "as fast as possible". the greater
# this value, the greater amount of time taken to change the
# speed.
uint16 acceleration

"""

Definition at line 12 of file _MotorCommand.py.

Definition at line 11 of file _MotorCommand.py.

string corobot_msgs::msg::_MotorCommand.MotorCommand::_md5sum = "451c087bf7cd0b5ee063409877e152e9" [static, private]

Definition at line 9 of file _MotorCommand.py.

list corobot_msgs::msg::_MotorCommand.MotorCommand::_slot_types = ['int16','int16','uint16','uint16'] [static, private]

Definition at line 43 of file _MotorCommand.py.

string corobot_msgs::msg::_MotorCommand.MotorCommand::_type = "corobot_msgs/MotorCommand" [static, private]

Definition at line 10 of file _MotorCommand.py.

Definition at line 57 of file _MotorCommand.py.

Definition at line 57 of file _MotorCommand.py.

Definition at line 57 of file _MotorCommand.py.

Definition at line 57 of file _MotorCommand.py.


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


corobot_msgs
Author(s):
autogenerated on Wed Aug 26 2015 11:09:32