6#ifndef ITORQUECONTROLTEST_H
7#define ITORQUECONTROLTEST_H
14#include <catch2/catch_amalgamated.hpp>
34 for (
size_t i = 0; i <
ax; i++)
46 auto vals = std::vector<double>(
ax);
48 auto vals1 = std::vector<double>(
ax);
49 auto vals2 = std::vector<double>(
ax);
50 auto joints = std::vector<int>(
ax);
51 std::iota(joints.begin(), joints.end(), 0);
63 b=
itrq->setMotorTorqueParams(0, params);
67 b=
itrq->getMotorTorqueParams(0, &res);
79 b =
itrq->getRefTorque(0, &val);
85 b =
itrq->getTorque(0,&val);
94 b =
itrq->getTorques(vals.data());
97 b =
itrq->setRefTorque(0,val);
121 for (
size_t i = 0; i <
ax; i++)
127 auto vals = std::vector<double>(
ax);
129 auto vals1 = std::vector<double>(
ax);
130 auto vals2 = std::vector<double>(
ax);
131 auto joints = std::vector<int>(
ax);
132 std::iota(joints.begin(), joints.end(), 0);
134 b =
itrq->setMotorTorqueParams(0, param);
137 b =
itrq->getMotorTorqueParams(0, ¶m);
140 b =
itrq->getRefTorque(0, &val);
146 b =
itrq->getTorque(0,&val);
155 b =
itrq->getTorques(vals.data());
158 b =
itrq->setRefTorque(0,val);
Interface for setting control mode in control board.
virtual yarp::dev::ReturnValue getControlMode(int j, yarp::dev::ControlModeEnum &mode)=0
Get the current control mode.
virtual yarp::dev::ReturnValue setControlMode(int j, yarp::dev::SelectableControlModeEnum mode)=0
Set the current control mode.
Interface for control boards implementing torque control.
A mini-server for performing network communication in the background.
void exec_iTorqueControl_test_unimplemented_interface(ITorqueControl *itrq, IControlMode *icmd)
void exec_iTorqueControl_test_1(ITorqueControl *itrq, IControlMode *icmd)
void wait_safe(const double seconds)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.