Skip to content
Snippets Groups Projects
Commit efc6b262 authored by You Zhou's avatar You Zhou
Browse files

Merge branch 'master' of https://gitlab.com/ArmarX/RobotAPI

parents 323c4540 5ff53f0a
No related branches found
No related tags found
No related merge requests found
armarx_component_set_name("SimpleEpisodicMemoryKinematicUnitConnectorApp")
set(COMPONENT_LIBS SimpleEpisodicMemoryKinematicUnitConnector)
armarx_add_component_executable(main.cpp)
#find_package(MyLib QUIET)
#armarx_build_if(MyLib_FOUND "MyLib not available")
# all target_include_directories must be guarded by if(Xyz_FOUND)
# for multiple libraries write: if(X_FOUND AND Y_FOUND)....
#if(MyLib_FOUND)
# target_include_directories(SimpleEpisodicMemoryKinematicUnitConnector PUBLIC ${MyLib_INCLUDE_DIRS})
#endif()
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package RobotAPI::application::SimpleEpisodicMemoryKinematicUnitConnector
* @author Fabian PK ( fabian dot peller-konrad at kit dot edu )
* @date 2020
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#include <RobotAPI/components/SimpleEpisodicMemoryKinematicUnitConnector/SimpleEpisodicMemoryKinematicUnitConnector.h>
#include <ArmarXCore/core/application/Application.h>
#include <ArmarXCore/core/Component.h>
#include <ArmarXCore/core/logging/Logging.h>
int main(int argc, char* argv[])
{
return armarx::runSimpleComponentApp < armarx::SimpleEpisodicMemoryKinematicUnitConnector > (argc, argv, "SimpleEpisodicMemoryKinematicUnitConnector");
}
armarx_component_set_name("SimpleEpisodicMemoryKinematicUnitConnector")
set(COMPONENT_LIBS
ArmarXCore
ArmarXCoreInterfaces # for DebugObserverInterface
# RobotAPICore # for DebugDrawerTopic
)
set(SOURCES
./SimpleEpisodicMemoryKinematicUnitConnector.cpp
#@TEMPLATE_LINE@@COMPONENT_PATH@/@COMPONENT_NAME@.cpp
)
set(HEADERS
./SimpleEpisodicMemoryKinematicUnitConnector.h
#@TEMPLATE_LINE@@COMPONENT_PATH@/@COMPONENT_NAME@.h
)
armarx_add_component("${SOURCES}" "${HEADERS}")
#find_package(MyLib QUIET)
#armarx_build_if(MyLib_FOUND "MyLib not available")
# all target_include_directories must be guarded by if(Xyz_FOUND)
# for multiple libraries write: if(X_FOUND AND Y_FOUND)....
#if(MyLib_FOUND)
# target_include_directories(SimpleEpisodicMemoryKinematicUnitConnector PUBLIC ${MyLib_INCLUDE_DIRS})
#endif()
# add unit tests
add_subdirectory(test)
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package RobotAPI::ArmarXObjects::SimpleEpisodicMemoryKinematicUnitConnector
* @author Fabian PK ( fabian dot peller-konrad at kit dot edu )
* @date 2020
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#include "SimpleEpisodicMemoryKinematicUnitConnector.h"
namespace armarx
{
std::string SimpleEpisodicMemoryKinematicUnitConnector::getDefaultName() const
{
return "SimpleEpisodicMemoryKinematicUnitConnector";
}
SimpleEpisodicMemoryKinematicUnitConnector::SimpleEpisodicMemoryKinematicUnitConnector()
{}
void SimpleEpisodicMemoryKinematicUnitConnector::onInitComponent()
{
}
void SimpleEpisodicMemoryKinematicUnitConnector::onConnectComponent()
{
}
void SimpleEpisodicMemoryKinematicUnitConnector::onDisconnectComponent()
{
}
void SimpleEpisodicMemoryKinematicUnitConnector::onExitComponent()
{
}
armarx::PropertyDefinitionsPtr SimpleEpisodicMemoryKinematicUnitConnector::createPropertyDefinitions()
{
//armarx::PropertyDefinitionsPtr defs = new SimpleEpisodicMemoryKinematicUnitConnectorPropertyDefinitions(getConfigIdentifier());
return nullptr;
}
}
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package RobotAPI::ArmarXObjects::SimpleEpisodicMemoryKinematicUnitConnector
* @author Fabian PK ( fabian dot peller-konrad at kit dot edu )
* @date 2020
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#pragma once
#include <ArmarXCore/core/Component.h>
namespace armarx
{
class SimpleEpisodicMemoryKinematicUnitConnector :
virtual public armarx::Component
{
public:
/// @see armarx::ManagedIceObject::getDefaultName()
std::string getDefaultName() const override;
SimpleEpisodicMemoryKinematicUnitConnector();
protected:
void onInitComponent() override;
void onConnectComponent() override;
void onDisconnectComponent() override;
void onExitComponent() override;
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override;
private:
};
}
# Libs required for the tests
SET(LIBS ${LIBS} ArmarXCore SimpleEpisodicMemoryKinematicUnitConnector)
armarx_add_test(SimpleEpisodicMemoryKinematicUnitConnectorTest SimpleEpisodicMemoryKinematicUnitConnectorTest.cpp "${LIBS}")
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package RobotAPI::ArmarXObjects::SimpleEpisodicMemoryKinematicUnitConnector
* @author Fabian PK ( fabian dot peller-konrad at kit dot edu )
* @date 2020
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#define BOOST_TEST_MODULE RobotAPI::ArmarXObjects::SimpleEpisodicMemoryKinematicUnitConnector
#define ARMARX_BOOST_TEST
#include <RobotAPI/Test.h>
#include <RobotAPI/components/SimpleEpisodicMemoryKinematicUnitConnector/SimpleEpisodicMemoryKinematicUnitConnector.h>
#include <iostream>
BOOST_AUTO_TEST_CASE(testExample)
{
armarx::SimpleEpisodicMemoryKinematicUnitConnector instance;
BOOST_CHECK_EQUAL(true, true);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment