| 33 | namespace mujoco |
| 34 | { |
| 35 | class ElasticBand |
| 36 | { |
| 37 | public: |
| 38 | ElasticBand(); |
| 39 | ~ElasticBand(); |
| 40 | void Advance(std::vector<double> x, std::vector<double> dx); |
| 41 | |
| 42 | double stiffness_ = 200; |
| 43 | double damping_ = 100; |
| 44 | std::vector<double> point_ = {0, 0, 3}; |
| 45 | double length_ = 0.0; |
| 46 | bool enable_ = true; |
| 47 | std::vector<double> f_ = {0, 0, 0}; |
| 48 | }; |
| 49 | // The viewer itself doesn't require a reentrant mutex, however we use it in |
| 50 | // order to provide a Python sync API that doesn't require separate locking |
| 51 | // (since sync is by far the most common operation), but that also won't |
nothing calls this directly
no outgoing calls
no test coverage detected