27 inline JointSensor(
const std::string & jointName) { joint_ = jointName; }
38 inline const
std::
string & joint() const noexcept {
return joint_; }
44 inline void motorTemperature(
double motor_temperature) noexcept { motor_temperature_ = motor_temperature; }
50 inline void driverTemperature(
double driver_temperature) noexcept { driver_temperature_ = driver_temperature; }
53 inline double motorCurrent() const noexcept {
return motor_current_; }
56 inline void motorCurrent(
double motor_current) noexcept { motor_current_ = motor_current; }
59 inline bool motorStatus() const noexcept {
return motor_status_; }
62 inline void motorStatus(
bool motor_status) noexcept { motor_status_ = motor_status; }
70 double motor_temperature_ = std::numeric_limits<double>::quiet_NaN();
72 double driver_temperature_ = std::numeric_limits<double>::quiet_NaN();
74 double motor_current_ = std::numeric_limits<double>::quiet_NaN();
76 bool motor_status_ =
true;
#define MC_RBDYN_DLLAPI
Definition: api.h:50
Definition: generic_gripper.h:15
bool operator==(const mc_rbdyn::BodySensor &lhs, const mc_rbdyn::BodySensor &rhs)
Definition: BodySensor.h:147
Definition: JointSensor.h:18
void motorCurrent(double motor_current) noexcept
Definition: JointSensor.h:56
JointSensor & operator=(const JointSensor &)=default
void driverTemperature(double driver_temperature) noexcept
Definition: JointSensor.h:50
const std::string & joint() const noexcept
Definition: JointSensor.h:38
~JointSensor() noexcept=default
void motorStatus(bool motor_status) noexcept
Definition: JointSensor.h:62
JointSensor(const JointSensor &)=default
double motorCurrent() const noexcept
Definition: JointSensor.h:53
JointSensor & operator=(JointSensor &&)=default
JointSensor(const std::string &jointName)
Definition: JointSensor.h:27
std::string joint_
Definition: JointSensor.h:66
bool motorStatus() const noexcept
Definition: JointSensor.h:59
double driverTemperature() const noexcept
Definition: JointSensor.h:47
JointSensor(JointSensor &&)=default
double motorTemperature() const noexcept
Definition: JointSensor.h:41
JointSensor()
Definition: JointSensor.h:20
void motorTemperature(double motor_temperature) noexcept
Definition: JointSensor.h:44