31
31
SET(gazebo_support $ENV{GAZEBO})
32
32
MESSAGE("--------- Shadow Robot Package Configuration:")
33
IF(DEFINED gazebo_support)
34
34
SET( CMAKE_CXX_FLAGS "-D GAZEBO")
35
35
MESSAGE(" [x] Gazebo support")
36
ELSE(DEFINED gazebo_support)
37
37
MESSAGE(" [ ] Gazebo support")
38
ENDIF(DEFINED gazebo_support)
41
41
SET(real_hand $ENV{REAL_HAND})
43
43
MESSAGE(" [x] Real Hand.")
44
ELSE(DEFINED real_hand)
45
45
MESSAGE(" [ ] Real Hand.")
46
ENDIF(DEFINED real_hand)
49
49
SET(real_arm $ENV{REAL_ARM})
51
51
MESSAGE(" [x] Real Arm.")
52
ELSE(DEFINED real_arm)
53
53
MESSAGE(" [ ] Real Arm.")
54
ENDIF(DEFINED real_arm)
57
57
SET(valves $ENV{VALVES})
59
59
MESSAGE(" [x] Valves.")
61
61
MESSAGE(" [ ] Valves.")
63
63
MESSAGE("---------")
65
65
#EtherCAT compatibility Interface
66
66
SET(ethercat_compat $ENV{ETHERCAT})
67
IF(DEFINED ethercat_compat)
68
68
MESSAGE(" [x] EtherCAT compatibility interface.")
69
ELSE(DEFINED ethercat_compat)
70
70
MESSAGE(" [ ] EtherCAT compatibility interface.")
71
ENDIF(DEFINED ethercat_compat)
71
ENDIF(ethercat_compat)
103
103
rosbuild_add_executable(shadowhand_real src/hand/sr_articulated_robot.cpp src/hand/real_shadowhand.cpp src/sr_publisher.cpp src/sr_subscriber.cpp src/hand/real_shadowhand_node.cpp src/sr_diagnosticer.cpp)
104
104
rosbuild_link_boost(shadowhand_real thread)
105
105
target_link_libraries(shadowhand_real robot)
106
ENDIF(DEFINED real_hand)
108
108
#########################################
109
109
# ETHERCAT COMPATIBILITY WRAPPER HAND #
110
110
#########################################
111
IF(DEFINED ethercat_compat)
112
112
rosbuild_add_executable(shadowhand_ethercat src/hand/sr_articulated_robot.cpp src/hand/etherCAT_compatibility_hand.cpp src/sr_publisher.cpp src/sr_subscriber.cpp src/hand/etherCAT_compatibility_hand_node.cpp src/sr_diagnosticer.cpp)
113
rosbuild_add_executable(shadowarm_can src/hand/sr_articulated_robot.cpp src/hand/CAN_compatibility_arm.cpp src/sr_publisher.cpp src/sr_subscriber.cpp src/hand/CAN_compatibility_arm_node.cpp src/sr_diagnosticer.cpp)
114
113
rosbuild_link_boost(shadowhand_virtual thread)
115
ENDIF(DEFINED ethercat_compat)
114
ENDIF(ethercat_compat)
116
###################################
117
# CAN COMPATIBILITY WRAPPER ARM #
118
###################################
119
rosbuild_add_executable(shadowarm_can src/hand/sr_articulated_robot.cpp src/hand/CAN_compatibility_arm.cpp src/sr_publisher.cpp src/sr_subscriber.cpp src/hand/CAN_compatibility_arm_node.cpp)
117
122
##################
119
124
##################
121
126
include_directories(/usr/realtime/include/)
122
127
LINK_LIBRARIES(pthread)
123
128
rosbuild_add_executable(shadowarm_real src/hand/sr_articulated_robot.cpp src/hand/real_arm.cpp src/sr_publisher.cpp src/sr_subscriber.cpp src/hand/real_arm_node.cpp src/sr_diagnosticer.cpp)
124
129
rosbuild_link_boost(shadowarm_real thread)
125
130
target_link_libraries(shadowarm_real robot)
126
ENDIF(DEFINED real_arm)
128
133
##################
130
135
##################
132
137
include_directories(/usr/realtime/include/)
133
138
LINK_LIBRARIES(pthread)
134
139
rosbuild_add_executable(sr_valves src/hand/valves.cpp src/hand/valves_node.cpp)
135
140
rosbuild_link_boost(sr_valves thread)
136
141
target_link_libraries(sr_valves robot)
137
ENDIF(DEFINED valves)
139
144
#####################################
140
145
# dynamic parameters reconfigure #