Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
emros-ros
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
nathan
emros-ros
Commits
9446cff8
Commit
9446cff8
authored
Mar 05, 2019
by
Christian Sponfeldner
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/support_isolated_install' into HEAD
parents
3c2a13f2
f6d4dfe3
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
73 additions
and
669 deletions
+73
-669
CMakeLists.txt
emros_basecontroller/CMakeLists.txt
+16
-188
basecontroller.hpp
...ontroller/include/emros_basecontroller/basecontroller.hpp
+4
-4
kinematics.hpp
...asecontroller/include/emros_basecontroller/kinematics.hpp
+2
-2
basecontroller_node.cpp
emros_basecontroller/src/basecontroller_node.cpp
+1
-1
CMakeLists.txt
emros_bringup/CMakeLists.txt
+4
-153
emros_bringup.launch
emros_bringup/launch/emros_bringup.launch
+1
-1
emros_common
emros_common
+1
-1
CMakeLists.txt
emros_dispatcher/CMakeLists.txt
+23
-160
dispatcher.h
emros_dispatcher/include/emros_dispatcher/dispatcher.h
+4
-4
udpsocket.h
emros_dispatcher/include/emros_dispatcher/udpsocket.h
+1
-1
dispatcher.cpp
emros_dispatcher/src/dispatcher.cpp
+1
-1
udpsocket.cpp
emros_dispatcher/src/udpsocket.cpp
+1
-1
CMakeLists.txt
emros_teleop/CMakeLists.txt
+13
-151
utility_ofc
utility_ofc
+1
-1
No files found.
emros_basecontroller/CMakeLists.txt
View file @
9446cff8
...
...
@@ -4,10 +4,7 @@ project(emros_basecontroller)
## Add support for C++11, supported in ROS Kinetic and newer
add_definitions
(
-std=c++11
)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package
(
catkin REQUIRED COMPONENTS
roscpp
emros_dispatcher
...
...
@@ -18,92 +15,17 @@ find_package(catkin REQUIRED COMPONENTS
emros_common
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()
################################################
## Declare ROS messages, services and actions ##
################################################
## To declare and build messages, services or actions from within this
## package, follow these steps:
## * Let MSG_DEP_SET be the set of packages whose message types you use in
## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
## * In the file package.xml:
## * add a build_depend tag for "message_generation"
## * add a build_depend and a run_depend tag for each package in MSG_DEP_SET
## * If MSG_DEP_SET isn't empty the following dependency has been pulled in
## but can be declared for certainty nonetheless:
## * add a run_depend tag for "message_runtime"
## * In this file (CMakeLists.txt):
## * add "message_generation" and every package in MSG_DEP_SET to
## find_package(catkin REQUIRED COMPONENTS ...)
## * add "message_runtime" and every package in MSG_DEP_SET to
## catkin_package(CATKIN_DEPENDS ...)
## * uncomment the add_*_files sections below as needed
## and list every .msg/.srv/.action file to be processed
## * uncomment the generate_messages entry below
## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)
## Generate messages in the 'msg' folder
# add_message_files(
# FILES
# Message1.msg
# Message2.msg
#eth.msg
# )
## Generate services in the 'srv' folder
# add_service_files(
# FILES
# Service1.srv
# Service2.srv
# )
## Generate actions in the 'action' folder
# add_action_files(
# FILES
# Action1.action
# Action2.action
# )
# Generate added messages and services with any dependencies listed here
# generate_messages(
# DEPENDENCIES
# std_msgs # Or other packages containing msgs
# geometry_msgs
# dispatcher
# )
################################################
## Declare ROS dynamic reconfigure parameters ##
################################################
## To declare and build dynamic reconfigure parameters within this
## package, follow these steps:
## * In the file package.xml:
## * add a build_depend and a run_depend tag for "dynamic_reconfigure"
## * In this file (CMakeLists.txt):
## * add "dynamic_reconfigure" to
## find_package(catkin REQUIRED COMPONENTS ...)
## * uncomment the "generate_dynamic_reconfigure_options" section below
## and list every .cfg file to be processed
## Generate dynamic reconfigure parameters in the 'cfg' folder
# generate_dynamic_reconfigure_options(
# cfg/DynReconf1.cfg
# cfg/DynReconf2.cfg
# )
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
...
...
@@ -118,36 +40,21 @@ catkin_package(
#CATKIN_DEPENDS message_runtime
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories
(
include
${
catkin_INCLUDE_DIRS
}
)
## Add cmake target dependencies of the library
## as an example, code may need to be generated before libraries
## either from message generation or dynamic reconfigure
# add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
include_directories
(
include
${
catkin_INCLUDE_DIRS
}
)
## Declare a C++ executable
## With catkin_make all packages are built within a single CMake context
## The recommended prefix ensures that target names across packages don't collide
add_executable
(
${
PROJECT_NAME
}
_node src/basecontroller_node.cpp src/basecontroller.cpp src/kinematics.cpp
)
## Rename C++ executable without prefix
## The above recommended prefix causes long target names, the following renames the
## target back to the shorter version for ease of user use
## e.g. "rosrun someones_pkg node" instead of "rosrun someones_pkg someones_pkg_node"
# set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME node PREFIX "")
## Add cmake target dependencies of the executable
## same as for the library above
add_dependencies
(
${
PROJECT_NAME
}
_node
${${
PROJECT_NAME
}
_EXPORTED_TARGETS
}
${
catkin_EXPORTED_TARGETS
}
)
## Specify libraries to link a library or executable target against
...
...
@@ -156,100 +63,21 @@ target_link_libraries(${PROJECT_NAME}_node
)
#add_executable(basecontroller src/basecontroller_node.cpp src/basecontroller.cpp src/kinematics.cpp)
#add_dependencies(basecontroller ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS} )
#target_link_libraries(basecontroller ${catkin_LIBRARIES} )
#add_executable(mecanum_basecontroller src/mecanum_basecontroller.cpp )
#add_dependencies(mecanum_basecontroller ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS} )
#target_link_libraries(mecanum_basecontroller ${catkin_LIBRARIES} )
#add_executable(test_mecanum_basecontroller src/test_mecanum_basecontroller.cpp )
#add_dependencies(test_mecanum_basecontroller ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS} )
#target_link_libraries(test_mecanum_basecontroller ${catkin_LIBRARIES} )
#add_executable(diff_basecontroller src/diff_basecontroller.cpp )
#add_dependencies(diff_basecontroller ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS} )
#target_link_libraries(diff_basecontroller ${catkin_LIBRARIES} )
## Declare a C++ library
# add_library(sepp_basecontroller
# src/${PROJECT_NAME}/sepp_basecontroller.cpp
# )
## Add cmake target dependencies of the library
## as an example, code may need to be generated before libraries
## either from message generation or dynamic reconfigure
# add_dependencies(sepp_basecontroller ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## Declare a C++ executable
# add_executable(sepp_basecontroller_node src/sepp_basecontroller_node.cpp)
## Add cmake target dependencies of the executable
## same as for the library above
# add_dependencies(sepp_basecontroller_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## Specify libraries to link a library or executable target against
# target_link_libraries(basecontroller
# ${catkin_LIBRARIES}
# )
#############
## Install ##
#############
# all install targets should use catkin DESTINATION variables
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
## Mark executable scripts (Python etc.) for installation
## in contrast to setup.py, you can choose the destination
# install(PROGRAMS
# scripts/my_python_script
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
## Mark executables and/or libraries for installation
# install(TARGETS sepp_basecontroller sepp_basecontroller_node
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
install
(
TARGETS
${
PROJECT_NAME
}
_node
RUNTIME DESTINATION
${
CATKIN_PACKAGE_BIN_DESTINATION
}
)
## Mark cpp header files for installation
# install(DIRECTORY include/${PROJECT_NAME}/
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
# FILES_MATCHING PATTERN "*.h"
# PATTERN ".svn" EXCLUDE
# )
## Mark other files for installation (e.g. launch and bag files, etc.)
# install(FILES
# # myfile1
# # myfile2
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
# )
#############
## Testing ##
#############
## Add gtest based cpp test target and link libraries
# catkin_add_gtest(${PROJECT_NAME}-test test/test_sepp_basecontroller.cpp)
# if(TARGET ${PROJECT_NAME}-test)
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
# endif()
install
(
DIRECTORY include/
${
PROJECT_NAME
}
/
DESTINATION
${
CATKIN_PACKAGE_INCLUDE_DESTINATION
}
)
## Add folders to be run by python nosetests
# catkin_add_nosetests(test)
## Mark launch files for installation
install
(
DIRECTORY launch
DESTINATION
${
CATKIN_PACKAGE_SHARE_DESTINATION
}
)
\ No newline at end of file
emros_basecontroller/include/emros_basecontroller/basecontroller.hpp
View file @
9446cff8
...
...
@@ -12,13 +12,13 @@
#include "geometry_msgs/Twist.h"
#include "tf/transform_broadcaster.h"
#include "nav_msgs/Odometry.h"
#include "ethprotocol.h"
#include "emros_commands.h"
#include "
utility_ofc/
ethprotocol.h"
#include "emros_comm
on/emros_comm
ands.h"
#include <boost/shared_ptr.hpp>
#include <boost/thread.hpp>
#include
<leaky_bucket_timeout.h>
#include
"utility_ofc/leaky_bucket_timeout.h"
#include "kinematics.hpp"
#include "velocities.h"
#include "
emros_common/
velocities.h"
#include <cmath>
...
...
emros_basecontroller/include/emros_basecontroller/kinematics.hpp
View file @
9446cff8
...
...
@@ -13,8 +13,8 @@
#include "geometry_msgs/Twist.h"
#include "tf/transform_broadcaster.h"
#include "nav_msgs/Odometry.h"
#include "emros_commands.h"
#include "velocities.h"
#include "emros_comm
on/emros_comm
ands.h"
#include "
emros_common/
velocities.h"
using
namespace
EMROSCmdType
::
Basecontroller
;
...
...
emros_basecontroller/src/basecontroller_node.cpp
View file @
9446cff8
...
...
@@ -6,7 +6,7 @@
*/
#include "emros_basecontroller/basecontroller.hpp"
#include "emros_commands.h"
#include "emros_comm
on/emros_comm
ands.h"
#include "ros/ros.h"
#include <iostream>
...
...
emros_bringup/CMakeLists.txt
View file @
9446cff8
...
...
@@ -2,89 +2,8 @@ cmake_minimum_required(VERSION 2.8.3)
project
(
emros_bringup
)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package
(
catkin REQUIRED
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()
################################################
## Declare ROS messages, services and actions ##
################################################
## To declare and build messages, services or actions from within this
## package, follow these steps:
## * Let MSG_DEP_SET be the set of packages whose message types you use in
## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
## * In the file package.xml:
## * add a build_depend tag for "message_generation"
## * add a build_depend and a run_depend tag for each package in MSG_DEP_SET
## * If MSG_DEP_SET isn't empty the following dependency has been pulled in
## but can be declared for certainty nonetheless:
## * add a run_depend tag for "message_runtime"
## * In this file (CMakeLists.txt):
## * add "message_generation" and every package in MSG_DEP_SET to
## find_package(catkin REQUIRED COMPONENTS ...)
## * add "message_runtime" and every package in MSG_DEP_SET to
## catkin_package(CATKIN_DEPENDS ...)
## * uncomment the add_*_files sections below as needed
## and list every .msg/.srv/.action file to be processed
## * uncomment the generate_messages entry below
## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)
## Generate messages in the 'msg' folder
# add_message_files(
# FILES
# Message1.msg
# Message2.msg
# )
## Generate services in the 'srv' folder
# add_service_files(
# FILES
# Service1.srv
# Service2.srv
# )
## Generate actions in the 'action' folder
# add_action_files(
# FILES
# Action1.action
# Action2.action
# )
## Generate added messages and services with any dependencies listed here
# generate_messages(
# DEPENDENCIES
# std_msgs # Or other packages containing msgs
# )
################################################
## Declare ROS dynamic reconfigure parameters ##
################################################
## To declare and build dynamic reconfigure parameters within this
## package, follow these steps:
## * In the file package.xml:
## * add a build_depend and a run_depend tag for "dynamic_reconfigure"
## * In this file (CMakeLists.txt):
## * add "dynamic_reconfigure" to
## find_package(catkin REQUIRED COMPONENTS ...)
## * uncomment the "generate_dynamic_reconfigure_options" section below
## and list every .cfg file to be processed
## Generate dynamic reconfigure parameters in the 'cfg' folder
# generate_dynamic_reconfigure_options(
# cfg/DynReconf1.cfg
# cfg/DynReconf2.cfg
# )
###################################
## catkin specific configuration ##
...
...
@@ -102,80 +21,12 @@ catkin_package(
# DEPENDS system_lib
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
## Declare a C++ library
# add_library(sepp_bringup
# src/${PROJECT_NAME}/sepp_bringup.cpp
# )
## Add cmake target dependencies of the library
## as an example, code may need to be generated before libraries
## either from message generation or dynamic reconfigure
# add_dependencies(sepp_bringup ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## Declare a C++ executable
# add_executable(sepp_bringup_node src/sepp_bringup_node.cpp)
## Add cmake target dependencies of the executable
## same as for the library above
# add_dependencies(sepp_bringup_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## Specify libraries to link a library or executable target against
# target_link_libraries(sepp_bringup_node
# ${catkin_LIBRARIES}
# )
#############
## Install ##
#############
# all install targets should use catkin DESTINATION variables
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
## Mark executable scripts (Python etc.) for installation
## in contrast to setup.py, you can choose the destination
# install(PROGRAMS
# scripts/my_python_script
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
## Mark executables and/or libraries for installation
# install(TARGETS sepp_bringup sepp_bringup_node
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
## Mark cpp header files for installation
# install(DIRECTORY include/${PROJECT_NAME}/
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
# FILES_MATCHING PATTERN "*.h"
# PATTERN ".svn" EXCLUDE
# )
## Mark other files for installation (e.g. launch and bag files, etc.)
# install(FILES
# # myfile1
# # myfile2
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
# )
#############
## Testing ##
#############
## Add gtest based cpp test target and link libraries
# catkin_add_gtest(${PROJECT_NAME}-test test/test_sepp_bringup.cpp)
# if(TARGET ${PROJECT_NAME}-test)
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
# endif()
## Add folders to be run by python nosetests
# catkin_add_nosetests(test)
## Mark launch files for installation
install
(
DIRECTORY launch urdf
DESTINATION
${
CATKIN_PACKAGE_SHARE_DESTINATION
}
)
\ No newline at end of file
emros_bringup/launch/emros_bringup.launch
View file @
9446cff8
...
...
@@ -3,7 +3,7 @@
<launch>
<!-- DISPATCHER -->
<arg
name=
"IP_EM5"
value=
"192.168.60.
223
"
/>
<arg
name=
"IP_EM5"
value=
"192.168.60.
142
"
/>
<arg
name=
"Port_EM5"
value=
"65000"
/>
<include
file=
"$(find emros_dispatcher)/launch/dispatcher.launch"
>
...
...
emros_common
@
e46ba29f
Subproject commit e
760644f8625a2f7dd70986657fe601a2a7e1cb0
Subproject commit e
46ba29f56099a94fef526ebb82dffbcbec4c14a
emros_dispatcher/CMakeLists.txt
View file @
9446cff8
...
...
@@ -5,8 +5,6 @@ project(emros_dispatcher)
add_definitions
(
-std=c++11
)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package
(
catkin REQUIRED COMPONENTS
roscpp
message_generation
...
...
@@ -14,90 +12,27 @@ find_package(catkin REQUIRED COMPONENTS
emros_common
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()
################################################
## Declare ROS messages, services and actions ##
################################################
## To declare and build messages, services or actions from within this
## package, follow these steps:
## * Let MSG_DEP_SET be the set of packages whose message types you use in
## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
## * In the file package.xml:
## * add a build_depend tag for "message_generation"
## * add a build_depend and a run_depend tag for each package in MSG_DEP_SET
## * If MSG_DEP_SET isn't empty the following dependency has been pulled in
## but can be declared for certainty nonetheless:
## * add a run_depend tag for "message_runtime"
## * In this file (CMakeLists.txt):
## * add "message_generation" and every package in MSG_DEP_SET to
## find_package(catkin REQUIRED COMPONENTS ...)
## * add "message_runtime" and every package in MSG_DEP_SET to
## catkin_package(CATKIN_DEPENDS ...)
## * uncomment the add_*_files sections below as needed
## and list every .msg/.srv/.action file to be processed
## * uncomment the generate_messages entry below
## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)
## Generate messages in the 'msg' folder
add_message_files
(
FILES
eth.msg
# Message1.msg
# Message2.msg
FILES
eth.msg
)
## Generate services in the 'srv' folder
# add_service_files(
# FILES
# Service1.srv
# Service2.srv
# )
## Generate actions in the 'action' folder
# add_action_files(
# FILES
# Action1.action
# Action2.action
# )
## Generate added messages and services with any dependencies listed here
generate_messages
(
DEPENDENCIES
std_msgs
# Or other packages containing msgs
)
################################################
## Declare ROS dynamic reconfigure parameters ##
################################################
DEPENDENCIES
std_msgs
)
## To declare and build dynamic reconfigure parameters within this
## package, follow these steps:
## * In the file package.xml:
## * add a build_depend and a run_depend tag for "dynamic_reconfigure"
## * In this file (CMakeLists.txt):
## * add "dynamic_reconfigure" to
## find_package(catkin REQUIRED COMPONENTS ...)
## * uncomment the "generate_dynamic_reconfigure_options" section below
## and list every .cfg file to be processed
## Generate dynamic reconfigure parameters in the 'cfg' folder
# generate_dynamic_reconfigure_options(
# cfg/DynReconf1.cfg
# cfg/DynReconf2.cfg
# )
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
...
...
@@ -105,43 +40,25 @@ find_package(catkin REQUIRED COMPONENTS
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package
(
INCLUDE_DIRS include
# LIBRARIES dispatcher
# CATKIN_DEPENDS other_catkin_pkg
# DEPENDS system_lib
CATKIN_DEPENDS message_runtime std_msgs
INCLUDE_DIRS include
CATKIN_DEPENDS message_runtime std_msgs
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories
(
include
${
catkin_INCLUDE_DIRS
}
)
## Add cmake target dependencies of the library
## as an example, code may need to be generated before libraries
## either from message generation or dynamic reconfigure
# add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
include_directories
(
include
${
catkin_INCLUDE_DIRS
}
)
## Declare a C++ executable
## With catkin_make all packages are built within a single CMake context
## The recommended prefix ensures that target names across packages don't collide
add_executable
(
${
PROJECT_NAME
}
_node src/dispatcher.cpp src/udpsocket.cpp
)
## Rename C++ executable without prefix
## The above recommended prefix causes long target names, the following renames the
## target back to the shorter version for ease of user use
## e.g. "rosrun someones_pkg node" instead of "rosrun someones_pkg someones_pkg_node"
# set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME node PREFIX "")
## Add cmake target dependencies of the executable
## same as for the library above
add_dependencies
(
${
PROJECT_NAME
}
_node
${${
PROJECT_NAME
}
_EXPORTED_TARGETS
}
${
catkin_EXPORTED_TARGETS
}
)
## Specify libraries to link a library or executable target against
...
...
@@ -149,76 +66,22 @@ target_link_libraries(${PROJECT_NAME}_node
${
catkin_LIBRARIES
}
)
#add_executable(dispatcher src/dispatcher.cpp src/udpsocket.cpp ../utility_ofc/src/ethprotocol.cpp ../utility_ofc/src/crc16.cpp)
#add_dependencies(dispatcher ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
#target_link_libraries(dispatcher ${catkin_LIBRARIES} )
## Declare a C++ library
# add_library(sepp_dispatcher
# src/${PROJECT_NAME}/sepp_dispatcher.cpp
# )
## Add cmake target dependencies of the library
## as an example, code may need to be generated before libraries
## either from message generation or dynamic reconfigure
# add_dependencies(sepp_dispatcher ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## Declare a C++ executable
# add_executable(sepp_dispatcher_node src/dispatcher_node.cpp)
## Add cmake target dependencies of the executable
## same as for the library above
# add_dependencies(dispatcher_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## Specify libraries to link a library or executable target against
# target_link_libraries(dispatcher_node
# ${catkin_LIBRARIES}
# )
#############
## Install ##
#############
# all install targets should use catkin DESTINATION variables
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
## Mark executable scripts (Python etc.) for installation
## in contrast to setup.py, you can choose the destination
# install(PROGRAMS
# scripts/my_python_script
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
## Mark executables and/or libraries for installation
# install(TARGETS sepp_dispatcher dispatcher_node
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
install
(
TARGETS
${
PROJECT_NAME
}
_node
RUNTIME DESTINATION
${
CATKIN_PACKAGE_BIN_DESTINATION
}
)
## Mark cpp header files for installation
# install(DIRECTORY include/${PROJECT_NAME}/
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
# FILES_MATCHING PATTERN "*.h"
# PATTERN ".svn" EXCLUDE
# )
## Mark other files for installation (e.g. launch and bag files, etc.)
# install(FILES
# # myfile1
# # myfile2
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
# )
#############
## Testing ##
#############
## Add gtest based cpp test target and link libraries
# catkin_add_gtest(${PROJECT_NAME}-test test/test_dispatcher.cpp)
# if(TARGET ${PROJECT_NAME}-test)
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
# endif()
install
(
DIRECTORY include/
${
PROJECT_NAME
}
/
DESTINATION
${
CATKIN_PACKAGE_INCLUDE_DESTINATION
}
)
## Add folders to be run by python nosetests
# catkin_add_nosetests(test)
## Mark launch files for installation
install
(
DIRECTORY launch
DESTINATION
${
CATKIN_PACKAGE_SHARE_DESTINATION
}
)
\ No newline at end of file
emros_dispatcher/include/dispatcher.h
→
emros_dispatcher/include/
emros_dispatcher/
dispatcher.h
View file @
9446cff8
...
...
@@ -11,12 +11,12 @@
#include "ros/ros.h"
#include <signal.h>
#include "emros_dispatcher/eth.h"
#include "ethprotocol.h"
#include "emros_commands.h"
#include "
utility_ofc/
ethprotocol.h"
#include "emros_comm
on/emros_comm
ands.h"
#include "udpsocket.h"
#include "iostream"
#include "timeout.h"
#include
<leaky_bucket_timeout.h>
#include "
utility_ofc/
timeout.h"
#include
"utility_ofc/leaky_bucket_timeout.h"
#include <boost/shared_ptr.hpp>
#include <boost/thread.hpp>
...
...
emros_dispatcher/include/udpsocket.h
→
emros_dispatcher/include/
emros_dispatcher/
udpsocket.h
View file @
9446cff8
...
...
@@ -21,7 +21,7 @@
#include <fcntl.h>
#include "ros/ros.h"
#include "ethprotocol.h"
#include "
utility_ofc/
ethprotocol.h"
...
...
emros_dispatcher/src/dispatcher.cpp
View file @
9446cff8
...
...
@@ -5,7 +5,7 @@
* Author: speckle_s
*/
#include "dispatcher.h"
#include "
../include/emros_dispatcher/
dispatcher.h"
Dispatcher
*
Dispatcher
::
me
;