Renamed Elasticity to Cable and libcable to libelasticity for consistency.
PiperOrigin-RevId: 485642970 Change-Id: I279df4233963a6e514459e55a9c2d36d975da92c
This commit is contained in:
committed by
Copybara-Service
parent
c83be2bc05
commit
9833f912c1
@@ -25,14 +25,14 @@
|
||||
|
||||
namespace mujoco::plugin::elasticity {
|
||||
|
||||
class Elasticity {
|
||||
class Cable {
|
||||
public:
|
||||
// Creates a new Elasticity instance (allocated with `new`) or
|
||||
// Creates a new Cable instance (allocated with `new`) or
|
||||
// returns null on failure.
|
||||
static std::optional<Elasticity> Create(const mjModel* m, mjData* d,
|
||||
static std::optional<Cable> Create(const mjModel* m, mjData* d,
|
||||
int instance);
|
||||
Elasticity(Elasticity&&) = default;
|
||||
~Elasticity() = default;
|
||||
Cable(Cable&&) = default;
|
||||
~Cable() = default;
|
||||
|
||||
void Compute(const mjModel* m, mjData* d, int instance);
|
||||
|
||||
@@ -44,7 +44,7 @@ class Elasticity {
|
||||
std::vector<mjtNum> omega0; // reference curvature (n x 3)
|
||||
|
||||
private:
|
||||
Elasticity(const mjModel* m, mjData* d, int instance);
|
||||
Cable(const mjModel* m, mjData* d, int instance);
|
||||
};
|
||||
|
||||
} // namespace mujoco::plugin::elasticity
|
||||
|
||||
Reference in New Issue
Block a user