22#ifndef ROBOTVIEWERCONTROLLER_H
23#define ROBOTVIEWERCONTROLLER_H
27#include "RobotAPI/interface/core/PoseBase.h"
37#include "VirtualRobot/IK/IKSolver.h"
39#include <Inventor/sensors/SoTimerSensor.h>
71 void addConnection(std::shared_ptr<RobotVisualizationController> ctr);
226 int selectedWayPoint;
227 int selectedTransition;
228 VirtualRobot::IKSolver::CartesianSelection cs;
229 VirtualRobot::RobotNodeSetPtr selectedKinematicChain;
234 void playerStarter();
Abstract controller providing a set of methods which must be implemented by every controller.
void environmentChanged(EnvironmentPtr environment)
environmentChanged updates the environment that is currently visualized
void onInitComponent() override
Initializes the controller.
void playTrajectory()
PLAY TRAJECTORY.
void tcpPoseChanged(Eigen::Matrix4f globalPose)
tcpPoseChanged informs all releveant controllers about the new global pose of the manipulator
void addConnection(std::shared_ptr< RobotVisualizationController > ctr)
void wayPointSelected(int index)
wayPointSelected informs all relevant controllers that the currently selected Waypoit has been change...
void removeView()
removeView removes RobotViewer with index
void cartesianSelectionChanged(VirtualRobot::IKSolver::CartesianSelection cs)
IK CALLBACK METHODS.
void onDisconnectComponent() override
Called whenever a component is disconnected.
void selectedTransitionChanged(int index)
selectedTransitionChanged highlights the Transition with index
void displayAllWayPoints(bool display)
displayAllWayPoints Enables Visualization and threfore selection of all waypoints of the current Traj...
void refresh() override
refresh gets all relevant data from subject an updates itself accoringly should be called by subject ...
void poseReachable(bool reachable)
poseReachable informs all relevant controllers whether the pose of the manipulator is reachable
void kinematicChainChanged(VirtualRobot::RobotNodeSetPtr rns)
kinematicChainChanged removes all visualization from the previously selected Trajectory and changes t...
void manipulatorChanged(Eigen::Matrix4f globalPose)
manipulatorChanged informs all relevant controllers that the pose of the manipulator has changed and ...
void trajectoryPlayerPlaying(bool playing)
void updateViews(DesignerTrajectoryPtr trajectory)
UPDATING OF VISUALIZATION.
void setIKCallbackEnabled(bool enabled)
setIKCallbackEnabled sets whther the robot Model tries to reach the Pose determined by the Manipulato...
RobotVisualizationController(QWidget *parent)
RobotVisualizationController creates a new RobotVisualizationController.
void playTrajectories(std::vector< DesignerTrajectoryPtr > trajectories)
playTrajectories plays all trajectories at the same time
~RobotVisualizationController()
void selectedWayPointChanged(int index)
selectedWayPointChanged highlights the waypoint with index and moves the manipulator to its Pose
void onConnectComponent() override
Connects all signals and slots of the controller.
friend class RobotVisualization
void trajectoryPlayerNotPlaying(bool playing)
trajectoryPlayerNotPlaying
void setCamera()
CAMERA UPDATING METHODS.
void robotChanged(VirtualRobot::RobotPtr robot)
robotChanged updates the robot model that is currently visualized Removes the robot that is visualize...
void onExitComponent() override
Called on exit, cleans.
void addView()
PARALLEL VIEWS.
void trajectoryPlayerStopped()
trajectoryPlayerStopped restarts the visualization of the whole scene after the debug drawer does not...
The AdvancedVisualizationFactory class is the abstract decorator of the Decorator-Pattern and decorat...
std::shared_ptr< class Robot > RobotPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< DesignerTrajectoryPlayer > DesignerTrajectoryPlayerPtr
std::shared_ptr< Environment > EnvironmentPtr
std::shared_ptr< RobotVisualizationController > RobotVisualizationControllerPtr
std::shared_ptr< DesignerTrajectory > DesignerTrajectoryPtr
std::shared_ptr< RobotVisualization > RobotVisualizationPtr