MCPcopy Create free account
hub / github.com/TeleHuman/TextOp / ElasticBand

Class ElasticBand

TextOpDeploy/src/unitree_mujoco/simulate/src/mujoco/simulate.h:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected