Momentum Scripting v1
Loading...
Searching...
No Matches
AngularSecondaryJoint.h
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material without having a written signed agreement with Algoryx Simulation AB.
9
10Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
11from using this software, unless otherwise stated in written agreements with
12Algoryx Simulation AB.
13*/
14
15#ifndef MOMENTUM_ANGULAR_SECONDARY_JOINT_H
16#define MOMENTUM_ANGULAR_SECONDARY_JOINT_H
17
18#include "momentum_export.h"
19#include "momentum_namespace.h"
20
21#include "SecondaryJoint.h"
22
23#ifndef SWIG
25namespace agx
26{
27 class BasicControllerConstraint;
28}
30#endif
31
32namespace MOMENTUM_NAMESPACE
33{
37 class MOMENTUM_EXPORT AngularSecondaryJoint : public SecondaryJoint
38 {
39 public:
40#ifndef SWIG
42
45 AngularSecondaryJoint(agx::BasicControllerConstraint* constraint);
47
48#endif
49
55 std::pair<double, double> getTorqueLimit() const;
56
57#ifndef AGX_MOMENTUM_ANALYSIS_API
68 bool setTorqueLimit(std::pair<double, double> limit);
69
82 bool setTorqueLimit(double lower, double upper);
83#endif
84
89 double getCurrentTorque() const;
90
92 std::string __str__() const;
93
94 protected:
95
98
99 };
100} // namespace momentum
101
102
103#endif
An angular secondary joint operates on the free rotational DOF of angular joints such as HingeJoint a...
Definition: AngularSecondaryJoint.h:38
std::pair< double, double > getTorqueLimit() const
Get the lower and upper torque of the secondary constraint.
bool setTorqueLimit(double lower, double upper)
Set the minimum and maximum torque of the secondary constraint.
double getCurrentTorque() const
Get the torque that the secondary constraint is applying to the object at the moment.
bool setTorqueLimit(std::pair< double, double > limit)
Set the lower and upper torque of the secondary constraint.
A Base class for a joint which operates on the free DOF specifies by ordinary joints such as HingeJoi...
Definition: SecondaryJoint.h:38
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29