Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jsk_data] Remap /kinect_head topics to /kinect_head_c2 to play rosbag for pr2 #1431

Merged
merged 2 commits into from
Jul 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions jsk_data/launch/pr2_play.launch
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,34 @@
<arg name="use_xterm" default="false" />
<arg name="camera" default="kinect_head_c2"/>

<!-- c1 on real robot publishes topics with /kinect_head namespace
so we remap them to /kinect_head_c2 here -->
<arg name="manager" value="$(arg camera)/$(arg camera)_nodelet_manager" />
<node name="relay_kinect_head_rgb_camera_info"
pkg="nodelet" type="nodelet"
args="load jsk_topic_tools/Relay $(arg manager)">
<remap from="~input" to="/kinect_head/rgb/camera_info" />
<remap from="~output" to="/$(arg camera)/rgb/camera_info" />
</node>
<node name="relay_kinect_head_rgb_image_raw"
pkg="nodelet" type="nodelet"
args="load jsk_topic_tools/Relay $(arg manager)">
<remap from="~input" to="/kinect_head/rgb/image_raw" />
<remap from="~output" to="/$(arg camera)/rgb/image_raw" />
</node>
<node name="relay_kinect_head_depth_camera_info"
pkg="nodelet" type="nodelet"
args="load jsk_topic_tools/Relay $(arg manager)">
<remap from="~input" to="/kinect_head/depth_registered/camera_info" />
<remap from="~output" to="/$(arg camera)/depth_registered/camera_info" />
</node>
<node name="relay_kinect_head_depth_image_raw"
pkg="nodelet" type="nodelet"
args="load jsk_topic_tools/Relay $(arg manager)">
<remap from="~input" to="/kinect_head/depth_registered/image_raw" />
<remap from="~output" to="/$(arg camera)/depth_registered/image_raw" />
</node>

<!-- set params for rviz -->
<param name="use_sim_time" value="true" />
<param if="$(arg launch_robot_model)" name="robot_description" command="$(find xacro)/xacro.py '$(find pr2_description)/robots/pr2.urdf.xacro'" />
Expand Down