Skip to content

Commit

Permalink
feat(autoware_v2x_msgs): add virtual gate messages
Browse files Browse the repository at this point in the history
Signed-off-by: Takagi, Isamu <[email protected]>
  • Loading branch information
isamu-takagi committed Dec 7, 2023
1 parent 2096152 commit be415fa
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 0 deletions.
24 changes: 24 additions & 0 deletions autoware_v2x_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cmake_minimum_required(VERSION 3.14)
project(autoware_v2x_msgs)

find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/VirtualGateAreaCommand.msg"
"msg/VirtualGateAreaStatus.msg"
"msg/VirtualGateCommand.msg"
"msg/VirtualGateStatus.msg"
"msg/VirtualGateVehicleInfo.msg"
DEPENDENCIES
builtin_interfaces
geometry_msgs
unique_identifier_msgs
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package()
5 changes: 5 additions & 0 deletions autoware_v2x_msgs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# autoware_v2x_msgs

## Virtual gate messages

WIP
11 changes: 11 additions & 0 deletions autoware_v2x_msgs/msg/VirtualGateAreaCommand.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# constants for command
uint16 ACQUIRE = 1
uint16 RELEASE = 2

uint16 command
uint16 sequence
string type
string id
string[] gates

builtin_interfaces/Time[<=1] expected_time_arrival
15 changes: 15 additions & 0 deletions autoware_v2x_msgs/msg/VirtualGateAreaStatus.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# constants for status
uint16 RESERVED = 1
uint16 ACQUIRED = 2
uint16 RELEASED = 3

uint16 status
uint16 sequence
string type
string id
string[] gates

builtin_interfaces/Time[<=1] expected_time_arrival

builtin_interfaces/Time stamp
unique_identifier_msgs/UUID vehicle
3 changes: 3 additions & 0 deletions autoware_v2x_msgs/msg/VirtualGateCommand.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
builtin_interfaces/Time stamp
autoware_v2x_msgs/VirtualGateAreaCommand[] areas
autoware_v2x_msgs/VirtualGateVehicleInfo vehicle
2 changes: 2 additions & 0 deletions autoware_v2x_msgs/msg/VirtualGateStatus.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
builtin_interfaces/Time stamp
autoware_v2x_msgs/VirtualGateAreaStatus[] areas
2 changes: 2 additions & 0 deletions autoware_v2x_msgs/msg/VirtualGateVehicleInfo.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
unique_identifier_msgs/UUID uuid
geometry_msgs/PoseStamped[<=1] pose
28 changes: 28 additions & 0 deletions autoware_v2x_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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>autoware_v2x_msgs</name>
<version>1.0.0</version>
<description>Autoware common messages package.</description>
<maintainer email="[email protected]">Takagi, Isamu</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake_auto</buildtool_depend>

<build_depend>rosidl_default_generators</build_depend>

<depend>builtin_interfaces</depend>
<depend>geometry_msgs</depend>
<depend>unique_identifier_msgs</depend>

<exec_depend>rosidl_default_runtime</exec_depend>

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

<member_of_group>rosidl_interface_packages</member_of_group>

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

0 comments on commit be415fa

Please sign in to comment.