Created
April 13, 2017 02:28
-
-
Save arpit15/9c06e444df78989f4a3d616249db0370 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<launch> | |
<arg name="camera_link_pose" default="0.228 -0.036 0.173 0.011 0.390 0.007 0.921"/> | |
<arg name="realsense" default="true"/> | |
<group if="$(arg realsense)" > | |
<!-- launch openni to talk to xtion --> | |
<include file="$(find realsense_camera)/launch/sr300_nodelet_rgbd.launch"> | |
<!-- These args are workarounds for tf_prefix issues in openni.launch --> | |
<!-- <arg name="rgb_frame_id" value="camera_rgb_optical_frame" /> | |
<arg name="depth_frame_id" value="camera_depth_optical_frame" /> --> | |
</include> | |
<!-- Users update this to set transform between camera and robot --> | |
<!-- This example has the Xtion mounted to the chest of the robot --> | |
<node pkg="tf" type="static_transform_publisher" name="camera_link_broadcaster" | |
args="$(arg camera_link_pose) /world /camera_link 100" /> | |
<!-- octomap parameters for moveit --> | |
<group ns="move_group" > | |
<param name="octomap_frame" type="string" value="camera_link" /> | |
<param name="octomap_resolution" type="double" value="0.01" /> | |
<rosparam command="load" file="$(find manipulate_food)/config/realsense.yaml" /> | |
</group> | |
</group> | |
<arg name="kinect" default="false"/> | |
<group if="$(arg kinect)" > | |
<!-- launch openni to talk to kinect --> | |
<include file="$(find freenect_launch)/launch/freenect.launch"> | |
<!-- These args are workarounds for tf_prefix issues in freenect.launch --> | |
<arg name="rgb_frame_id" value="camera_rgb_optical_frame"/> | |
<arg name="depth_frame_id" value="camera_depth_optical_frame"/> | |
</include> | |
<!-- Users update this to set transform between camera and robot --> | |
<node pkg="tf" type="static_transform_publisher" name="camera_link_broadcaster" | |
args="$(arg camera_link_pose) /torso /camera_link 100" /> | |
<!-- octomap parameters for moveit --> | |
<group ns="move_group" > | |
<param name="octomap_frame" type="string" value="camera_link" /> | |
<param name="octomap_resolution" type="double" value="0.02" /> | |
<rosparam command="load" file="$(find baxter_moveit_config)/config/kinect_sensor.yaml" /> | |
</group> | |
</group> | |
<arg name="xtion" default="false"/> | |
<group if="$(arg xtion)" > | |
<!-- launch openni to talk to xtion --> | |
<include file="$(find openni_launch)/launch/openni.launch"> | |
<!-- These args are workarounds for tf_prefix issues in openni.launch --> | |
<arg name="rgb_frame_id" value="camera_rgb_optical_frame" /> | |
<arg name="depth_frame_id" value="camera_depth_optical_frame" /> | |
</include> | |
<!-- Users update this to set transform between camera and robot --> | |
<!-- This example has the Xtion mounted to the chest of the robot --> | |
<node pkg="tf" type="static_transform_publisher" name="camera_link_broadcaster" | |
args="$(arg camera_link_pose) /torso /camera_link 100" /> | |
<!-- octomap parameters for moveit --> | |
<group ns="move_group" > | |
<param name="octomap_frame" type="string" value="camera_link" /> | |
<param name="octomap_resolution" type="double" value="0.02" /> | |
<rosparam command="load" file="$(find baxter_moveit_config)/config/xtion_sensor.yaml" /> | |
</group> | |
</group> | |
</launch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment