-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sawyer Sim Examples Pkg: IK Pick example
- Adds sawyer_sim_examples package - Adds pick_and_place example to show: -- Spawning of models in Gazebo -- An example of how to call the Inverse Kinematics service through the Limb() interface -- An example of incredibly simple linearly-interpolated Cartesian movements -- Simple object manipulation
- Loading branch information
1 parent
63e8270
commit 39a67e4
Showing
13 changed files
with
753 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(sawyer_sim_examples) | ||
|
||
find_package(catkin REQUIRED COMPONENTS | ||
rospy | ||
intera_core_msgs | ||
gazebo_msgs | ||
) | ||
|
||
catkin_package( | ||
CATKIN_DEPENDS | ||
rospy | ||
intera_core_msgs | ||
gazebo_msgs | ||
) | ||
|
||
|
||
############# | ||
## Install ## | ||
############# | ||
|
||
install(PROGRAMS | ||
scripts/ik_pick_and_place_demo.py | ||
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
) | ||
|
||
foreach(dir launch models) | ||
install(DIRECTORY ${dir}/ | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir}) | ||
endforeach(dir) |
12 changes: 12 additions & 0 deletions
12
sawyer_sim_examples/launch/sawyer_pick_and_place_demo.launch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<launch> | ||
|
||
<!-- We resume the logic in empty_world.launch, changing the name of the world to be launched --> | ||
<include file="$(find sawyer_gazebo)/launch/sawyer_world.launch"> | ||
<arg name="electric_gripper" value="true"/> | ||
</include> | ||
|
||
<!-- Start the Sawyer pick and place demo --> | ||
<node pkg="sawyer_sim_examples" type="ik_pick_and_place_demo.py" name="ik_pick_and_place_demo" /> | ||
|
||
</launch> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<robot name="block"> | ||
<link name="block"> | ||
<inertial> | ||
<origin xyz="0.025 0.025 0.025" /> | ||
<mass value="0.5" /> | ||
<!-- (1/12)*mass*(h^2 + d^2) (1/12)*mass*(w^2 + d^2) (1/12)*mass*(w^2 + h^2) --> | ||
<!-- (1/12)*0.5*(0.045^2 + 0.045^2) (1/12)*0.5*(0.045^2 + 0.045^2) (1/12)*0.5*(0.045^2 + 0.045^2) --> | ||
<inertia ixx="0.00016874999" ixy="0.0" ixz="0.0" iyy="0.00016874999" iyz="0.0" izz="0.00016874999" /> | ||
|
||
</inertial> | ||
<visual> | ||
<origin xyz="0.025 0.025 0.025"/> | ||
<geometry> | ||
<box size="0.045 0.045 0.045" /> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin xyz="0.025 0.025 0.025"/> | ||
<geometry> | ||
<box size="0.045 0.045 0.045" /> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<gazebo reference="block"> | ||
<material>Gazebo/Red</material> | ||
<mu1>1000</mu1> | ||
<mu2>1000</mu2> | ||
</gazebo> | ||
</robot> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.5 KB
sawyer_sim_examples/models/cafe_table/materials/textures/Wood_Floor_Dark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.