Mimic.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015-2019 CNRS-UM LIRMM, CNRS-AIST JRL
3  */
4 
5 #pragma once
6 
7 #include <mc_rbdyn/api.h>
8 
9 #include <string>
10 
11 namespace mc_rbdyn
12 {
13 
16 {
17 public:
19  std::string name;
21  std::string joint;
23  double multiplier;
25  double offset;
26 };
27 
28 inline bool operator==(const Mimic & lhs, const Mimic & rhs)
29 {
30  return lhs.name == rhs.name && lhs.joint == rhs.joint && lhs.multiplier == rhs.multiplier && lhs.offset == rhs.offset;
31 }
32 
33 } // namespace mc_rbdyn
mc_rbdyn::Mimic::offset
double offset
Definition: Mimic.h:25
api.h
mc_rbdyn::Mimic
Stores mimic joint information.
Definition: Mimic.h:15
MC_RBDYN_DLLAPI
#define MC_RBDYN_DLLAPI
Definition: api.h:50
mc_rbdyn::operator==
bool operator==(const mc_rbdyn::BodySensor &lhs, const mc_rbdyn::BodySensor &rhs)
Definition: BodySensor.h:147
mc_rbdyn::Mimic::name
std::string name
Definition: Mimic.h:19
mc_rbdyn::Mimic::joint
std::string joint
Definition: Mimic.h:21
mc_rbdyn::Mimic::multiplier
double multiplier
Definition: Mimic.h:23
mc_rbdyn
Definition: generic_gripper.h:14