ANYdrive SDK
The SDK for interfacing ANYdrive.
anydrive Namespace Reference

Namespaces

 calibration
 
 common
 
 communication
 
 configuration
 
 fsm
 
 mode
 
 setup
 

Classes

class  Anydrive
 Class implementing the interface to a single ANYdrive. More...
 
class  AnydriveManager
 Class implementing a manager for multiple ANYdrives. More...
 
class  Command
 ANYdrive command. More...
 
class  DriveInfo
 
class  JointPositionConfigurationManager
 
class  Log
 Simple templated log class, used for calibration. More...
 
class  ReadingT
 Reading of the ANYdrive containing arbitrary command and state information. More...
 
class  State
 State of the ANYdrive. More...
 
class  StateExtended
 Extended state of the ANYdrive, containing additional information to the state. More...
 
class  Statusword
 

Typedefs

using AnydrivePtr = std::shared_ptr< Anydrive >
 
using AnydriveManagerPtr = std::shared_ptr< AnydriveManager >
 
using AnydriveWeakPtr = std::weak_ptr< Anydrive >
 
using Exception = message_logger::log::melo_fatal
 
using Reading = ReadingT< Command, State >
 Reading of the ANYdrive containing the command and the state. More...
 
using ReadingExtended = ReadingT< Command, StateExtended >
 Extended reading of the ANYdrive containing the command and the extended state. More...
 
using ReadingCb = std::function< void(const std::string &, const ReadingExtended &)>
 
using ErrorCb = std::function< void(const std::string &)>
 
using ErrorRecoveredCb = std::function< void(const std::string &)>
 
using FatalCb = std::function< void(const std::string &)>
 
using FatalRecoveredCb = std::function< void(const std::string &)>
 
using DeviceDisconnectedCb = std::function< void(const std::string &)>
 
using DeviceReconnectedCb = std::function< void(const std::string &)>
 
using AnonymousReadingCb = std::function< void(const ReadingExtended &)>
 
using AnonymousErrorCb = std::function< void(void)>
 

Functions

std::ostream & operator<< (std::ostream &out, const Command &command)
 
std::ostream & operator<< (std::ostream &ostream, const DriveInfo &driveInfo)
 
template<typename CommandT , typename StateT >
std::ostream & operator<< (std::ostream &out, const ReadingT< CommandT, StateT > &reading)
 
std::ostream & operator<< (std::ostream &out, const State &state)
 
std::ostream & operator<< (std::ostream &out, const StateExtended &stateExtended)
 
std::ostream & operator<< (std::ostream &os, const Statusword &statusword)
 
void thread_sleep (const double duration)
 

Typedef Documentation

◆ AnonymousErrorCb

using anydrive::AnonymousErrorCb = typedef std::function<void(void)>

◆ AnonymousReadingCb

using anydrive::AnonymousReadingCb = typedef std::function<void(const ReadingExtended&)>

◆ AnydriveManagerPtr

using anydrive::AnydriveManagerPtr = typedef std::shared_ptr<AnydriveManager>

◆ AnydrivePtr

typedef std::shared_ptr< Anydrive > anydrive::AnydrivePtr

◆ AnydriveWeakPtr

using anydrive::AnydriveWeakPtr = typedef std::weak_ptr<Anydrive>

◆ DeviceDisconnectedCb

using anydrive::DeviceDisconnectedCb = typedef std::function<void(const std::string&)>

◆ DeviceReconnectedCb

using anydrive::DeviceReconnectedCb = typedef std::function<void(const std::string&)>

◆ ErrorCb

using anydrive::ErrorCb = typedef std::function<void(const std::string&)>

◆ ErrorRecoveredCb

using anydrive::ErrorRecoveredCb = typedef std::function<void(const std::string&)>

◆ Exception

using anydrive::Exception = typedef message_logger::log::melo_fatal

◆ FatalCb

using anydrive::FatalCb = typedef std::function<void(const std::string&)>

◆ FatalRecoveredCb

using anydrive::FatalRecoveredCb = typedef std::function<void(const std::string&)>

◆ Reading

Reading of the ANYdrive containing the command and the state.

◆ ReadingCb

using anydrive::ReadingCb = typedef std::function<void(const std::string&, const ReadingExtended&)>

◆ ReadingExtended

Extended reading of the ANYdrive containing the command and the extended state.

Function Documentation

◆ operator<<() [1/6]

std::ostream & anydrive::operator<< ( std::ostream &  ostream,
const DriveInfo driveInfo 
)

◆ operator<<() [2/6]

template<typename CommandT , typename StateT >
std::ostream& anydrive::operator<< ( std::ostream &  out,
const ReadingT< CommandT, StateT > &  reading 
)

◆ operator<<() [3/6]

std::ostream & anydrive::operator<< ( std::ostream &  out,
const State state 
)

◆ operator<<() [4/6]

std::ostream & anydrive::operator<< ( std::ostream &  out,
const Command command 
)

◆ operator<<() [5/6]

std::ostream & anydrive::operator<< ( std::ostream &  out,
const StateExtended stateExtended 
)

◆ operator<<() [6/6]

std::ostream & anydrive::operator<< ( std::ostream &  os,
const Statusword statusword 
)

◆ thread_sleep()

void anydrive::thread_sleep ( const double  duration)