Skip to content

Commit

Permalink
Merge pull request #115 from danthony06/add_ros2_introspection_msgs
Browse files Browse the repository at this point in the history
Add ros2 introspection Messages
  • Loading branch information
danthony06 authored Nov 17, 2021
2 parents 4c0db28 + 16b72b0 commit 3463ba0
Show file tree
Hide file tree
Showing 15 changed files with 158 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ msg_gen
srv_gen
src
version.txt
**/*.swp
2 changes: 1 addition & 1 deletion marti_can_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<package format="3">
<name>marti_can_msgs</name>
<version>1.2.0</version>
<version>1.3.0</version>
<description>

marti_can_msgs
Expand Down
2 changes: 1 addition & 1 deletion marti_common_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<package format="3">
<name>marti_common_msgs</name>
<version>1.2.0</version>
<version>1.3.0</version>
<description>

marti_common_msgs
Expand Down
2 changes: 1 addition & 1 deletion marti_dbw_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<package format="3">
<name>marti_dbw_msgs</name>
<version>1.2.0</version>
<version>1.3.0</version>
<description>

marti_dbw_msgs
Expand Down
24 changes: 24 additions & 0 deletions marti_introspection_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cmake_minimum_required(VERSION 3.10.0)
project(marti_introspection_msgs)

set(CMAKE_CXX_STANDARD 14)

find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(builtin_interfaces REQUIRED)

set(MSG_FILES
msg/NodeInfo.msg
msg/ParamInfo.msg
msg/TopicInfo.msg
msg/ServiceInfo.msg
)

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

ament_export_dependencies(rosidl_default_runtime)
ament_package()

22 changes: 22 additions & 0 deletions marti_introspection_msgs/msg/NodeInfo.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This message contains documentation data about a specific node

# The fully qualified node name
string name

# The location the node handle is constructed
string location

# The name of the nodelet manager this is running in, if any
string nodelet_manager

# A human readable description of the node
string description

# A list of each topic used in the node
TopicInfo[] topics

# A list of each parameter used in the node
ParamInfo[] parameters

# A list of each service used in the node
ServiceInfo[] services
37 changes: 37 additions & 0 deletions marti_introspection_msgs/msg/ParamInfo.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This message contains documentation data about a parameter in a node
uint8 TYPE_XMLRPC=0
uint8 TYPE_DOUBLE=1
uint8 TYPE_STRING=2
uint8 TYPE_INT=3
uint8 TYPE_FLOAT=4
uint8 TYPE_BOOL=5

# The internal name of the parameter
string name

# The external, global name of the parameter
string resolved_name

# A description of the parameter and what it does
string description

# Used to group related components
string group

# The type of parameter using the enums above
uint8 type

# If the parameter is dynamic or not
bool dynamic

# Default values
int32 default_int
float32 default_float
float64 default_double
string default_string
bool default_bool

# Max and minimum values (may have rounding issues)
# Unused if both are 0.0
float64 max_value
float64 min_value
22 changes: 22 additions & 0 deletions marti_introspection_msgs/msg/ServiceInfo.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This message contains documentation data about a service client/server in a node

# The internal name of the service
string name

# The external, global name of the service
string resolved_name

# A human readable description of the service and how to use it
string description

# Used to group related components
string group

# The name of the message type
string message_type

# If this is a service server, otherwise it is a service client
bool server

# Indicates if this is a topic service rather than a true service
bool topic_service
19 changes: 19 additions & 0 deletions marti_introspection_msgs/msg/TopicInfo.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This message contains documentation data about a topic in a node

# The internal name of the topic
string name

# The external, global name of the topic
string resolved_name

# A human readable description of the topic and how to use it
string description

# Used to group related components
string group

# The name of the message type
string message_type

# If the topic is being advertised, otherwise it is being subscribed to
bool advertised
25 changes: 25 additions & 0 deletions marti_introspection_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<package format="3">
<name>marti_introspection_msgs</name>
<version>1.3.0</version>
<description>
marti_introspection_msgs
</description>
<author>Matthew Bries</author>
<maintainer email="[email protected]">Matthew Bries</maintainer>
<license>BSD</license>
<url>https://github.com/swri-robotics/marti_messages</url>

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

<depend>builtin_interfaces</depend>

<exec_depend>rosidl_default_runtime</exec_depend>

<member_of_group>rosidl_interface_packages</member_of_group>

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

2 changes: 1 addition & 1 deletion marti_nav_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<package format="3">
<name>marti_nav_msgs</name>
<version>1.2.0</version>
<version>1.3.0</version>
<description>

marti_nav_msgs
Expand Down
2 changes: 1 addition & 1 deletion marti_perception_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<package format="3">
<name>marti_perception_msgs</name>
<version>1.2.0</version>
<version>1.3.0</version>
<description>

marti_perception_msgs
Expand Down
2 changes: 1 addition & 1 deletion marti_sensor_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<package format="3">
<name>marti_sensor_msgs</name>
<version>1.2.0</version>
<version>1.3.0</version>
<description>

marti_sensor_msgs
Expand Down
2 changes: 1 addition & 1 deletion marti_status_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<package format="3">
<name>marti_status_msgs</name>
<version>1.2.0</version>
<version>1.3.0</version>
<description>

marti_status_msgs
Expand Down
2 changes: 1 addition & 1 deletion marti_visualization_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<package format="3">
<name>marti_visualization_msgs</name>
<version>1.2.0</version>
<version>1.3.0</version>
<description>

marti_visualization_msgs
Expand Down

0 comments on commit 3463ba0

Please sign in to comment.