Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

Modify base image dependecy (now only on core), remove old message se… #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ ExternalProject_Add (logic-cfsd18
CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}"
CMAKE_ARGS "-DOPENDAVINCI_DIR=${OPENDAVINCI_DIR}"
CMAKE_ARGS "-DODVDOPENDLVSTANDARDMESSAGESET_DIR=${ODVDOPENDLVSTANDARDMESSAGESET_DIR}"
CMAKE_ARGS "-DODVDCFSD18_DIR=${ODVDCFSD18_DIR}"
CMAKE_ARGS "-DCXXTEST_INCLUDE_DIR=${CXXTEST_INCLUDE_DIR}"
CMAKE_ARGS "-DEIGEN3_INCLUDE_DIR=${OPENDAVINCI_DIR}/include/opendavinci"
TEST_BEFORE_INSTALL 1
Expand Down
8 changes: 2 additions & 6 deletions code/logic-cfsd18/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,19 @@ include(CompileFlags)
include(CheckCxxTestEnvironment)

find_package(OpenCV REQUIRED)
find_package(Wt REQUIRED)

find_package(OpenDaVINCI REQUIRED)
find_package(ODVDOpenDLVStandardMessageSet REQUIRED)
find_package(ODVDcfsd18 REQUIRED)

include_directories(SYSTEM ${EIGEN3_INCLUDE_DIR})
include_directories(SYSTEM ${OpenCV_INCLUDE_DIRS})
include_directories(SYSTEM ${OPENDAVINCI_INCLUDE_DIRS})
include_directories(SYSTEM ${ODVDOPENDLVSTANDARDMESSAGESET_INCLUDE_DIRS})
include_directories(SYSTEM ${ODVDCFSD18_INCLUDE_DIRS})

set(LIBRARIES
set(LIBRARIES
${OPENDAVINCI_LIBRARIES}
${Wt_LIBRARY} ${Wt_HTTP_LIBRARY} ${Wt_EXT_LIBRARY}
${ODVDOPENDLVSTANDARDMESSAGESET_LIBRARIES}
${ODVDCFSD18_LIBRARIES})
${ODVDOPENDLVSTANDARDMESSAGESET_LIBRARIES})

### MICROSERVICE BEGIN ###
add_subdirectory(action/lateral)
Expand Down
4 changes: 2 additions & 2 deletions code/logic-cfsd18/action/lateral/include/lateral.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>


