34#include <RobotAPI/interface/components/TrajectoryPlayerInterface.h>
36#include <ArmarXSimulation/interface/MMMSimulationInterface.h>
37#include <ArmarXSimulation/interface/simulator/SimulatorInterface.h>
57 "RobotFileName",
"RobotAPI/robots/MMM/mmm.xml",
"Path to MMM XML File");
99 return "MMMSimulation";
102 bool isMotionLoaded(
const Ice::Current& = Ice::emptyCurrent)
override;
104 const std::string& projects = std::string(),
106 const Ice::Current& = Ice::emptyCurrent)
override;
107 void playMotion(
const Ice::Current& = Ice::emptyCurrent)
override;
108 void pauseMotion(
const Ice::Current& = Ice::emptyCurrent)
override;
109 void stopMotion(
const Ice::Current& = Ice::emptyCurrent)
override;
110 void setLoopBack(
bool state,
const Ice::Current& = Ice::emptyCurrent)
override;
114 const Ice::Current& = Ice::emptyCurrent)
override
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Baseclass for all ArmarX ManagedIceObjects requiring properties.
MMMSimulationPropertyDefinitions(std::string prefix)
Eigen::Matrix4f startPose
void onInitComponent() override
void stopMotion(const Ice::Current &=Ice::emptyCurrent) override
void pauseMotion(const Ice::Current &=Ice::emptyCurrent) override
std::string trajectoryPlayerName
std::string modelFileName
bool isMotionLoaded(const Ice::Current &=Ice::emptyCurrent) override
std::string kinematicUnitName
void onDisconnectComponent() override
TrajectoryPlayerInterfacePrx trajectoryPlayer
std::string robotPoseUnitName
std::shared_ptr< MotionData > motionData
std::shared_ptr< MotionFileWrapper > motionWrapper
void playMotion(const Ice::Current &=Ice::emptyCurrent) override
SimulatorInterfacePrx simulatorPrx
void createTrajectoryPlayer()
void onConnectComponent() override
PropertyDefinitionsPtr createPropertyDefinitions() override
bool loadMMMFile(const std::string &filePath, const std::string &projects=std::string(), bool createTrajectoryPlayer=true, const Ice::Current &=Ice::emptyCurrent) override
void setStartPose(const Eigen::Matrix4f &startPose, const Ice::Current &=Ice::emptyCurrent) override
void setLoopBack(bool state, const Ice::Current &=Ice::emptyCurrent) override
void onExitComponent() override
std::recursive_mutex mmmMutex
std::string getDefaultName() const override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
IceUtil::Handle< RunningTask< T > > pointer_type
Shared pointer type for convenience.
This file offers overloads of toIce() and fromIce() functions for STL container types.
::IceInternal::Handle<::armarx::MMMSimulation > MMMSimulationPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.