Algo class for projecting shapes and creating SVG output of it. More...
#include <Simulation.h>
Public Member Functions | |
double | getDuration (void) |
double | getLength (void) |
Base::Placement | getPosition (void) |
double | getVelocity (void) |
void | reset (void) |
void | setToTime (float t) |
void | setToWaypoint (unsigned int n) |
Simulation (const Trajectory &Trac, Robot6Axis &Rob) | |
Constructor. More... | |
void | step (double tick) |
virtual | ~Simulation () |
Public Attributes | |
double | Axis [6] |
double | Pos |
Robot6Axis & | Rob |
double | startAxis [6] |
Base::Placement | Tool |
Trajectory | Trac |
Algo class for projecting shapes and creating SVG output of it.
Simulation::Simulation | ( | const Trajectory & | Trac, |
Robot::Robot6Axis & | Rob | ||
) |
Constructor.
References Robot::Robot6Axis::getAxis(), Robot::Trajectory::getSize(), Rob, setToTime(), startAxis, and Trac.
|
virtual |
double Robot::Simulation::getDuration | ( | void | ) |
References Robot::Trajectory::getDuration().
double Robot::Simulation::getLength | ( | void | ) |
References Robot::Trajectory::getLength().
Base::Placement Robot::Simulation::getPosition | ( | void | ) |
References Robot::Trajectory::getPosition().
double Robot::Simulation::getVelocity | ( | void | ) |
References Robot::Trajectory::getVelocity().
void Simulation::reset | ( | void | ) |
void Simulation::setToTime | ( | float | t | ) |
References Axis, Robot::Robot6Axis::getAxis(), Robot::Trajectory::getPosition(), Base::Placement::inverse(), Pos, Rob, Robot::Robot6Axis::setTo(), Tool, and Trac.
Referenced by RobotGui::TaskTrajectory::setTo(), RobotGui::TrajectorySimulate::setTo(), and Simulation().
void Simulation::setToWaypoint | ( | unsigned int | n | ) |
void Simulation::step | ( | double | tick | ) |
References Pos.
Referenced by draftguitools.gui_stretch.Stretch::action(), draftguitools.gui_stretch.Stretch::addPoint(), draftguitools.gui_rotate.Rotate::handle_mouse_click_event(), draftguitools.gui_arcs.Arc::numericInput(), draftguitools.gui_polygons.Polygon::numericInput(), draftguitools.gui_rotate.Rotate::numericInput(), draftguitools.gui_arcs.Arc::numericRadius(), and draftguitools.gui_rotate.Rotate::numericRadius().
double Robot::Simulation::Axis[6] |
Referenced by reset(), RobotGui::TaskTrajectory::setTo(), RobotGui::TrajectorySimulate::setTo(), and setToTime().
double Robot::Simulation::Pos |
Referenced by setToTime(), and step().
Robot6Axis& Robot::Simulation::Rob |
Referenced by reset(), RobotGui::TaskTrajectory::setTo(), RobotGui::TrajectorySimulate::setTo(), setToTime(), and Simulation().
double Robot::Simulation::startAxis[6] |
Referenced by reset(), and Simulation().
Base::Placement Robot::Simulation::Tool |
Trajectory Robot::Simulation::Trac |
Referenced by reset(), setToTime(), and Simulation().