33 #include <Rcs_macros.h> 34 #include <Rcs_typedef.h> 42 arm = RcsGraph_getBodyByName(graph,
"Arm");
44 pendulum = RcsGraph_getBodyByName(graph,
"Pendulum");
60 return {
"theta",
"alpha",
"theta_dot",
"alpha_dot"};
65 min[0] = RCS_DEG2RAD(-60.);
66 max[0] = RCS_DEG2RAD(60.);
67 min[1] = RCS_DEG2RAD(-180.);
68 max[1] = RCS_DEG2RAD(180.);
69 min[2] = RCS_DEG2RAD(-10.);
70 max[2] = RCS_DEG2RAD(10);
71 min[3] = RCS_DEG2RAD(-10);
72 max[3] = RCS_DEG2RAD(10);
81 graph->q->ele[
arm->jnt->jointIndex] = initialState->ele[0];
82 graph->q->ele[
pendulum->jnt->jointIndex] = initialState->ele[1];
86 graph->q_dot->ele[
arm->jnt->jointIndex] = initialState->ele[2];
87 graph->q_dot->ele[
pendulum->jnt->jointIndex] = initialState->ele[3];
void applyInitialState(const MatNd *initialState) override
virtual ~ISSQuanserQube()
void getMinMax(double *min, double *max) const override
ISSQuanserQube(RcsGraph *graph)
virtual std::vector< std::string > getNames() const
unsigned int getDim() const override