-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from UofA-SPEAR/ayden/feature/hardware_arm
Ayden/feature/hardware arm
- Loading branch information
Showing
3 changed files
with
55 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,54 @@ | ||
# Guide to Moveit for Teleoperation | ||
|
||
## Install Moveit | ||
```sudo apt install ros-humble-moveit``` | ||
``` | ||
sudo apt install ros-humble-moveit | ||
``` | ||
|
||
```sudo apt install ros-humble-moveit-servo``` | ||
``` | ||
sudo apt install ros-humble-moveit-servo | ||
``` | ||
|
||
## Build and Source | ||
```colcon build``` | ||
``` | ||
colcon build | ||
``` | ||
|
||
```source install/setup.bash``` | ||
``` | ||
source install/setup.bash | ||
``` | ||
|
||
## Run the code | ||
|
||
```ros2 launch teleop teleop.launch.py``` | ||
### Short Way | ||
|
||
```ros2 launch moveit_spear servo.launch.py``` | ||
``` | ||
ros2 launch teleop arm.teleop.py | ||
``` | ||
|
||
```ros2 launch moveit_spear demo.launch.py``` | ||
|
||
```ros2 service call /arm_servo/start_servo std_srvs/srv/Trigger {}``` | ||
|
||
|
||
|
||
Refer to this for control mapping: https://drive.google.com/file/d/1n3aWn4sJ1-WZIfTOjwfjbIYzQQzIuocr/view?usp=drive_link | ||
### Long Way | ||
|
||
``` | ||
ros2 launch teleop teleop.launch.py | ||
``` | ||
|
||
``` | ||
ros2 launch moveit_spear servo.launch.py | ||
``` | ||
|
||
``` | ||
ros2 launch moveit_spear demo.launch.py | ||
``` | ||
|
||
``` | ||
ros2 service call /arm_servo/start_servo std_srvs/srv/Trigger {} | ||
``` | ||
|
||
|
||
|
||
Refer to this for control mapping: https://drive.google.com/file/d/1n3aWn4sJ1-WZIfTOjwfjbIYzQQzIuocr/view?usp=drive_link | ||
|
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,4 @@ | ||
#!/bin/bash | ||
|
||
# Call the ROS2 service | ||
ros2 service call /arm_servo/start_servo std_srvs/srv/Trigger {} |