Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions ros2launch_security_examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,15 @@ rclcpp_components_register_node(fake_imu_library
PLUGIN "ros2launch_security_examples::FakeImu"
EXECUTABLE fake_imu
)
# TODO(wjwwood): go back to organizing these into a nodl folder when this is fixed:
# https://github.com/ubuntu-robotics/nodl/issues/41
# nodl_export_node_description_file(nodl/fake_imu.nodl.xml)
Comment thread
wjwwood marked this conversation as resolved.
nodl_export_node_description_file(fake_imu.nodl.xml)
ament_nodl_register(fake_imu FILE nodl/fake_imu.nodl.yaml)

add_library(imu_sink_library SHARED src/imu_sink.cpp)
ament_target_dependencies(imu_sink_library rclcpp rclcpp_components sensor_msgs example_interfaces)
rclcpp_components_register_node(imu_sink_library
PLUGIN "ros2launch_security_examples::ImuSink"
EXECUTABLE imu_sink
)
# TODO(wjwwood): go back to organizing these into a nodl folder when this is fixed:
# https://github.com/ubuntu-robotics/nodl/issues/41
# nodl_export_node_description_file(nodl/imu_sink.nodl.xml)
nodl_export_node_description_file(imu_sink.nodl.xml)
ament_nodl_register(imu_sink FILE nodl/imu_sink.nodl.yaml)

install(
TARGETS
Expand Down
6 changes: 0 additions & 6 deletions ros2launch_security_examples/fake_imu.nodl.xml

This file was deleted.

6 changes: 0 additions & 6 deletions ros2launch_security_examples/imu_sink.nodl.xml

This file was deleted.

14 changes: 14 additions & 0 deletions ros2launch_security_examples/nodl/fake_imu.nodl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
nodl_version: 2
description: Fake IMU node that periodically publishes synthetic IMU messages.
publishers:
- name: imu
type: sensor_msgs/msg/Imu
qos:
history: KEEP_LAST
depth: 10
reliability: RELIABLE
durability: VOLATILE
service_servers:
- name: reset_imu
type: example_interfaces/srv/Trigger
14 changes: 14 additions & 0 deletions ros2launch_security_examples/nodl/imu_sink.nodl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
nodl_version: 2
description: Sink node that subscribes to the fake IMU messages and can reset the IMU.
subscriptions:
- name: imu
type: sensor_msgs/msg/Imu
qos:
history: KEEP_LAST
depth: 10
reliability: RELIABLE
durability: VOLATILE
service_clients:
- name: reset_imu
type: example_interfaces/srv/Trigger