33 #include <Rcs_macros.h> 34 #include <Rcs_typedef.h> 40 fixedInitState(fixedInitState)
43 platform = RcsGraph_getBodyByName(graph,
"ImetronPlatform");
45 rail = RcsGraph_getBodyByName(graph,
"RailBot");
47 link2R = RcsGraph_getBodyByName(graph,
"lbr_link_2_R");
49 box = RcsGraph_getBodyByName(graph,
"Box");
71 min[4] = RCS_DEG2RAD(-70.);
72 max[4] = RCS_DEG2RAD(-60.);
79 return {
"base_x",
"base_y",
"base_theta",
"rail_z",
"joint_2_R",
"box_y"};
93 b4 = RcsGraph_setJoint(
graph,
"lbr_joint_2_R", RCS_DEG2RAD(-65.));
94 graph->q->ele[
box->jnt->jointIndex + 1] = initialState->ele[5];
101 b4 = RcsGraph_setJoint(
graph,
"lbr_joint_2_R", initialState->ele[4]);
102 graph->q->ele[
box->jnt->jointIndex + 1] = initialState->ele[5];
106 throw std::invalid_argument(
"Setting graph failed for at least one of the joints!");
void getMinMax(double *min, double *max) const override
virtual std::vector< std::string > getNames() const
ISSBoxLifting(RcsGraph *graph, bool fixedInitState)
void applyInitialState(const MatNd *initialState) override
unsigned int getDim() const override