2018-12-03 16:36:57 +01:00
|
|
|
<launch>
|
2018-12-18 19:00:19 +01:00
|
|
|
<!-- Defining the arguments -->
|
|
|
|
<arg name="HokuyoLaser" value="0" />
|
|
|
|
<arg name="SICKLMSLaser" value="1" />
|
|
|
|
<arg name="P2OS_Driver" value="1" />
|
|
|
|
<arg name="KeyboardTeleop" value="0" />
|
|
|
|
<arg name="JoystickTeleop" value="1" />
|
|
|
|
<arg name="Transform" value="1" />
|
|
|
|
<arg name="Dashboard" value="0" />
|
|
|
|
<arg name="enableMotor" value="1" />
|
|
|
|
<arg name="enableWlanScan" value="1" />
|
|
|
|
<arg name="enableGmapping" value="1" />
|
|
|
|
<arg name="enableBagging" value="1" />
|
|
|
|
<arg name="enableHeatmap" value="0" />
|
|
|
|
|
2018-12-03 16:36:57 +01:00
|
|
|
|
2018-12-03 18:44:09 +01:00
|
|
|
<!-- Set wifi interface and start wlan logging -->
|
2018-12-15 15:21:43 +01:00
|
|
|
<group if="$(arg enableWlanScan)" >
|
|
|
|
<include file="$(find wlan_pioneer)/launch/wlanSignal.launch"/>
|
|
|
|
</group>
|
2018-12-03 18:44:09 +01:00
|
|
|
|
2018-12-15 15:21:43 +01:00
|
|
|
<!-- Enable the motor with rostopic pub -->
|
|
|
|
<group if="$(arg enableMotor)" >
|
|
|
|
<node name="rostopic" pkg="rostopic" type="rostopic" args="pub -1 /cmd_motor_state p2os_msgs/MotorState 1"/>
|
|
|
|
</group>
|
2018-12-03 16:36:57 +01:00
|
|
|
|
|
|
|
<!-- Start the p2os ROS Driver -->
|
|
|
|
<group if="$(arg P2OS_Driver)" >
|
|
|
|
<node pkg="p2os_driver" name="p2os_driver" type="p2os_driver"/>
|
|
|
|
</group>
|
2018-12-15 15:21:43 +01:00
|
|
|
|
2018-12-03 16:36:57 +01:00
|
|
|
<!-- Start the Dashboard -->
|
|
|
|
<group if="$(arg Dashboard)">
|
|
|
|
<node pkg="p2os_dashboard" name="p2os_dashboard" type="p2os_dashboard"/>
|
|
|
|
</group>
|
2018-12-15 15:21:43 +01:00
|
|
|
|
2018-12-03 16:36:57 +01:00
|
|
|
<!-- Start the teleoperation node for keyboard control -->
|
|
|
|
<group if="$(arg KeyboardTeleop)">
|
|
|
|
<include file="$(find p2os_launch)/launch/teleop_keyboard.launch" />
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<!-- Start the teleoperation node for joystick control -->
|
|
|
|
<group if="$(arg JoystickTeleop)">
|
2018-12-15 15:21:43 +01:00
|
|
|
<include file="$(find p2os_launch)/launch/teleop_joy.launch" />
|
2018-12-03 16:36:57 +01:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<!-- Publish the required transform -->
|
|
|
|
<group if="$(arg Transform)">
|
2018-12-15 15:21:43 +01:00
|
|
|
<include file="$(find p2os_launch)/launch/tf_base_link_to_laser.launch" />
|
2018-12-03 16:36:57 +01:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<!-- Start the Hokuyo Laser node if Hokuyo Laser is used -->
|
|
|
|
<group if="$(arg HokuyoLaser)">
|
2018-12-15 15:21:43 +01:00
|
|
|
<include file="$(find p2os_launch)/launch/hokuyo.launch" />
|
2018-12-03 16:36:57 +01:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<!-- Start the SICK LMS Laser Node if a SICK Laser is used -->
|
|
|
|
<group if="$(arg SICKLMSLaser)">
|
2018-12-15 15:21:43 +01:00
|
|
|
<include file="$(find p2os_launch)/launch/sicklms.launch" />
|
2018-12-03 16:36:57 +01:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<include file="$(find p2os_urdf)/launch/pioneer3dx_urdf.launch"/>
|
2018-12-03 18:44:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
<group if="$(arg enableGmapping)" >
|
2018-12-15 15:21:43 +01:00
|
|
|
<include file="$(find p2os_launch)/launch/gmapping.launch" />
|
2018-12-03 18:44:09 +01:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<group if="$(arg enableBagging)" >
|
2018-12-15 15:21:43 +01:00
|
|
|
<node pkg="rosbag" type="record" name="rosbag_record_wlan"
|
2018-12-17 18:34:37 +01:00
|
|
|
args="record -o /tmp/wlan_pioneer /pose /scan /tf /wlan_signal" />
|
2018-12-03 18:44:09 +01:00
|
|
|
</group>
|
|
|
|
|
2018-12-18 19:00:19 +01:00
|
|
|
|
|
|
|
<group if="$(arg enableHeatmap)" >
|
|
|
|
<include file="$(find wlan_pioneer)/launch/heatmap.launch"/>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
|
2018-12-03 16:36:57 +01:00
|
|
|
</launch>
|
|
|
|
|