mirror of
https://github.com/6-robot/wpb_home.git
synced 2025-09-15 12:58:59 +08:00
add kinect_base
This commit is contained in:
parent
fc0c03ddb7
commit
6174ccaf81
28
wpb_home_bringup/launch/kinect_base.launch
Normal file
28
wpb_home_bringup/launch/kinect_base.launch
Normal file
@ -0,0 +1,28 @@
|
||||
<launch>
|
||||
|
||||
<arg name="model" default="$(find wpb_home_bringup)/urdf/wpb_home.urdf"/>
|
||||
<arg name="gui" default="true" />
|
||||
<arg name="rvizconfig" default="$(find wpb_home_bringup)/rviz/sensor.rviz" />
|
||||
|
||||
<param name="robot_description" command="$(find xacro)/xacro.py $(arg model)" />
|
||||
<param name="use_gui" value="$(arg gui)"/>
|
||||
|
||||
<node if="$(arg gui)" name="joint_state_publisher_gui" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui" >
|
||||
<rosparam command="load" file="$(find wpb_home_bringup)/config/wpb_home.yaml" />
|
||||
</node>
|
||||
<node unless="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" >
|
||||
<rosparam command="load" file="$(find wpb_home_bringup)/config/wpb_home.yaml" />
|
||||
</node>
|
||||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
|
||||
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" />
|
||||
|
||||
<!--- Run Kinect -->
|
||||
<include file="$(find kinect2_bridge)/launch/kinect2_bridge.launch" />
|
||||
|
||||
<!-- wpb_home core-->
|
||||
<node pkg="wpb_home_bringup" type="wpb_home_core" name="wpb_home_core" output="screen">
|
||||
<param name="serial_port" type="string" value="/dev/ftdi"/>
|
||||
<rosparam file="$(find wpb_home_bringup)/config/wpb_home.yaml" command="load" />
|
||||
</node>
|
||||
|
||||
</launch>
|
||||
Loading…
Reference in New Issue
Block a user