Go to the documentation of this file.
22 #ifndef ROBOTVIEWERCONTROLLER_H
23 #define ROBOTVIEWERCONTROLLER_H
26 #include "RobotAPI/interface/core/PoseBase.h"
27 #include <Eigen/Eigen>
29 #include <../Visualization/RobotVisualization.h>
30 #include "../Visualization/DesignerTrajectoryPlayer.h"
31 #include "../Model/DesignerTrajectory.h"
32 #include "VirtualRobot/IK/IKSolver.h"
33 #include "../Visualization/CoinRobotViewerAdapter.h"
34 #include "../Visualization/RobotVisualizationWidget.h"
35 #include <Inventor/sensors/SoTimerSensor.h>
36 #include "../Visualization/VisualizationObserver.h"
37 #include "../Environment.h"
69 void addConnection(std::shared_ptr<RobotVisualizationController> ctr);
229 int selectedWayPoint;
230 int selectedTransition;
232 VirtualRobot::RobotNodeSetPtr selectedKinematicChain;
237 void playerStarter();
void removeView()
removeView removes RobotViewer with index
void onExitComponent() override
Called on exit, cleans.
void playTrajectories(std::vector< DesignerTrajectoryPtr > trajectories)
playTrajectories plays all trajectories at the same time
void onInitComponent() override
Initializes the controller.
void wayPointSelected(int index)
wayPointSelected informs all relevant controllers that the currently selected Waypoit has been change...
void selectedTransitionChanged(int index)
selectedTransitionChanged highlights the Transition with index
void environmentChanged(EnvironmentPtr environment)
environmentChanged updates the environment that is currently visualized
void addConnection(std::shared_ptr< RobotVisualizationController > ctr)
Use of this software is granted under one of the following two to be chosen freely by the user Boost Software License Version Marcin Kalicinski Permission is hereby free of to any person or organization obtaining a copy of the software and accompanying documentation covered by this display
void displayAllWayPoints(bool display)
displayAllWayPoints Enables Visualization and threfore selection of all waypoints of the current Traj...
void kinematicChainChanged(VirtualRobot::RobotNodeSetPtr rns)
kinematicChainChanged removes all visualization from the previously selected Trajectory and changes t...
void trajectoryPlayerPlaying(bool playing)
void tcpPoseChanged(Eigen::Matrix4f globalPose)
tcpPoseChanged informs all releveant controllers about the new global pose of the manipulator
void poseReachable(bool reachable)
poseReachable informs all relevant controllers whether the pose of the manipulator is reachable
void trajectoryPlayerStopped()
trajectoryPlayerStopped restarts the visualization of the whole scene after the debug drawer does not...
std::shared_ptr< DesignerTrajectoryPlayer > DesignerTrajectoryPlayerPtr
std::shared_ptr< Environment > EnvironmentPtr
void onDisconnectComponent() override
Called whenever a component is disconnected.
RobotVisualizationController(QWidget *parent)
RobotVisualizationController creates a new RobotVisualizationController.
void robotChanged(VirtualRobot::RobotPtr robot)
robotChanged updates the robot model that is currently visualized Removes the robot that is visualize...
void onConnectComponent() override
Connects all signals and slots of the controller.
void setIKCallbackEnabled(bool enabled)
setIKCallbackEnabled sets whther the robot Model tries to reach the Pose determined by the Manipulato...
The AdvancedVisualizationFactory class is the abstract decorator of the Decorator-Pattern and decorat...
void setCamera()
CAMERA UPDATING METHODS.
void selectedWayPointChanged(int index)
selectedWayPointChanged highlights the waypoint with index and moves the manipulator to its Pose
void trajectoryPlayerNotPlaying(bool playing)
trajectoryPlayerNotPlaying
void refresh() override
refresh gets all relevant data from subject an updates itself accoringly should be called by subject ...
std::shared_ptr< RobotVisualization > RobotVisualizationPtr
~RobotVisualizationController()
MatrixXX< 4, 4, float > Matrix4f
void playTrajectory()
PLAY TRAJECTORY.
std::shared_ptr< DesignerTrajectory > DesignerTrajectoryPtr
std::shared_ptr< RobotVisualizationController > RobotVisualizationControllerPtr
void manipulatorChanged(Eigen::Matrix4f globalPose)
manipulatorChanged informs all relevant controllers that the pose of the manipulator has changed and ...
void addView()
PARALLEL VIEWS.
The RobotVisualizationController A Controller to control the visualization of the robot.
void cartesianSelectionChanged(VirtualRobot::IKSolver::CartesianSelection cs)
IK CALLBACK METHODS.
This file offers overloads of toIce() and fromIce() functions for STL container types.
void updateViews(DesignerTrajectoryPtr trajectory)
UPDATING OF VISUALIZATION.
Abstract controller providing a set of methods which must be implemented by every controller.
std::shared_ptr< class Robot > RobotPtr