Skip to content
This repository has been archived by the owner on Feb 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #326 from fqez/easyIce4all
Browse files Browse the repository at this point in the history
[issue #321] including easyIce in the rest of the components
  • Loading branch information
fqez committed Feb 3, 2016
2 parents 23e738d + ad1d037 commit d01f0e0
Show file tree
Hide file tree
Showing 51 changed files with 196 additions and 64 deletions.
6 changes: 6 additions & 0 deletions src/stable/components/basic_component/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${gtkmm_INCLUDE_DIRS}
${libglademm_INCLUDE_DIRS}
${easyiceconfig_INCLUDE_DIRS}
)

link_directories(
${easyiceconfig_LIBRARY_DIRS}
)

#GENERAL COMPILATION (NO DEPENDENCIES)
Expand All @@ -45,6 +50,7 @@ target_link_libraries(basic_component
colorspacesmm
${OpenCV_LIBRARIES}
${OpenCVGUI_LIBRARIES}
${easyiceconfig_LIBRARIES}
${ZeroCIce_LIBRARIES}
guigtk dl
)
Expand Down
3 changes: 2 additions & 1 deletion src/stable/components/basic_component/basic_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "control/control.h"
#include "control/threadcontrol.h"
#include "shared.h"
#include "easyiceconfig/EasyIce.h"

using namespace basic_component;

Expand Down Expand Up @@ -89,7 +90,7 @@ int main(int argc, char* argv[])
//pthread_t t_gui;
//We initialize Ice here to be able to add some other options to the configuration file such as
//the posibility to choose the gui mode.
Ice::CommunicatorPtr ic = Ice::initialize(argc, argv);
Ice::CommunicatorPtr ic = EasyIce::initialize(argc, argv);

Ice::PropertiesPtr prop = ic->getProperties();

Expand Down
6 changes: 5 additions & 1 deletion src/stable/components/cameraCalibrator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${gtkmm_INCLUDE_DIRS}
${libglademm_INCLUDE_DIRS}
${easyiceconfig_INCLUDE_DIRS}
)


link_directories(
${easyiceconfig_LIBRARY_DIRS}
)

add_executable (cameraCalibrator ${SOURCE_FILES})

