Skip to content

Commit

Permalink
changed CAN frame message to conform with external naming so that top…
Browse files Browse the repository at this point in the history
…ic type will match
  • Loading branch information
dmkamrath committed Sep 15, 2023
1 parent ae9c0f1 commit 47f4f52
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 1 deletion.
1 change: 0 additions & 1 deletion autonoma_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ find_package(std_msgs REQUIRED)
set(MSG_DEPS std_msgs)

set(MSG_FILES
"msg/CanFrame.msg"
"msg/PowertrainData.msg"
"msg/RaceControl.msg"
"msg/ToRaptor.msg"
Expand Down
35 changes: 35 additions & 0 deletions can_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
cmake_minimum_required(VERSION 3.5)
project(can_msgs)

# Default to C99
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
endif()

# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
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 dependencies
find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(std_msgs REQUIRED)

set(MSG_DEPS std_msgs)

set(MSG_FILES
"msg/Frame.msg"
)

rosidl_generate_interfaces(${PROJECT_NAME}
${MSG_FILES}
DEPENDENCIES ${MSG_DEPS}
)

ament_export_dependencies(rosidl_default_runtime)
ament_package()
File renamed without changes.
27 changes: 27 additions & 0 deletions can_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>can_msgs</name>
<version>0.1.0</version>
<description>ROS2 custom message package with CAN message for the Autonoma AutoVerse</description>
<maintainer email="[email protected]">root</maintainer>
<license>Autonoma EULA "LICENSE"</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<depend>std_msgs</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>

<build_depend>rosidl_default_generators</build_depend>

<exec_depend>rosidl_default_runtime</exec_depend>

<member_of_group>rosidl_interface_packages</member_of_group>
</package>

0 comments on commit 47f4f52

Please sign in to comment.