Skip to content

Commit

Permalink
Merge pull request jsk-ros-pkg#6 from YoheiKakiuchi/add_jsk_moveit_pr2
Browse files Browse the repository at this point in the history
Add jsk moveit pr2
  • Loading branch information
YoheiKakiuchi committed Apr 11, 2014
2 parents 095cf53 + fe34a97 commit 0651dc0
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 0 deletions.
29 changes: 29 additions & 0 deletions jsk_pr2_startup/jsk_pr2_moveit/demo.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<launch>
<include file="$(find pr2_moveit_config)/launch/planning_context.launch">
<arg name="load_robot_description" value="true"/>
</include>

<node pkg="tf" type="static_transform_publisher" name="virtual_joint_broadcaster_0"
args="0 0 0 0 0 0 odom_combined base_footprint 100" />

<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
<param name="/use_gui" value="true"/>
<rosparam>
source_list: [joints_set]
</rosparam>
</node>

<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" respawn="true" output="screen" />

<include file="$(find pr2_moveit_config)/launch/move_group.launch">
<arg name="allow_trajectory_execution" value="true"/>
<arg name="moveit_octomap_sensor_params_file"
value="$(find jsk_pr2_startup)/jsk_pr2_moveit/sensors_kinect.yaml" />
</include>

<include file="$(find pr2_moveit_config)/launch/moveit_rviz.launch">
<arg name="config" value="true"/>
</include>

<!--include file="$(find pr2_moveit_config)/launch/default_warehouse_db.launch" /-->
</launch>
8 changes: 8 additions & 0 deletions jsk_pr2_startup/jsk_pr2_moveit/sensors_kinect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sensors:
- sensor_plugin: occupancy_map_monitor/PointCloudOctomapUpdater
point_cloud_topic: /openni/depth_registered/points_throttle
max_range: 5.0
point_subsample: 2
shape_padding: 0.08
shape_scale: 1.0
filtered_cloud_topic: filtered_cloud
8 changes: 8 additions & 0 deletions jsk_pr2_startup/jsk_pr2_moveit/sensors_laser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sensors:
- sensor_plugin: occupancy_map_monitor/PointCloudOctomapUpdater
point_cloud_topic: /tilt_laser_cloud2
max_range: 5.0
# point_subsample: 1
shape_padding: 0.06
shape_scale: 1.0
filtered_cloud_topic: filtered_cloud
32 changes: 32 additions & 0 deletions jsk_pr2_startup/jsk_pr2_moveit/start_pr2_moveit.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<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" />

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

<!--node pkg="tf" type="static_transform_publisher" name="virtual_joint_broadcaster_0" args="0 0 0 0 0 0 odom_combined base_footprint 100" /-->
<!--node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
<param name="/use_gui" value="true"/>
</node-->
<!--node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" respawn="true" output="screen" /-->

<include file="$(find pr2_moveit_config)/launch/move_group.launch">
<arg name="allow_trajectory_execution" value="true"/>
<arg name="moveit_octomap_sensor_params_file"
value="$(arg sensor_params_file)" />
</include>

<include file="$(find pr2_moveit_config)/launch/moveit_rviz.launch">
<arg name="config" value="true"/>
</include>

<!--include file="$(find pr2_moveit_config)/launch/default_warehouse_db.launch" /-->
</launch>
6 changes: 6 additions & 0 deletions jsk_pr2_startup/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,10 @@
<export>
<rqt_gui plugin="${prefix}/plugin.xml"/>
</export>

<!--
jsk_pr2_moveit should be updated after merged pull requests listed below
https://github.com/ros-planning/moveit_pr2/pull/46
https://github.com/ros-planning/moveit_pr2/pull/47
-->
</package>

0 comments on commit 0651dc0

Please sign in to comment.