Expand All @@ -24,6 +27,7 @@ add_executable (cameraCalibrator ${SOURCE_FILES})
parallelIce
${ZLIB_LIBRARIES}
# ${Gearbox_LIBRARIES}
${easyiceconfig_LIBRARIES}
${ZeroCIce_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
4 changes: 3 additions & 1 deletion src/stable/components/cameraCalibrator/cameraCalibrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#include <time.h>
#include <geometry/progeo/Progeo.h>

#include "easyiceconfig/EasyIce.h"


enum Pattern { CHESSBOARD, CIRCLES_GRID, ASYMMETRIC_CIRCLES_GRID };
enum { DETECTION = 0, CAPTURING = 1, CALIBRATED = 2 };
Expand Down Expand Up @@ -287,7 +289,7 @@ int main(int argc, char** argv){
std::vector<cameraData> cameras;

try{
ic = Ice::initialize(argc,argv);
ic = EasyIce::initialize(argc,argv);
prop = ic->getProperties();
}catch (const Ice::Exception& ex) {
std::cerr << ex << std::endl;
Expand Down
6 changes: 6 additions & 0 deletions src/stable/components/cameraserver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ include_directories(
${INTERFACES_CPP_DIR}
${LIBS_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${easyiceconfig_INCLUDE_DIRS}
)

link_directories(
${easyiceconfig_LIBRARY_DIRS}
)

add_executable (cameraserver ${SOURCE_FILES})
Expand All @@ -17,6 +22,7 @@ TARGET_LINK_LIBRARIES(cameraserver
${OpenCVGUI_LIBRARIES}
colorspacesmm
JderobotInterfaces
${easyiceconfig_LIBRARIES}
${ZeroCIce_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${ZLIB_LIBRARIES}
Expand Down
4 changes: 3 additions & 1 deletion src/stable/components/cameraserver/cameraserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
#include <jderobotutil/CameraTask.h>
#include <ns/ns.h>

#include "easyiceconfig/EasyIce.h"

bool flag=false; /** boolean to keep a check on signal */

namespace cameraserver{
Expand Down Expand Up @@ -188,7 +190,7 @@ int main(int argc, char** argv)
signal(SIGINT,signalHandler);
Ice::CommunicatorPtr ic;
try{
ic = Ice::initialize(argc, argv);
ic = EasyIce::initialize(argc, argv);

Ice::PropertiesPtr prop = ic->getProperties();

Expand Down
6 changes: 3 additions & 3 deletions src/stable/components/cameraview/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ include_directories(
${gtkglextmm_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS}
${resourcelocator_INCLUDE_DIRS}
${easyiceconfig_INCLUDE_DIRS}
)
link_directories(
${resourcelocator_LIBRARY_DIRS}
${easyiceconfig_LIBRARY_DIRS}
)


add_executable (cameraview ${SOURCE_FILES})



TARGET_LINK_LIBRARIES(cameraview
${CMAKE_THREAD_LIBS_INIT}
${OpenCV_LIBRARIES}
Expand All @@ -32,6 +31,7 @@ TARGET_LINK_LIBRARIES(cameraview
colorspacesmm
JderobotInterfaces
parallelIce
${easyiceconfig_LIBRARIES}
${ZeroCIce_LIBRARIES}
${ZLIB_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
Expand Down
3 changes: 2 additions & 1 deletion src/stable/components/cameraview/cameraview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <visionlib/colorspaces/colorspacesmm.h>
#include "viewer.h"
#include "parallelIce/cameraClient.h"
#include "easyiceconfig/EasyIce.h"

int main(int argc, char** argv){
int status;
Expand All @@ -36,7 +37,7 @@ int main(int argc, char** argv){
jderobot::cameraClient* camRGB;

try{
ic = Ice::initialize(argc,argv);
ic = EasyIce::initialize(argc,argv);
Ice::ObjectPrx base = ic->propertyToProxy("Cameraview.Camera.Proxy");
Ice::PropertiesPtr prop = ic->getProperties();

Expand Down
6 changes: 6 additions & 0 deletions src/stable/components/colorTuner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${gtkmm_INCLUDE_DIRS}
${libglademm_INCLUDE_DIRS}
${easyiceconfig_INCLUDE_DIRS}
)

link_directories(
${easyiceconfig_LIBRARY_DIRS}
)

add_executable (colorTuner ${SOURCE_FILES})
Expand All @@ -20,6 +25,7 @@ TARGET_LINK_LIBRARIES(colorTuner
JderobotInterfaces
jderobotutil
${Gearbox_LIBRARIES}
${easyiceconfig_LIBRARIES}
${ZeroCIce_LIBRARIES}

)
Expand Down
4 changes: 3 additions & 1 deletion src/stable/components/colorTuner/colorTuner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>

#include "easyiceconfig/EasyIce.h"

int main(int argc, char** argv){
int status;

cameraview::colorTuner viewer;
Ice::CommunicatorPtr ic;

try{
ic = Ice::initialize(argc,argv);
ic = EasyIce::initialize(argc,argv);
Ice::ObjectPrx base = ic->propertyToProxy("Cameraview.Camera.Proxy");
if (0==base)
throw "Could not create proxy";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,30 @@ include_directories(
${GAZEBO_INCLUDE_DIRS}
${INTERFACES_CPP_DIR}
${LIBS_DIR}
${CMAKE_CURRENT_SOURCE_DIR})
${CMAKE_CURRENT_SOURCE_DIR}
${easyiceconfig_INCLUDE_DIRS}
)

link_directories(${GAZEBO_LIBRARY_DIRS})
link_directories(
${GAZEBO_LIBRARY_DIRS}
${easyiceconfig_LIBRARY_DIRS}
)

#set( CMAKE_CXX_FLAGS "-Wall" )

add_library(motorsTurtlebotJde SHARED motors.cc)
target_link_libraries(motorsTurtlebotJde
${GAZEBO_libraries}
${ZeroCIce_LIBRARIES}
${easyiceconfig_LIBRARIES}
colorspacesmm
JderobotInterfaces)

add_library(encodersTurtlebotJde SHARED encoders.cc)
target_link_libraries(encodersTurtlebotJde
${GAZEBO_libraries}
${ZeroCIce_LIBRARIES}
${easyiceconfig_LIBRARIES}
colorspacesmm
JderobotInterfaces)

Expand All @@ -27,13 +34,15 @@ target_link_libraries(laserTurtlebotJde
RayPlugin
${GAZEBO_libraries}
${ZeroCIce_LIBRARIES}
${easyiceconfig_LIBRARIES}
colorspacesmm
JderobotInterfaces)

add_library(pose3dTurtlebotJde SHARED pose3d.cc)
target_link_libraries(pose3dTurtlebotJde
${GAZEBO_libraries}
${ZeroCIce_LIBRARIES}
${easyiceconfig_LIBRARIES}
colorspacesmm
JderobotInterfaces)

Expand All @@ -45,15 +54,16 @@ target_link_libraries(kinectPluginTurtlebotJde
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
${ZeroCIce_LIBRARIES}
${easyiceconfig_LIBRARIES}
colorspacesmm
)


add_library(camera_dumpTurtlebotJde SHARED camera_dump.cc)
target_link_libraries(camera_dumpTurtlebotJde ${GAZEBO_libraries}
CameraPlugin
${GAZEBO_libraries}
${ZeroCIce_LIBRARIES}
${easyiceconfig_LIBRARIES}
colorspacesmm
JderobotInterfaces)

Expand All @@ -62,6 +72,7 @@ target_link_libraries(pose3dencodersTurtlebotJde
${GAZEBO_libraries}
${GAZEBO_libraries}
${ZeroCIce_LIBRARIES}
${easyiceconfig_LIBRARIES}
colorspacesmm
JderobotInterfaces)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// ICE utils includes
#include <Ice/Ice.h>
#include <IceUtil/IceUtil.h>
#include <easyiceconfig/EasyIce.h>

#include <jderobot/camera.h>

Expand Down Expand Up @@ -269,7 +270,7 @@ void *myMain(void* v)

try {

ic = Ice::initialize(argc, argv);
ic = EasyIce::initialize(argc, argv);
prop = ic->getProperties();

std::string Endpoints = prop->getProperty("CameraGazebo.Endpoints");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ namespace gazebo {

try {

ic = Ice::initialize(argc, argv);
ic = EasyIce::initialize(argc, argv);


prop = ic->getProperties();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <Ice/Ice.h>
#include <IceUtil/IceUtil.h>

#include <easyiceconfig/EasyIce.h>

// JDErobot general ice component includes
#include <jderobot/motors.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ void *mainKinect(void* v)
char* argv[] = {name};
try {

ic = Ice::initialize(argc, argv);
ic = EasyIce::initialize(argc, argv);
prop = ic->getProperties();

std::string Endpoints = prop->getProperty("Kinect.Endpoints");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// ICE utils includes
#include <Ice/Ice.h>
#include <IceUtil/IceUtil.h>

#include <easyiceconfig/EasyIce.h>

#include <visionlib/colorspaces/colorspacesmm.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// ICE utils includes
#include <Ice/Ice.h>
#include <IceUtil/IceUtil.h>
#include <easyiceconfig/EasyIce.h>

#include <jderobot/laser.h>

Expand Down Expand Up @@ -120,7 +121,7 @@ void *mainLaser(void* v)
char* argv[] = {name};
try {

ic = Ice::initialize(argc, argv);
ic = EasyIce::initialize(argc, argv);
prop = ic->getProperties();

std::string Endpoints = prop->getProperty("Laser.Endpoints");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ namespace gazebo {

try {

ic = Ice::initialize(argc, argv);
ic = EasyIce::initialize(argc, argv);


prop = ic->getProperties();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <Ice/Ice.h>
#include <IceUtil/IceUtil.h>

#include <easyiceconfig/EasyIce.h>

// JDErobot general ice component includes
#include <jderobot/motors.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace gazebo {

try {

ic = Ice::initialize(argc, argv);
ic = EasyIce::initialize(argc, argv);


prop = ic->getProperties();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <Ice/Ice.h>
#include <IceUtil/IceUtil.h>


#include <easyiceconfig/EasyIce.h>

//#include <jderobot/motors.h>
#include <jderobot/pose3d.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ namespace gazebo {

try {

ic = Ice::initialize(argc, argv);
ic = EasyIce::initialize(argc, argv);


prop = ic->getProperties();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <Ice/Ice.h>
#include <IceUtil/IceUtil.h>

#include <easyiceconfig/EasyIce.h>

// JDErobot general ice component includes
#include <jderobot/pose3dencoders.h>
Expand Down
Loading

0 comments on commit d01f0e0

Please sign in to comment.