Skip to content

Commit

Permalink
added ros2 nws for the battery to R1SN003 (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
ste93 committed May 7, 2024
1 parent f3cb9d6 commit b33e0a5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions R1SN003/CER.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@

<!-- BATTERY -->
<xi:include href="wrappers/battery/r1battery.xml" />
<xi:include href="wrappers/battery/r1battery_nws_ros2.xml" />
<xi:include href="hardware/battery/r1battery.xml" />

</devices>
Expand Down
17 changes: 17 additions & 0 deletions R1SN003/wrappers/battery/r1battery_nws_ros2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>

<device xmlns:xi="http://www.w3.org/2001/XInclude" name="r1_battery-nws_ros2" type="battery_nws_ros2">

<param name="period"> 1.0 </param>
<param name="node_name"> cer_battery_node_ros2 </param>
<param name="topic_name"> /battery_status </param>

<action phase="startup" level="5" type="attach">
<paramlist name="networks">
<elem name="r1battery"> r1battery </elem>
</paramlist>
</action>

<action phase="shutdown" level="5" type="detach" />
</device>

0 comments on commit b33e0a5

Please sign in to comment.