Convert baud, drone type, and mode into parameters
This commit is contained in:
parent
73845b3e71
commit
2a6fe990bc
|
@ -0,0 +1 @@
|
||||||
|
.vscode
|
|
@ -1,16 +1,20 @@
|
||||||
<launch>
|
<launch>
|
||||||
<arg name="port" default="/dev/ttyUSB0"/>
|
<arg name="port" default="/dev/ttyUSB0"/>
|
||||||
<!-- xmee_mav Drone type and Commununication Mode -->
|
<arg name="baud" default="9600"/>
|
||||||
<!-- node pkg="xbee_ros_node" type="xbee_mav" name="xbee_mav" args="master solo" output="screen" -->
|
<!-- master / slave-->
|
||||||
<node pkg="xbee_ros_node" type="xbee_mav" name="xbee_mav" args="master swarm" output="screen" />
|
<arg name="drone" default="master"/>
|
||||||
<!-- node pkg="xbee_ros_node" type="xbee_mav" name="xbee_mav" args="slave solo" output="screen" -->
|
<!-- swarm / solo -->
|
||||||
<!--node pkg="xbee_ros_node" type="xbee_mav" name="xbee_mav" args="slave swarm" output="screen" -->
|
<arg name="mode" default="swarm"/>
|
||||||
<!-- xmee_mav Topics and Services Names -->
|
|
||||||
|
<!-- xbee_mav Drone type and Commununication Mode -->
|
||||||
|
<node pkg="xbee_ros_node" type="xbee_mav" name="xbee_mav" args="$(arg drone) $(arg mode)" output="screen" />
|
||||||
|
|
||||||
|
<!-- xbee_mav Topics and Services Names -->
|
||||||
<param name="Xbee_In_From_Buzz" type="str" value="outMavlink" />
|
<param name="Xbee_In_From_Buzz" type="str" value="outMavlink" />
|
||||||
<param name="Xbee_Out_To_Buzz" type="str" value="inMavlink" />
|
<param name="Xbee_Out_To_Buzz" type="str" value="inMavlink" />
|
||||||
<param name="Xbee_In_From_Controller" type="str" value="xbee_cmd" />
|
<param name="Xbee_In_From_Controller" type="str" value="xbee_cmd" />
|
||||||
<param name="Xbee_Out_To_Controller" type="str" value="mav_dji_cmd" />
|
<param name="Xbee_Out_To_Controller" type="str" value="mav_dji_cmd" />
|
||||||
<param name="USB_port" type="str" value="$(arg port)" />
|
<param name="USB_port" type="str" value="$(arg port)" />
|
||||||
<param name="status_service" type="str" value="network_status" />
|
<param name="status_service" type="str" value="network_status" />
|
||||||
<param name="Baud_rate" type="double" value="230400" />
|
<param name="Baud_rate" type="double" value="$(arg baud)" />
|
||||||
</launch>
|
</launch>
|
||||||
|
|
Reference in New Issue