6#ifndef ICONTROLMODETEST_H
7#define ICONTROLMODETEST_H
12#include <catch2/catch_amalgamated.hpp>
17#define COMMAND_DELAY 1.0
36 int ax = 0;
bool bax =
false;
59 int ax=0;
bool bax=
false;
74 int rets[2] = { 0,-0 };
define control board standard interfaces
void test_joint(IControlMode *icmd, IAxisInfo *iinfo, int mode)
void test_single_joint(IControlMode *icmd, IAxisInfo *iinfo, int mode)
void test_multi_joint(IControlMode *icmd, IAxisInfo *iinfo, int mode)
void test_all_joints(IControlMode *icmd, IAxisInfo *iinfo, int mode)
constexpr yarp::conf::vocab32_t VOCAB_CM_MIXED
constexpr yarp::conf::vocab32_t VOCAB_CM_TORQUE
constexpr yarp::conf::vocab32_t VOCAB_CM_PWM
constexpr yarp::conf::vocab32_t VOCAB_CM_IMPEDANCE_VEL
constexpr yarp::conf::vocab32_t VOCAB_CM_IDLE
constexpr yarp::conf::vocab32_t VOCAB_CM_POSITION
constexpr yarp::conf::vocab32_t VOCAB_CM_CURRENT
constexpr yarp::conf::vocab32_t VOCAB_CM_IMPEDANCE_POS
constexpr yarp::conf::vocab32_t VOCAB_CM_POSITION_DIRECT
constexpr yarp::conf::vocab32_t VOCAB_CM_VELOCITY
Interface for getting information about specific axes, if available.
virtual bool getAxisName(int axis, std::string &name)=0
virtual bool getAxes(int *ax)=0
Get the number of controlled axes.
virtual bool getJointType(int axis, yarp::dev::JointTypeEnum &type)
Interface for setting control mode in control board.
virtual bool setControlMode(const int j, const int mode)=0
Set the current control mode.
virtual bool setControlModes(const int n_joint, const int *joints, int *modes)=0
Set the current control mode for a subset of axes.
virtual bool getControlModes(int *modes)=0
Get the current control mode (multiple joints).
virtual bool getControlMode(int j, int *mode)=0
Get the current control mode.
A mini-server for performing network communication in the background.
static void delaySystem(double seconds)
void exec_iControlMode_test_1(IControlMode *icmd, IAxisInfo *iinfo)
For streams capable of holding different kinds of content, check what they actually have.
@ VOCAB_JOINTTYPE_REVOLUTE
An interface to the operating system, including Port based communication.