17 int main(
int argc, 
char **argv)
 
   25         auto world = std::make_shared<darts::World>();
 
   28                                              "package://fetch_description/robots/fetch.urdf",  
 
   29                                              "package://fetch_moveit_config/config/fetch.srdf");
 
   30         auto start = fetch1->getSkeleton()->getState();
 
   31         world->addRobot(fetch1);
 
   38             spec1.
setFrame(
"fetch1", 
"wrist_roll_link", 
"base_link");
 
   39             spec1.
pose = fetch1->getFrame(
"wrist_roll_link")->getWorldTransform();
 
   44             auto ew1 = std::make_shared<darts::TSREditWidget>(
"EE", spec1);
 
   48             spec2.
setFrame(
"fetch1", 
"elbow_flex_link", 
"base_link");
 
   49             spec2.
pose = fetch1->getFrame(
"elbow_flex_link")->getWorldTransform();
 
   54             auto ew2 = std::make_shared<darts::TSREditWidget>(
"Elbow", spec2);
 
   58             auto sw = std::make_shared<darts::TSRSolveWidget>(world, tsrs);
 
   64             spec.
setFrame(
"fetch1", 
"wrist_roll_link", 
"base_link");
 
   65             spec.
pose = fetch1->getFrame(
"wrist_roll_link")->getWorldTransform();
 
   66             auto ew = std::make_shared<darts::TSREditWidget>(
"EE", spec);
 
   70             auto sw = std::make_shared<darts::TSRSolveWidget>(world, tsrs);
 
The specification of a TSR.
 
void setFrame(const std::string &structure, const std::string &target, const std::string &base=magic::ROOT_FRAME)
Set the base and target frame.
 
void setYPosTolerance(double bound)
Set the Y position tolerance to (-bound, bound).
 
RobotPose pose
Pose of TSR.
 
void setXPosTolerance(double bound)
Setting Position Tolerances.
 
void setZPosTolerance(double bound)
Set the Z position tolerance to (-bound, bound).
 
Open Scene Graph GUI for DART visualization.
 
void run(std::function< void()> thread={})
Run the GUI. Blocks.
 
void addWidget(const WidgetPtr &widget)
Add a new IMGUI widget.
 
RobotPtr loadMoveItRobot(const std::string &name, const std::string &urdf, const std::string &srdf)
Load a robot from a URDF and SRDF (i.e., a MoveIt enabled robot).
 
Main namespace. Contains all library classes and functions.
 
int main(int argc, char **argv)