Skip to content

Commit 012cc67

Browse files
committed
R1SN003nws:
* added odometry devices * fixed lidar actions level in yarprobotinterface
1 parent 69fcaec commit 012cc67

File tree

9 files changed

+54
-32
lines changed

9 files changed

+54
-32
lines changed

R1SN003nws/CER.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
<robot name="R1SN003" build="1" portprefix="cer" xmlns:xi="http://www.w3.org/2001/XInclude">
55
<devices>
66

7+
<!-- ODOMETRY -->
8+
<xi:include href="wrappers/odometry/odometry_nws_yarp.xml" />
9+
<xi:include href="wrappers/odometry/odometry_nws_ros.xml" />
10+
<xi:include href="hardware/odometry/odometry.xml" />
11+
712
<!-- LASER -->
813
<xi:include href="hardware/rpLidar/laserA3_hw_back.xml" />
914
<xi:include href="wrappers/rpLidar/laser_back_nws_yarp.xml" />
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE devices PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">
3+
4+
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="cer_odometry" type="cerOdometry">
5+
<param name="geom_r"> 10 </param>
6+
<param name="geom_l"> 10 </param>
7+
8+
<action phase="startup" level="20" type="attach">
9+
<param name="device"> cer_mobile_base_mc_remapper </param>
10+
</action>
11+
<action phase="shutdown" level="5" type="detach" />
12+
</device>

R1SN003nws/hardware/rpLidar/laserA3_hw_double.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
<param name="allow_infinity"> 1 </param>
2121
</group>
2222

23-
<action phase="startup" level="3" type="attach">
23+
<action phase="startup" level="5" type="attach">
2424
<paramlist name="networks">
2525
<elem name="L_Front"> cer_laser_front_device </elem>
2626
<elem name="L_Back"> cer_laser_back_device </elem>
2727
</paramlist>
2828
</action>
2929

30-
<action phase="shutdown" level="3" type="detach"/>
30+
<action phase="shutdown" level="20" type="detach"/>
3131

3232
</device>
3333

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE devices PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">
3+
4+
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="cer_odometry_nws_ros" type="odometry2D_nws_ros">
5+
<param name="topic_name"> /odometry </param>
6+
<param name="node_name"> /cer_odometry_nws_ros </param>
7+
<param name="base_frame"> mobile_base_link </param>
8+
<param name="odom_frame"> odometry </param>
9+
10+
<action phase="startup" level="10" type="attach">
11+
<param name="device"> cer_odometry </param>
12+
</action>
13+
<action phase="shutdown" level="15" type="detach" />
14+
</device>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE devices PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd">
3+
4+
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="cer_odometry_nws_yarp" type="odometry2D_nws_yarp">
5+
<param name="odometry_port_name"> /cer/odometry </param>
6+
<param name="odometer_port_name"> /cer/odometer </param>
7+
<param name="velocity_port_name"> /cer/velocity </param>
8+
9+
<action phase="startup" level="10" type="attach">
10+
<param name="device"> cer_odometry </param>
11+
</action>
12+
<action phase="shutdown" level="15" type="detach" />
13+
</device>

R1SN003nws/wrappers/rpLidar/laser_back_nws_yarp.xml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,12 @@
55
<param name="period"> 0.01 </param>
66
<param name="name"> /cer/laser/back:o </param>
77

8-
<action phase="startup" level="5" type="attach">
8+
<action phase="startup" level="10" type="attach">
99
<paramlist name="networks">
1010
<elem name="cer_laser"> cer_laser_back_device </elem>
1111
</paramlist>
1212
</action>
1313

14-
<group name ="ROS">
15-
<param name ="useROS"> true </param>
16-
<param name ="ROS_nodeName"> /cer-laserBack </param>
17-
<param name ="ROS_topicName"> /laserBack </param>
18-
<param name ="frame_id"> mobile_base_lidar_B </param>>
19-
20-
</group>
21-
22-
<action phase="shutdown" level="5" type="detach" />
14+
<action phase="shutdown" level="15" type="detach" />
2315
</device>
2416

R1SN003nws/wrappers/rpLidar/laser_double_nws_ros.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<param name="period"> 0.01 </param>
66
<param name="name"> /cer/laser:o </param>
77

8-
<action phase="startup" level="6" type="attach">
8+
<action phase="startup" level="10" type="attach">
99
<paramlist name="networks">
1010
<elem name="cer_laser"> cer_double_laser_device </elem>
1111
</paramlist>
@@ -15,6 +15,6 @@
1515
<param name ="topic_name"> /laser</param>
1616
<param name ="frame_id"> mobile_base_double_lidar </param>
1717

18-
<action phase="shutdown" level="5" type="detach" />
18+
<action phase="shutdown" level="15" type="detach" />
1919
</device>
2020

R1SN003nws/wrappers/rpLidar/laser_double_nws_yarp.xml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,12 @@
55
<param name="period"> 0.01 </param>
66
<param name="name"> /cer/laser:o </param>
77

8-
<action phase="startup" level="6" type="attach">
8+
<action phase="startup" level="10" type="attach">
99
<paramlist name="networks">
1010
<elem name="cer_laser"> cer_double_laser_device </elem>
1111
</paramlist>
1212
</action>
1313

14-
<group name ="ROS">
15-
<param name ="useROS"> true </param>
16-
<param name ="ROS_nodeName"> /cer-laser </param>
17-
<param name ="ROS_topicName"> /laser</param>
18-
<param name ="frame_id"> mobile_base_double_lidar </param>
19-
</group>
20-
21-
<action phase="shutdown" level="5" type="detach" />
14+
<action phase="shutdown" level="15" type="detach" />
2215
</device>
2316

R1SN003nws/wrappers/rpLidar/laser_front_nws_yarp.xml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,12 @@
55
<param name="period"> 0.01 </param>
66
<param name="name"> /cer/laser/front:o </param>
77

8-
<action phase="startup" level="5" type="attach">
8+
<action phase="startup" level="10" type="attach">
99
<paramlist name="networks">
1010
<elem name="cer_laser"> cer_laser_front_device </elem>
1111
</paramlist>
1212
</action>
1313

14-
<group name ="ROS">
15-
<param name ="useROS"> true </param>
16-
<param name ="ROS_nodeName"> /cer-laserFront </param>
17-
<param name ="ROS_topicName"> /laserFront </param>
18-
<param name ="frame_id"> mobile_base_lidar_F </param>
19-
</group>
20-
21-
<action phase="shutdown" level="5" type="detach" />
14+
<action phase="shutdown" level="15" type="detach" />
2215
</device>
2316

0 commit comments

Comments
 (0)