-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be9ec06
commit 5fe5fc3
Showing
28 changed files
with
1,938 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,6 @@ png | |
svg | ||
Kubernetes | ||
yaml | ||
absolutized | ||
absolutized | ||
moveit | ||
replan |
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,31 @@ | ||
# Example Manipulation | ||
|
||
To run the Example [moveit2](https://moveit.picknik.ai/main/index.html) Scenario. | ||
|
||
```bash | ||
colcon build --packages-up-to arm_sim_scenario | ||
``` | ||
|
||
Source the workspace: | ||
|
||
```bash | ||
source install/setup.bash | ||
``` | ||
|
||
Now, run the following command to launch the scenario: | ||
|
||
a. Full Simulation | ||
|
||
```bash | ||
ros2 launch arm_sim_scenario sim_moveit_scenario_launch.py scenario:=examples/example_moveit2/example_moveit2.osc | ||
``` | ||
|
||
b.Visualization Only | ||
|
||
```bash | ||
ros2 launch arm_sim_scenario sim_moveit_scenario_launch.py scenario:=examples/example_moveit2/example_moveit2.osc ros2_control_hardware_type:=mock_components use_rviz:=true | ||
``` | ||
|
||
The arm initially moves to a specified joint position. Next, the gripper opens. Once the gripper is open, the arm moves to the designated end-effector position. Finally, the gripper closes. | ||
|
||
For a more detailed understanding of the code structure and scenario implementation please refer to the [tutorial documentation](https://intellabs.github.io/scenario_execution/tutorials.html). |
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,26 @@ | ||
import osc.helpers | ||
import osc.ros | ||
import osc.moveit2 | ||
|
||
scenario example_moveit2: | ||
timeout(60s) | ||
manipulator: arm = arm(arm_joints: ['panda_joint1','panda_joint2','panda_joint3','panda_joint4','panda_joint5','panda_joint6','panda_joint7'], | ||
gripper_joints: ['panda_finger_joint1','panda_finger_joint2'], | ||
arm_group: 'panda_arm', | ||
gripper_group: 'hand', | ||
end_effector: 'panda_hand', | ||
base_link: 'panda_link0') | ||
do serial: | ||
joint_pose: manipulator.move_to_joint_pose( | ||
goal_pose: [-2.82, 1.01, -2.40, -1.46, 0.57, 2.47, 0.0], | ||
move_group: move_group_type!arm) | ||
open_gripper: manipulator.move_to_joint_pose( | ||
goal_pose: [0.04, 0.04], | ||
move_group: move_group_type!gripper) | ||
move_to_pose: manipulator.move_to_pose( | ||
goal_pose: pose_3d(position_3d(x: 0.25, y: 0.0, z: 1.0))) | ||
close_gripper: manipulator.move_to_joint_pose( | ||
goal_pose: [0.04, 0.04], | ||
move_group: move_group_type!gripper) | ||
wait elapsed(1s) | ||
emit end |
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 @@ | ||
include scenario_execution_moveit2/lib_osc/*.osc |
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,8 @@ | ||
# Scenario Execution Library for moveIt2 | ||
|
||
The `scenario_execution_moveit2` package provides actions to interact with the [moveit2](https://moveit.picknik.ai/main/index.html) manipulation stack. | ||
|
||
It provides the following scenario execution library: | ||
|
||
- `moveit2.osc`: Actions specific to moveit2 manipulation stack | ||
|
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,24 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>scenario_execution_moveit2</name> | ||
<version>1.2.0</version> | ||
<description>Scenario Execution library for moveIt2</description> | ||
<author email="[email protected]">Intel Labs</author> | ||
<maintainer email="[email protected]">Intel Labs</maintainer> | ||
<license>Apache-2.0</license> | ||
|
||
<depend>scenario_execution_ros</depend> | ||
|
||
<exec_depend>rclpy</exec_depend> | ||
<exec_depend>moveit_msgs</exec_depend> | ||
|
||
<test_depend>ament_copyright</test_depend> | ||
<test_depend>ament_flake8</test_depend> | ||
<test_depend>ament_pep257</test_depend> | ||
<test_depend>python3-pytest</test_depend> | ||
|
||
<export> | ||
<build_type>ament_python</build_type> | ||
</export> | ||
</package> |
Empty file.
21 changes: 21 additions & 0 deletions
21
libs/scenario_execution_moveit2/scenario_execution_moveit2/__init__.py
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,21 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions | ||
# and limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from . import actions | ||
|
||
__all__ = [ | ||
'actions' | ||
] |
15 changes: 15 additions & 0 deletions
15
libs/scenario_execution_moveit2/scenario_execution_moveit2/actions/__init__.py
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,15 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions | ||
# and limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 |
Oops, something went wrong.