iCub-main
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Attributes | Friends | List of all members
fakeMotorDeviceClient Class Reference

This class implements the client part of the fake motor device driver. More...

#include <fakeMotorDeviceComponents.h>

+ Inheritance diagram for fakeMotorDeviceClient:

Classes

class  StatePort
 

Public Member Functions

 fakeMotorDeviceClient ()
 
bool open (yarp::os::Searchable &config)
 
bool close ()
 
bool getLimits (int axis, double *min, double *max)
 
bool setLimits (int, double, double)
 
bool setVelLimits (int, double, double)
 
bool getVelLimits (int, double *, double *)
 
bool getAxes (int *ax)
 
bool getEncoders (double *encs)
 
bool getEncoder (int, double *)
 
bool resetEncoder (int)
 
bool resetEncoders ()
 
bool setEncoder (int, double)
 
bool setEncoders (const double *)
 
bool getEncoderSpeed (int, double *)
 
bool getEncoderSpeeds (double *)
 
bool getEncoderAcceleration (int, double *)
 
bool getEncoderAccelerations (double *)
 
bool velocityMove (int j, double sp)
 
bool setRefAcceleration (int j, double acc)
 
bool stop (int j)
 
bool velocityMove (const int, const int *, const double *)
 
bool velocityMove (const double *)
 
bool setRefAccelerations (const int, const int *, const double *)
 
bool setRefAccelerations (const double *)
 
bool getRefAccelerations (const int, const int *, double *)
 
bool getRefAcceleration (int, double *)
 
bool getRefAccelerations (double *)
 
bool stop (const int, const int *)
 
bool stop ()
 

Protected Attributes

StatePort statePort
 
yarp::os::BufferedPort< yarp::os::Bottle > cmdPort
 
yarp::os::RpcClient rpcPort
 
std::mutex mtx
 
yarp::sig::Vector encs
 
bool configured
 

Friends

class StatePort
 

Detailed Description

This class implements the client part of the fake motor device driver.

Only the used interface methods are actually implemented.

Definition at line 122 of file fakeMotorDeviceComponents.h.

Constructor & Destructor Documentation

◆ fakeMotorDeviceClient()

fakeMotorDeviceClient::fakeMotorDeviceClient ( )

Definition at line 29 of file fakeMotorDeviceClient.cpp.

Member Function Documentation

◆ close()

bool fakeMotorDeviceClient::close ( )

Definition at line 71 of file fakeMotorDeviceClient.cpp.

◆ getAxes()

bool fakeMotorDeviceClient::getAxes ( int *  ax)

Definition at line 111 of file fakeMotorDeviceClient.cpp.

◆ getEncoder()

bool fakeMotorDeviceClient::getEncoder ( int  ,
double *   
)
inline

Definition at line 183 of file fakeMotorDeviceComponents.h.

◆ getEncoderAcceleration()

bool fakeMotorDeviceClient::getEncoderAcceleration ( int  ,
double *   
)
inline

Definition at line 190 of file fakeMotorDeviceComponents.h.

◆ getEncoderAccelerations()

bool fakeMotorDeviceClient::getEncoderAccelerations ( double *  )
inline

Definition at line 191 of file fakeMotorDeviceComponents.h.

◆ getEncoders()

bool fakeMotorDeviceClient::getEncoders ( double *  encs)

Definition at line 129 of file fakeMotorDeviceClient.cpp.

◆ getEncoderSpeed()

bool fakeMotorDeviceClient::getEncoderSpeed ( int  ,
double *   
)
inline

Definition at line 188 of file fakeMotorDeviceComponents.h.

◆ getEncoderSpeeds()

bool fakeMotorDeviceClient::getEncoderSpeeds ( double *  )
inline

Definition at line 189 of file fakeMotorDeviceComponents.h.

◆ getLimits()

bool fakeMotorDeviceClient::getLimits ( int  axis,
double *  min,
double *  max 
)

Definition at line 90 of file fakeMotorDeviceClient.cpp.

◆ getRefAcceleration()

bool fakeMotorDeviceClient::getRefAcceleration ( int  ,
double *   
)
inline

Definition at line 209 of file fakeMotorDeviceComponents.h.

◆ getRefAccelerations() [1/2]

bool fakeMotorDeviceClient::getRefAccelerations ( const int  ,
const int *  ,
double *   
)
inline

Definition at line 208 of file fakeMotorDeviceComponents.h.

◆ getRefAccelerations() [2/2]