namespace opendlv {
namespace logic {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>


namespace opendlv {
namespace logic {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>


namespace opendlv {
namespace logic {
Expand Down
4 changes: 2 additions & 2 deletions code/logic-cfsd18/cognition/acceleration/src/acceleration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Acceleration::~Acceleration()

void Acceleration::nextContainer(odcore::data::Container &a_container)
{
if (a_container.getDataType() == opendlv::logic::perception::Surface::ID()) {
if (a_container.getDataType() == opendlv::logic::perception::GroundSurfaceArea::ID()) {
// auto kinematicState = a_container.getData<opendlv::coord::KinematicState>();

opendlv::logic::action::AimPoint o1;
Expand Down Expand Up @@ -71,7 +71,7 @@ void Acceleration::nextContainer(odcore::data::Container &a_container)

void Acceleration::setUp()
{
// std::string const exampleConfig =
// std::string const exampleConfig =
// getKeyValueConfiguration().getValue<std::string>(
// "logic-cfsd18-cognition-acceleration.example-config");

Expand Down
4 changes: 2 additions & 2 deletions code/logic-cfsd18/cognition/brake/include/brake.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>


namespace opendlv {
namespace logic {
Expand Down
4 changes: 2 additions & 2 deletions code/logic-cfsd18/cognition/brake/src/brake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Brake::~Brake()

void Brake::nextContainer(odcore::data::Container &a_container)
{
if (a_container.getDataType() == opendlv::logic::perception::Surface::ID()) {
if (a_container.getDataType() == opendlv::logic::perception::GroundSurfaceArea::ID()) {
// auto kinematicState = a_container.getData<opendlv::coord::KinematicState>();

opendlv::logic::action::AimPoint o1;
Expand Down Expand Up @@ -71,7 +71,7 @@ void Brake::nextContainer(odcore::data::Container &a_container)

void Brake::setUp()
{
// std::string const exampleConfig =
// std::string const exampleConfig =
// getKeyValueConfiguration().getValue<std::string>(
// "logic-cfsd18-cognition-brake.example-config");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>

namespace opendlv {
namespace logic {
Expand Down
4 changes: 2 additions & 2 deletions code/logic-cfsd18/cognition/skidpad/include/skidpad.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>


namespace opendlv {
namespace logic {
Expand Down
4 changes: 2 additions & 2 deletions code/logic-cfsd18/cognition/skidpad/src/skidpad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Skidpad::~Skidpad()

void Skidpad::nextContainer(odcore::data::Container &a_container)
{
if (a_container.getDataType() == opendlv::logic::perception::Surface::ID()) {
if (a_container.getDataType() == opendlv::logic::perception::GroundSurfaceArea::ID()) {
// auto kinematicState = a_container.getData<opendlv::coord::KinematicState>();

opendlv::logic::action::AimPoint o1;
Expand Down Expand Up @@ -71,7 +71,7 @@ void Skidpad::nextContainer(odcore::data::Container &a_container)

void Skidpad::setUp()
{
// std::string const exampleConfig =
// std::string const exampleConfig =
// getKeyValueConfiguration().getValue<std::string>(
// "logic-cfsd18-cognition-skidpad.example-config");

Expand Down
3 changes: 1 addition & 2 deletions code/logic-cfsd18/cognition/track/include/track.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>

namespace opendlv {
namespace logic {
Expand Down
4 changes: 2 additions & 2 deletions code/logic-cfsd18/cognition/track/src/track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Track::~Track()

void Track::nextContainer(odcore::data::Container &a_container)
{
if (a_container.getDataType() == opendlv::logic::perception::Surface::ID()) {
if (a_container.getDataType() == opendlv::logic::perception::GroundSurfaceArea::ID()) {
// auto kinematicState = a_container.getData<opendlv::coord::KinematicState>();

opendlv::logic::action::AimPoint o1;
Expand Down Expand Up @@ -71,7 +71,7 @@ void Track::nextContainer(odcore::data::Container &a_container)

void Track::setUp()
{
// std::string const exampleConfig =
// std::string const exampleConfig =
// getKeyValueConfiguration().getValue<std::string>(
// "logic-cfsd18-cognition-track.example-config");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>


namespace opendlv {
namespace logic {
Expand Down
12 changes: 3 additions & 9 deletions code/logic-cfsd18/perception/detectcone/src/detectcone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,14 @@ DetectCone::~DetectCone()



void DetectCone::nextContainer(odcore::data::Container &a_container)
void DetectCone::nextContainer(odcore::data::Container &)
{
if (a_container.getDataType() == opendlv::logic::sensation::Attention::ID()) {
// auto kinematicState = a_container.getData<opendlv::coord::KinematicState>();

opendlv::logic::perception::Object o1;
odcore::data::Container c1(o1);
getConference().send(c1);
}

}

void DetectCone::setUp()
{
// std::string const exampleConfig =
// std::string const exampleConfig =
// getKeyValueConfiguration().getValue<std::string>(
// "logic-cfsd18-perception-detectcone.example-config");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>

namespace opendlv {
namespace logic {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ void DetectConeLane::nextContainer(odcore::data::Container &a_container)
if (a_container.getDataType() == opendlv::logic::perception::Object::ID()) {
// auto kinematicState = a_container.getData<opendlv::coord::KinematicState>();

opendlv::logic::perception::Surface o1;
opendlv::logic::perception::GroundSurfaceArea o1;
odcore::data::Container c1(o1);
getConference().send(c1);
}
}

void DetectConeLane::setUp()
{
// std::string const exampleConfig =
// std::string const exampleConfig =
// getKeyValueConfiguration().getValue<std::string>(
// "logic-cfsd18-perception-detectconelane.example-config");

Expand Down
4 changes: 2 additions & 2 deletions code/logic-cfsd18/sensation/attention/include/attention.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>


namespace opendlv {
namespace logic {
Expand Down
5 changes: 1 addition & 4 deletions code/logic-cfsd18/sensation/attention/src/attention.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,12 @@ void Attention::nextContainer(odcore::data::Container &a_container)
if (a_container.getDataType() == odcore::data::CompactPointCloud::ID()) {
// auto kinematicState = a_container.getData<opendlv::coord::KinematicState>();

opendlv::logic::sensation::Attention o1;
odcore::data::Container c1(o1);
getConference().send(c1);
}
}

void Attention::setUp()
{
// std::string const exampleConfig =
// std::string const exampleConfig =
// getKeyValueConfiguration().getValue<std::string>(
// "logic-cfsd18-sensation-attention.example-config");

Expand Down
3 changes: 1 addition & 2 deletions code/logic-cfsd18/sensation/slam/include/slam.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
#include <opendavinci/odcore/base/module/DataTriggeredConferenceClientModule.h>
#include <opendavinci/odcore/data/Container.h>

//#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>
#include <odvdcfsd18/GeneratedHeaders_ODVDcfsd18.h>
#include <odvdopendlvstandardmessageset/GeneratedHeaders_ODVDOpenDLVStandardMessageSet.h>

namespace opendlv {
namespace logic {
Expand Down
7 changes: 3 additions & 4 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ PROJECT_NAME=opendlv.cfsd18

REPOSITORY=seresearch

IMAGE=opendlv-cfsd18-on-opendlv-lynx-on-opendlv-on-opendlv-core-on-opendavinci-on-base
IMAGE=opendlv-cfsd18-on-opendlv-core-on-opendavinci-on-base
IMAGE_PATH=$(REPOSITORY)/$(IMAGE)

BASE_IMAGE=opendlv-lynx-on-opendlv-on-opendlv-core-on-opendavinci-on-base
BASE_IMAGE=opendlv-core-on-opendavinci-on-base
BASE_IMAGE_PATH=$(REPOSITORY)/$(BASE_IMAGE)
BASE_IMAGE_VERSION=v0.0.3
BASE_IMAGE_VERSION=v0.13.0

DEV_SUFFIX=-dev

Expand Down Expand Up @@ -166,4 +166,3 @@ pushDockerImage: createDockerImage
$(DOCKER) push $(IMAGE_PATH):$(VERSION)
$(DOCKER) push $(IMAGE_DEV_PATH):latest
$(DOCKER) push $(IMAGE_DEV_PATH):$(VERSION)