Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes
MapDemonCtrlMaestro Class Reference

#include <demonstrator_control_maestro.h>

Inheritance diagram for MapDemonCtrlMaestro:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool close ()
 Close.
virtual bool init (DemonstratorParams *params)
 Initializing.
virtual bool isMoving ()
 MapDemonCtrlMaestro (DemonstratorParams *params)
 Constructor.
virtual bool movePos (const std::vector< double > &target_positions)
virtual bool recover ()
 Recovery after emergency stop or power supply failure.
virtual bool runCalibration ()
virtual void setAcceleration ()
virtual void setVelocity ()
 Sets the maximum angular velocity (rad/s) for the Joints, use with care!
virtual bool stop ()
virtual bool updatePositions ()
virtual ~MapDemonCtrlMaestro ()
 Destructor.

Public Attributes

bool is_moving_

Private Types

enum  {
  GET_POSITION = 0x90, SET_TARGET = 0x84, SET_VEL = 0x87, SET_ACCEL = 0x89,
  IS_MOVING = 0x93, GO_HOME = 0xA2
}

Private Member Functions

double int2rad (const int v, const int dof=0)
int rad2int (const double v, const int dof=0)
void writeCmd (const unsigned char cmd, const unsigned char channel=255, const unsigned char *data=NULL, const int size=0)

Private Attributes

int fd_

Detailed Description

Definition at line 13 of file demonstrator_control_maestro.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
GET_POSITION 
SET_TARGET 
SET_VEL 
SET_ACCEL 
IS_MOVING 
GO_HOME 

Definition at line 44 of file demonstrator_control_maestro.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 18 of file demonstrator_control_maestro.cpp.

Destructor.

Definition at line 24 of file demonstrator_control_maestro.cpp.


Member Function Documentation

bool MapDemonCtrlMaestro::close ( ) [virtual]

Close.

Reimplemented from MapDemonCtrl.

Definition at line 257 of file demonstrator_control_maestro.cpp.

bool MapDemonCtrlMaestro::init ( DemonstratorParams params) [virtual]

Initializing.

get serial port configurable parameters

now open serial port

open(2) returns <0 if the port could NOT be opened

Reimplemented from MapDemonCtrl.

Definition at line 31 of file demonstrator_control_maestro.cpp.

double MapDemonCtrlMaestro::int2rad ( const int  v,
const int  dof = 0 
) [inline, private]

Definition at line 69 of file demonstrator_control_maestro.h.

bool MapDemonCtrlMaestro::isMoving ( ) [virtual]

Definition at line 223 of file demonstrator_control_maestro.cpp.

bool MapDemonCtrlMaestro::movePos ( const std::vector< double > &  target_positions) [virtual]

Reimplemented from MapDemonCtrl.

Definition at line 140 of file demonstrator_control_maestro.cpp.

int MapDemonCtrlMaestro::rad2int ( const double  v,
const int  dof = 0 
) [inline, private]

Definition at line 60 of file demonstrator_control_maestro.h.

bool MapDemonCtrlMaestro::recover ( ) [virtual]

Recovery after emergency stop or power supply failure.

Reimplemented from MapDemonCtrl.

Definition at line 268 of file demonstrator_control_maestro.cpp.

Reimplemented from MapDemonCtrl.

Definition at line 129 of file demonstrator_control_maestro.cpp.

Definition at line 293 of file demonstrator_control_maestro.cpp.

Sets the maximum angular velocity (rad/s) for the Joints, use with care!

A Value of 0.5 is already pretty fast, you probably don't want anything more than one...

Reimplemented from MapDemonCtrl.

Definition at line 282 of file demonstrator_control_maestro.cpp.

bool MapDemonCtrlMaestro::stop ( ) [virtual]

Reimplemented from MapDemonCtrl.

Definition at line 246 of file demonstrator_control_maestro.cpp.

Reimplemented from MapDemonCtrl.

Definition at line 179 of file demonstrator_control_maestro.cpp.

void MapDemonCtrlMaestro::writeCmd ( const unsigned char  cmd,
const unsigned char  channel = 255,
const unsigned char *  data = NULL,
const int  size = 0 
) [private]

Definition at line 304 of file demonstrator_control_maestro.cpp.


Member Data Documentation

int MapDemonCtrlMaestro::fd_ [private]

Definition at line 54 of file demonstrator_control_maestro.h.

Definition at line 40 of file demonstrator_control_maestro.h.


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


cob_3d_mapping_demonstrator
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:03:46