bool fakeMotorDeviceClient::getRefAccelerations ( double *  )
inline

Definition at line 210 of file fakeMotorDeviceComponents.h.

◆ getVelLimits()

bool fakeMotorDeviceClient::getVelLimits ( int  ,
double *  ,
double *   
)
inline

Definition at line 171 of file fakeMotorDeviceComponents.h.

◆ open()

bool fakeMotorDeviceClient::open ( yarp::os::Searchable &  config)

Definition at line 36 of file fakeMotorDeviceClient.cpp.

◆ resetEncoder()

bool fakeMotorDeviceClient::resetEncoder ( int  )
inline

Definition at line 184 of file fakeMotorDeviceComponents.h.

◆ resetEncoders()

bool fakeMotorDeviceClient::resetEncoders ( )
inline

Definition at line 185 of file fakeMotorDeviceComponents.h.

◆ setEncoder()

bool fakeMotorDeviceClient::setEncoder ( int  ,
double   
)
inline

Definition at line 186 of file fakeMotorDeviceComponents.h.

◆ setEncoders()

bool fakeMotorDeviceClient::setEncoders ( const double *  )
inline

Definition at line 187 of file fakeMotorDeviceComponents.h.

◆ setLimits()

bool fakeMotorDeviceClient::setLimits ( int  ,
double  ,
double   
)
inline

Definition at line 169 of file fakeMotorDeviceComponents.h.

◆ setRefAcceleration()

bool fakeMotorDeviceClient::setRefAcceleration ( int  j,
double  acc 
)

Definition at line 159 of file fakeMotorDeviceClient.cpp.

◆ setRefAccelerations() [1/2]

bool fakeMotorDeviceClient::setRefAccelerations ( const double *  )
inline

Definition at line 207 of file fakeMotorDeviceComponents.h.

◆ setRefAccelerations() [2/2]

bool fakeMotorDeviceClient::setRefAccelerations ( const int  ,
const int *  ,
const double *   
)
inline

Definition at line 206 of file fakeMotorDeviceComponents.h.

◆ setVelLimits()

bool fakeMotorDeviceClient::setVelLimits ( int  ,
double  ,
double   
)
inline

Definition at line 170 of file fakeMotorDeviceComponents.h.

◆ stop() [1/3]

bool fakeMotorDeviceClient::stop ( )
inline

Definition at line 212 of file fakeMotorDeviceComponents.h.

◆ stop() [2/3]

bool fakeMotorDeviceClient::stop ( const int  ,
const int *   
)
inline

Definition at line 211 of file fakeMotorDeviceComponents.h.

◆ stop() [3/3]

bool fakeMotorDeviceClient::stop ( int  j)

Definition at line 176 of file fakeMotorDeviceClient.cpp.

◆ velocityMove() [1/3]

bool fakeMotorDeviceClient::velocityMove ( const double *  )
inline

Definition at line 205 of file fakeMotorDeviceComponents.h.

◆ velocityMove() [2/3]

bool fakeMotorDeviceClient::velocityMove ( const int  ,
const int *  ,
const double *   
)
inline

Definition at line 204 of file fakeMotorDeviceComponents.h.

◆ velocityMove() [3/3]

bool fakeMotorDeviceClient::velocityMove ( int  j,
double  sp 
)

Definition at line 142 of file fakeMotorDeviceClient.cpp.

Friends And Related Symbol Documentation

◆ StatePort

friend class StatePort
friend

Definition at line 153 of file fakeMotorDeviceComponents.h.

Member Data Documentation

◆ cmdPort

yarp::os::BufferedPort<yarp::os::Bottle> fakeMotorDeviceClient::cmdPort
protected

Definition at line 145 of file fakeMotorDeviceComponents.h.

◆ configured

bool fakeMotorDeviceClient::configured
protected

Definition at line 151 of file fakeMotorDeviceComponents.h.

◆ encs

yarp::sig::Vector fakeMotorDeviceClient::encs
protected

Definition at line 150 of file fakeMotorDeviceComponents.h.

◆ mtx

std::mutex fakeMotorDeviceClient::mtx
protected

Definition at line 148 of file fakeMotorDeviceComponents.h.

◆ rpcPort

yarp::os::RpcClient fakeMotorDeviceClient::rpcPort
protected

Definition at line 146 of file fakeMotorDeviceComponents.h.

◆ statePort

StatePort fakeMotorDeviceClient::statePort
protected

Definition at line 144 of file fakeMotorDeviceComponents.h.


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