Skip to content

Commit

Permalink
Merge pull request jsk-ros-pkg#101 from garaemon/use-laser-and-kinect…
Browse files Browse the repository at this point in the history
…-for-moveit

Use laser and kinect to build obstacle occupancy grid of moveit
  • Loading branch information
garaemon committed Oct 12, 2014
2 parents ff5c289 + a9d53c2 commit c1fdb1a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
9 changes: 8 additions & 1 deletion jsk_pr2_startup/jsk_pr2_moveit/sensors_kinect.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
sensors:
- sensor_plugin: occupancy_map_monitor/PointCloudOctomapUpdater
point_cloud_topic: /openni_c2/depth_registered/half/throttle_points
point_cloud_topic: /openni_c2/depth_registered/points_throttle
max_range: 2.0
point_subsample: 1
padding_offset: 0.1
padding_scale: 1.0
filtered_cloud_topic: filtered_cloud
- sensor_plugin: occupancy_map_monitor/PointCloudOctomapUpdater
point_cloud_topic: /tilt_scan_shadow_filtered
max_range: 5.0
# point_subsample: 1
padding_offset: 0.06
padding_scale: 1.0
filtered_cloud_topic: filtered_laser_cloud
2 changes: 1 addition & 1 deletion jsk_pr2_startup/jsk_pr2_moveit/sensors_laser.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sensors:
- sensor_plugin: occupancy_map_monitor/PointCloudOctomapUpdater
point_cloud_topic: /tilt_laser_cloud2
point_cloud_topic: /tilt_scan_shadow_filtered
max_range: 5.0
# point_subsample: 1
padding_offset: 0.06
Expand Down
13 changes: 7 additions & 6 deletions jsk_pr2_startup/jsk_pr2_moveit/start_pr2_moveit.launch
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<launch>
<arg name="USE_KINECT" default="true" />

<arg if="$(arg USE_KINECT)"
name="sensor_params_file"
value="$(find jsk_pr2_startup)/jsk_pr2_moveit/sensors_kinect.yaml" />
<arg unless="$(arg USE_KINECT)"
name="sensor_params_file"
value="$(find jsk_pr2_startup)/jsk_pr2_moveit/sensors_laser.yaml" />
<!-- <arg if="$(arg USE_KINECT)" -->
<!-- name="sensor_params_file" -->
<!-- value="$(find jsk_pr2_startup)/jsk_pr2_moveit/sensors_kinect.yaml" /> -->
<!-- <arg unless="$(arg USE_KINECT)" -->
<!-- name="sensor_params_file" -->
<!-- value="$(find jsk_pr2_startup)/jsk_pr2_moveit/sensors_laser.yaml" /> -->
<arg name="sensor_params_file" value="$(find jsk_pr2_startup)/jsk_pr2_moveit/sensors.yaml" />

<include file="$(find pr2_moveit_config)/launch/planning_context.launch">
<arg name="load_robot_description" value="false"/>
Expand Down

0 comments on commit c1fdb1a

Please sign in to comment.