1#include <VirtualRobot/XML/RobotIO.h>
5#include <ArmarXCore/core/test/IceTestHelper.h>
7#include <RobotTrajectoryDesigner/gui-plugins/RobotTrajectoryDesignerGuiPlugin/RobotTrajectoryDesignerGuiPluginGuiPlugin.h>
13 int registryPort = 11220,
14 bool addObjects =
true)
18 const std::string project =
"RobotAPI";
23 ARMARX_ERROR <<
"ArmarX Package " << project <<
" has not been found!";
30 std::string fn =
"RobotAPI/robots/Armar3/ArmarIII.xml";
31 ArmarXDataPath::getAbsolutePath(fn, fn);
32 std::string robotFilename = fn;
34 _spaceSavePath = test::getCmakeValue(
"PROJECT_BINARY_DIR") +
"/Testing/Temporary/spaces/";
38 properties->setProperty(
"ArmarX.RobotIK.ReachabilitySpacesFolder", _spaceSavePath);
39 properties->setProperty(
"ArmarX.RobotIK.InitialReachabilitySpaces",
40 "testReachabilitySpace.bin");
43 _iceTestHelper =
new IceTestHelper(registryPort, registryPort + 1);
52 _manager->createComponentAndRun<YourComponent, YourComponentInterfacePrx>(
53 "ArmarX",
"RobotTrajectoryDesigner");
57 VirtualRobot::RobotIO::loadRobot(robotFilename, VirtualRobot::RobotIO::eStructure);
73 std::shared_ptr<RobotTrajectoryDesignerTestEnvironment>;
std::shared_ptr< RobotTrajectoryDesignerTestEnvironment > RobotTrajectoryDesignerTestEnvironmentPtr
IceTestHelperPtr _iceTestHelper
RobotTrajectoryDesignerInterfacePrx _robotTrajectoryDesigner
TestArmarXManagerPtr _manager
~RobotTrajectoryDesignerTestEnvironment()
RobotTrajectoryDesignerTestEnvironment(const std::string &testName, int registryPort=11220, bool addObjects=true)
VirtualRobot::RobotPtr _robotModel
static void LoadDefaultConfig(Ice::PropertiesPtr properties)
static void addDataPaths(const std::string &dataPathList)
The CMakePackageFinder class provides an interface to the CMake Package finder capabilities.
std::string getDataDir() const
bool packageFound() const
Returns whether or not this package was found with cmake.
#define ARMARX_ERROR
The logging level for unexpected behaviour, that must be fixed.
Ice::PropertiesPtr createProperties()
::IceInternal::Handle<::Ice::Properties > PropertiesPtr
std::shared_ptr< class Robot > RobotPtr