Momentum Scripting v1
Deprecated API version. Use Momentum.v2 for new scripts.
Loading...
Searching...
No Matches
AngularMotor.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_ANGULARMOTOR_H
16#define MOMENTUM_ANGULARMOTOR_H
17
18#include "momentum_export.h"
19#include "momentum_namespace.h"
20
21#include "AngularSecondaryJoint.h"
22
23#ifndef SWIG
25namespace agx
26{
27 class TargetSpeedController;
28}
30#endif
31
32namespace MOMENTUM_NAMESPACE
33{
38 class MOMENTUM_EXPORT AngularMotor : public AngularSecondaryJoint
39 {
40 public:
41#ifndef SWIG
43
46 AngularMotor(agx::TargetSpeedController* constraint);
47
49#endif
50
56 double getTargetSpeed() const;
57
58#ifndef AGX_MOMENTUM_ANALYSIS_API
66 void setTargetSpeed(double speed);
67
76#endif
77
82
84 std::string __str__() const;
86
87 protected:
91
92 private:
93 agx::TargetSpeedController* getMotor() const;
94 };
95} // namespace momentum
96
97
98#endif
An angular motor will try to reach a target rotation speed with the specified max torque.
Definition: AngularMotor.h:39
void setTargetSpeed(double speed)
Set the target speed that the motor tries to reach using the available torque.
void setEnableSpringAtZeroSpeed(bool flag)
When target speed is set to zero for the motor, the motor can be specified to act like a spring,...
double getTargetSpeed() const
Get the target speed that the motor tries to reach using the available torque.
An angular secondary joint operates on the free rotational DOF of angular joints such as HingeJoint a...
Definition: AngularSecondaryJoint.h:38
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29