-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into maint/hybridize_delphi_srr
- Loading branch information
Showing
72 changed files
with
628 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,99 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(derived_object_msgs) | ||
|
||
find_package(catkin REQUIRED | ||
COMPONENTS | ||
message_generation | ||
std_msgs | ||
geometry_msgs | ||
shape_msgs | ||
radar_msgs | ||
) | ||
set(ROS_VERSION $ENV{ROS_VERSION}) | ||
|
||
## Declare ROS messages and services | ||
add_message_files(DIRECTORY msg FILES | ||
CipvTrack.msg | ||
LaneModels.msg | ||
Lane.msg | ||
ObjectArray.msg | ||
Object.msg | ||
ObjectWithCovarianceArray.msg | ||
ObjectWithCovariance.msg | ||
SolidPrimitiveWithCovariance.msg | ||
set(MSG_FILES | ||
"CipvTrack.msg" | ||
"Lane.msg" | ||
"LaneModels.msg" | ||
"Object.msg" | ||
"ObjectArray.msg" | ||
"ObjectWithCovariance.msg" | ||
"ObjectWithCovarianceArray.msg" | ||
"SolidPrimitiveWithCovariance.msg" | ||
) | ||
|
||
## Generate added messages and services | ||
generate_messages(DEPENDENCIES | ||
std_msgs | ||
geometry_msgs | ||
shape_msgs | ||
radar_msgs | ||
) | ||
if(${ROS_VERSION} EQUAL 1) | ||
|
||
## Declare a catkin package | ||
catkin_package(CATKIN_DEPENDS | ||
message_runtime | ||
std_msgs | ||
geometry_msgs | ||
shape_msgs | ||
radar_msgs | ||
) | ||
cmake_minimum_required(VERSION 2.8.3) | ||
|
||
# Default to C++11 | ||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 11) | ||
endif() | ||
|
||
find_package(catkin REQUIRED | ||
COMPONENTS | ||
geometry_msgs | ||
message_generation | ||
radar_msgs | ||
shape_msgs | ||
std_msgs | ||
) | ||
|
||
add_message_files(FILES | ||
${MSG_FILES} | ||
DIRECTORY msg | ||
) | ||
|
||
generate_messages( | ||
DEPENDENCIES | ||
geometry_msgs | ||
radar_msgs | ||
shape_msgs | ||
std_msgs | ||
) | ||
|
||
catkin_package( | ||
CATKIN_DEPENDS message_runtime | ||
) | ||
|
||
elseif(${ROS_VERSION} EQUAL 2) | ||
|
||
cmake_minimum_required(VERSION 3.5) | ||
|
||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_STANDARD 14) | ||
endif() | ||
|
||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
|
||
find_package(ament_cmake REQUIRED) | ||
find_package(builtin_interfaces REQUIRED) | ||
find_package(geometry_msgs REQUIRED) | ||
find_package(radar_msgs REQUIRED) | ||
find_package(rosidl_default_generators REQUIRED) | ||
find_package(shape_msgs REQUIRED) | ||
find_package(std_msgs REQUIRED) | ||
|
||
# Apend "msg/" to each file name | ||
set(TEMP_LIST "") | ||
foreach(MSG_FILE ${MSG_FILES}) | ||
list(APPEND TEMP_LIST "msg/${MSG_FILE}") | ||
endforeach() | ||
set(MSG_FILES ${TEMP_LIST}) | ||
|
||
rosidl_generate_interfaces(${PROJECT_NAME} | ||
${MSG_FILES} | ||
DEPENDENCIES | ||
builtin_interfaces | ||
geometry_msgs | ||
shape_msgs | ||
std_msgs | ||
radar_msgs | ||
ADD_LINTER_TESTS | ||
) | ||
|
||
ament_export_dependencies(rosidl_default_runtime) | ||
|
||
if(BUILD_TESTING) | ||
find_package(ament_lint_auto REQUIRED) | ||
ament_lint_auto_find_test_dependencies() | ||
endif() | ||
|
||
ament_package() | ||
|
||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Header header | ||
std_msgs/Header header | ||
|
||
Object[] objects | ||
derived_object_msgs/Object[] objects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Header header | ||
std_msgs/Header header | ||
|
||
derived_object_msgs/ObjectWithCovariance[] objects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.