Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to ROS2RoboticManipulationTemplate #467

Merged
merged 3 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions Templates/Ros2RoboticManipulationTemplate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ This project is a template designed to help you quickly start simulating robotic

This template focuses on robotic arm manipulation with ROS 2 and [MoveIt 2](https://moveit.picknik.ai/main/index.html).

## Prerequisites

Make sure that your system meets [Requirements](https://development--o3deorg.netlify.app/docs/welcome-guide/requirements/).

Install ROS2 dependencies for this template:
```bash
sudo apt install ros-${ROS_DISTRO}-moveit ros-${ROS_DISTRO}-moveit-resources ros-${ROS_DISTRO}-depth-image-proc
```
## How to set up a new project with the template

Please follow the instructions in [ROS 2 Gem documentation](https://development--o3deorg.netlify.app/docs/user-guide/interactivity/robotics/project-configuration/)
Expand Down Expand Up @@ -41,19 +48,13 @@ Includes a warehouse scene, [UR10](https://www.universal-robots.com/products/ur1

### Manipulation

Install necessary ROS packages for MoveIt and depth image processing:

```bash
sudo apt-get install ros-humble-moveit ros-humble-moveit-resources ros-humble-depth-image-proc
```

And run the launch file in the project:

```bash
ros2 launch Examples/panda_moveit_config_demo.launch.py
```

This will result in RViz window appearing.
This will result in RViz2 window appearing.
Now you should be able to use `Motion Planning` from `moveit_ros_visualization package`.
To understand more about MoveIt and robotic manipulation, see [tutorials](https://moveit.picknik.ai/main/doc/tutorials/quickstart_in_rviz/quickstart_in_rviz_tutorial.html#getting-started).

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os
from pathlib import Path
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument, OpaqueFunction
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution
Expand All @@ -24,8 +24,8 @@ def generate_launch_description():

def launch_setup(context, *args, **kwargs):

current_file_path = os.path.abspath(__file__)
current_directory = os.path.dirname(current_file_path)
current_file_path = Path(__file__).resolve()
current_directory = current_file_path.parent

use_sim_time = { "use_sim_time": True}
moveit_config = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ set(ENABLED_GEMS
WhiteBox
DiffuseProbeGrid
Compression
ProteusRobot
WarehouseAssets
ROS2
PhysXDebug
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"restricted": "MySimulationProject",
"engine_version": "2.1.0",
"gem_names": [
"ProteusRobot",
"WarehouseAssets",
"ROS2"
]
Expand Down