generated from athackst/vscode_ros2_workspace
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,55 @@ | ||
# Grasp service | ||
Simple ros2 grasp service. The job of the service is to follow sequence of points, then to stop for given period of time and move back to home position. | ||
Simple ros2 grasp service. The job of the service is to follow sequence of points, then close the gripper and stop and then back to home positions and open gripper. | ||
|
||
|
||
# Configuration | ||
Configuration is straightforward and example is available in the open_manipulator_bringup package in the config folder. Simple configuration looks like this | ||
|
||
```yaml | ||
grasp_service: | ||
ros__parameters: | ||
joints_controller_name: joint_trajectory_controller | ||
joints_names: | ||
- joint1 | ||
- joint2 | ||
- joint3 | ||
- joint4 | ||
|
||
positions_to_target_list: | ||
- first_pos | ||
- second_pos | ||
|
||
positions_to_target: | ||
first_pos: | ||
positions: [0.50, 0.0, 0.0, 0.0] | ||
time_to_target: 2 | ||
second_pos: | ||
positions: [-0.50, 0.0, 0.0, 0.0] | ||
time_to_target: 4 | ||
|
||
positions_to_home_list: | ||
- first_pos | ||
|
||
positions_to_home: | ||
first_pos: | ||
positions: [0.50, 0.0, 0.0, 0.0] | ||
time_to_target: 2 | ||
|
||
time_to_wait_on_target: 5 | ||
|
||
gripper_controller_name: gripper_action_controller | ||
gripper_close: -0.01 | ||
gripper_open: 0.019 | ||
``` | ||
# Demo | ||
To launch demo just build (and source) repo and use following commands: | ||
```bash | ||
ros2 launch manipulator_simulation manipulator_simulation_bringup.launch.py | ||
``` | ||
And to trigger grasp_service just call: | ||
|
||
```bash | ||
ros2 service call grasp_service std_srvs/srv/Empty | ||
``` |