Skip to content

Commit 47e4656

Browse files
committed
use pr2_gazebo with PR2/pr2_simulator#147
1 parent 7fbef14 commit 47e4656

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

obinata_research/obinata_pr2_73b2_cleanup/launch/obinata-pr2-73b2world.launch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
<!-- <node name="spawn_pr2_leave_from_door" pkg="gazebo_ros" type="spawn_model" args="$(optenv ROBOT_INITIAL_POSE) -unpause -urdf -parm robot_description -x $(arg pr2_init_x -model pr2" respawn="false" output="screen" /> -->
1212

1313
<!-- bringup script -->
14-
<include file="$(find obinata_pr2_73b2_cleanup)/launch/pr2_empty_world.launch">
14+
<include file="$(find pr2_gazebo)/launch/pr2_empty_world.launch">
1515
<arg name="world_name" value="$(arg world_name)" />
16+
<arg name="ROBOT_INITIAL_POSE" value="-x 0.75 -y 0 -z 0" />
1617
</include>
1718

1819
<!-- put chairs -->
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<launch>
22
<arg name="KINECT1" default="$(optenv KINECT1 false)" />
33
<arg name="KINECT2" default="$(optenv KINECT2 false)" />
4+
<arg name="ROBOT_INITIAL_POSE" default="$(optenv ROBOT_INITIAL_POSE)" />
45

56
<!-- Startup PR2 without any mechanism controllers -->
67
<include file="$(find obinata_pr2_73b2_cleanup)/launch/pr2_no_controllers.launch" pass_all_args="true"/>
78

89
<!-- Load and Start Default Controllers -->
910
<include file="$(find pr2_controller_configuration_gazebo)/launch/pr2_default_controllers.launch" />
1011

11-
</launch>
12+
</launch>

obinata_research/obinata_pr2_73b2_cleanup/launch/pr2_empty_world.launch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
<arg name="KINECT1" default="$(optenv KINECT1 false)" />
1414
<arg name="KINECT2" default="$(optenv KINECT2 false)" />
15+
<arg name="ROBOT_INITIAL_POSE" default="$(optenv ROBOT_INITIAL_POSE)" />
1516

1617
<include file="$(find gazebo_ros)/launch/empty_world.launch">
1718
<arg name="gui" value="$(arg gui)" />
@@ -29,6 +30,7 @@
2930
<include file="$(find obinata_pr2_73b2_cleanup)/launch/pr2.launch">
3031
<arg name="KINECT1" value="$(arg KINECT1)" />
3132
<arg name="KINECT2" value="$(arg KINECT2)" />
33+
<arg name="ROBOT_INITIAL_POSE" value="$(arg ROBOT_INITIAL_POSE)" />
3234
</include>
3335

3436
</launch>

obinata_research/obinata_pr2_73b2_cleanup/launch/pr2_no_controllers.launch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<launch>
22
<arg name="KINECT1" default="$(optenv KINECT1 false)" />
33
<arg name="KINECT2" default="$(optenv KINECT2 false)" />
4-
<arg name="initial_pose" default="-x -1.5 -y 0 -z 0" />
4+
<arg name="ROBOT_INITIAL_POSE" default="$(optenv ROBOT_INITIAL_POSE)" />
55

66
<!-- send pr2 urdf to param server -->
77
<include file="$(find pr2_description)/robots/upload_pr2.launch" pass_all_args="true" />
88

99
<!-- push robot_description to factory and spawn robot in gazebo -->
10-
<node name="spawn_pr2_model" pkg="gazebo_ros" type="spawn_model" args="$(arg initial_pose) -unpause -urdf -param robot_description -model pr2" respawn="false" output="screen" />
10+
<node name="spawn_pr2_model" pkg="gazebo_ros" type="spawn_model" args="$(arg ROBOT_INITIAL_POSE) -unpause -urdf -param robot_description -model pr2" respawn="false" output="screen" />
1111

1212
<!-- default bringup script -->
1313
<include file="$(find pr2_gazebo)/launch/pr2_bringup.launch" />

obinata_research/obinata_pr2_73b2_cleanup/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<buildtool_depend>catkin</buildtool_depend>
1313

1414
<run_depend>gazebo_ros</run_depend> <!-- for gazebo_ros_pose_publisher https://github.com/ros-simulation/gazebo_ros_pkgs/pull/1098 -->
15+
<run_depend>pr2_gazebo</run_depend> <!-- ROBOT_INITIAL_POSE argument https://github.com/PR2/pr2_simulator/pull/147, you can remove this line once it is released -->
1516
<run_depend>jsk_maps</run_depend>
1617
<run_depend>pr2eus</run_depend>
1718

obinata_research/obinata_pr2_73b2_cleanup/pr2_73b2_cleanup.rosinstall

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22
- git:
33
local-name: gazebo_ros_pkgs
44
uri: https://github.com/k-okada/gazebo_ros_pkgs.git
5-
version: add_gazebo_pose_publisher
5+
version: add_gazebo_pose_publisher
6+
# ROBOT_INITIAL_POSE argument https://github.com/PR2/pr2_simulator/pull/147
7+
- git:
8+
local-name: pr2_simulator
9+
uri: https://github.com/k-okada/pr2_simulator.git
10+
version: arg_robot_initial_pose

0 commit comments

Comments
 (0)