Skip to content

Commit

Permalink
Merge pull request #111 from k-okada/hrpEC_with_hrpIo_gazebo
Browse files Browse the repository at this point in the history
compile hrpEC liked with hrpIo_gazebo
  • Loading branch information
YoheiKakiuchi committed Sep 29, 2014
2 parents b25f2ef + 9b84e3b commit 16c7e00
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
24 changes: 12 additions & 12 deletions .rosinstall
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
- git:
uri: https://github.com/start-jsk/hrpsys
local-name: rtm-ros-robotics/openrtm_common/hrpsys
- git:
uri: https://github.com/start-jsk/rtshell_core
local-name: rtm-ros-robotics/openrtm_common/rtshell_core
- git:
uri: https://github.com/jsk-ros-pkg/jsk_common
local-name: jsk-ros-pkg/jsk_common
- git:
uri: https://github.com/jsk-ros-pkg/jsk_recognition
local-name: jsk-ros-pkg/jsk_recognition
## - git:
## uri: https://github.com/start-jsk/rtshell_core
## local-name: rtm-ros-robotics/openrtm_common/rtshell_core
## - git:
## uri: https://github.com/jsk-ros-pkg/jsk_common
## local-name: jsk-ros-pkg/jsk_common
## - git:
## uri: https://github.com/jsk-ros-pkg/jsk_recognition
## local-name: jsk-ros-pkg/jsk_recognition
- git:
uri: https://github.com/jsk-ros-pkg/jsk_model_tools
local-name: jsk-ros-pkg/jsk_model_tools
- git:
uri: https://github.com/jsk-ros-pkg/jsk_roseus
local-name: jsk-ros-pkg/jsk_roseus
## - git:
## uri: https://github.com/jsk-ros-pkg/jsk_roseus
## local-name: jsk-ros-pkg/jsk_roseus
- svn:
uri: https://svn.code.sf.net/p/jsk-ros-pkg/code/trunk/openrave_planning/collada_robots
local-name: jsk-ros-pkg/collada_robots
Expand Down
2 changes: 1 addition & 1 deletion .travis
Submodule .travis updated 3 files
+18 −0 .travis.yml
+8 −0 rosdep-install.sh
+6 −4 travis.sh
2 changes: 2 additions & 0 deletions hrpsys_gazebo_general/catkin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ pkg_check_modules(openhrp3 openhrp3.1 REQUIRED)
pkg_check_modules(hrpsys hrpsys-base REQUIRED)
if(EXISTS ${hrpsys_SOURCE_DIR})
set(ROBOTHARDWARE_SOURCE ${hrpsys_SOURCE_DIR}/src/rtc/RobotHardware)
set(HRPEC_SOURCE ${hrpsys_SOURCE_DIR}/src/ec/hrpEC)
else()
set(ROBOTHARDWARE_SOURCE ${hrpsys_PREFIX}/share/hrpsys/src/rtc/RobotHardware)
set(HRPEC_SOURCE ${hrpsys_PREFIX}/share/hrpsys/src/ec/hrpEC)
endif()
include_directories(${catkin_INCLUDE_DIRS} ${openrtm_aist_INCLUDE_DIRS} ${openhrp3_INCLUDE_DIRS} ${hrpsys_INCLUDE_DIRS})
link_directories(${CATKIN_DEVEL_PREFIX}/lib ${hrpsys_PREFIX}/lib ${openhrp3_LIBRARY_DIRS} /opt/ros/$ENV{ROS_DISTRO}/lib/)
Expand Down
10 changes: 9 additions & 1 deletion hrpsys_gazebo_general/iob/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ add_executable(RobotHardwareComp_gazebo ${ROBOTHARDWARE_SOURCE}/RobotHardwareCom
target_link_libraries(RobotHardwareComp_gazebo ${libs} ${omniorb_LIBRARIES} ${omnidynamic_LIBRARIES} RTC coil)
set_target_properties(RobotHardwareComp_gazebo PROPERTIES OUTPUT_NAME RobotHardwareComp)

install(TARGETS RobotHardwareComp_gazebo RobotHardware_gazebo hrpIo_gazebo
add_library(hrpEC_gazebo SHARED ${HRPEC_SOURCE}/hrpEC.cpp ${HRPEC_SOURCE}/hrpEC-common.cpp)
target_link_libraries(hrpEC_gazebo hrpIo_gazebo hrpsysBaseStub)
set_target_properties(hrpEC_gazebo PROPERTIES PREFIX "")
set_target_properties(hrpEC_gazebo PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
set_target_properties(hrpEC_gazebo PROPERTIES OUTPUT_NAME hrpEC)
set_target_properties(hrpEC_gazebo PROPERTIES COMPILE_DEFINITIONS "OPENRTM_VERSION110")


install(TARGETS RobotHardwareComp_gazebo RobotHardware_gazebo hrpEC_gazebo hrpIo_gazebo
RUNTIME DESTINATION bin CONFIGURATIONS Release Debug
LIBRARY DESTINATION lib CONFIGURATIONS Release Debug
)
Expand Down

0 comments on commit 16c7e00

Please sign in to comment.