diff --git a/.circleci/config.yml b/.circleci/config.yml index 1e1294f..dcc693b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,27 +1,28 @@ version: 2 jobs: - foxy: + noetic: docker: - - image: ros:foxy + - image: ros:noetic steps: - checkout - run: name: Set Up Container command: | - apt update -qq && apt install -y build-essential cmake python3-colcon-common-extensions python3-rosdep python3-pip - pip3 install --upgrade pytest + apt update -qq && apt install -y build-essential cmake python3-rosdep python3-catkin-tools python3-osrf-pycommon apt upgrade -y - source `find /opt/ros -maxdepth 2 -name local_setup.bash | sort | head -1` + source /opt/ros/*/setup.bash mkdir -p src/radar_msgs && mv `find -maxdepth 1 -not -name . -not -name src` src/radar_msgs/ rosdep update rosdep install -y --ignore-src --from-paths src + catkin init - run: name: Build command: | - source `find /opt/ros -maxdepth 2 -name local_setup.bash | sort | head -1` - colcon build --parallel-workers 1 + source /opt/ros/*/setup.bash + ls src/radar_msgs + catkin build workflows: version: 2 ros_build: jobs: - - foxy + - noetic diff --git a/CMakeLists.txt b/CMakeLists.txt index f581ac8..ec34ed7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,19 +1,16 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.0.2) project(radar_msgs) -find_package(ament_cmake REQUIRED) -find_package(builtin_interfaces REQUIRED) -find_package(rosidl_default_generators REQUIRED) -find_package(std_msgs REQUIRED) - -rosidl_generate_interfaces(${PROJECT_NAME} - "msg/RadarReturn.msg" - "msg/RadarScan.msg" - "msg/RadarTrack.msg" - "msg/RadarTracks.msg" - DEPENDENCIES builtin_interfaces std_msgs uuid_msgs geometry_msgs +set(ROSPKG_DEPS + "std_msgs" + "uuid_msgs" + "geometry_msgs" ) -ament_export_dependencies(rosidl_default_runtime) +find_package(catkin REQUIRED COMPONENTS message_generation ${ROSPKG_DEPS}) + +add_message_files(DIRECTORY msg) + +generate_messages(DEPENDENCIES ${ROSPKG_DEPS}) -ament_package() +catkin_package(CATKIN_DEPENDS message_runtime ${ROSPKG_DEPS}) diff --git a/package.xml b/package.xml index 5f39c56..f38a0fc 100644 --- a/package.xml +++ b/package.xml @@ -7,17 +7,17 @@ Steve Macenski Apache-2.0 - ament_cmake + catkin + + message_generation std_msgs uuid_msgs geometry_msgs - rosidl_default_generators - builtin_interfaces - rosidl_interface_packages + message_runtime - ament_cmake + catkin