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

Creation of O3DE tutorials #1

Open
wants to merge 9 commits into
base: rolling
Choose a base branch
from
Open

Creation of O3DE tutorials #1

wants to merge 9 commits into from

Conversation

wsiekierska
Copy link
Collaborator

Added O3DE in Advanced/Simulators tutorials and created three basic tutorials:

  • Installation o3de on Ubuntu
  • Setting up a basic simulation
  • Setting up an advanced simulation

Signed-off-by: Wiktoria Siekierska <wiktoria.siekierska@robotec.ai>
Signed-off-by: Wiktoria Siekierska <wiktoria.siekierska@robotec.ai>
Signed-off-by: Wiktoria Siekierska <wiktoria.siekierska@robotec.ai>
Signed-off-by: Wiktoria Siekierska <wiktoria.siekierska@robotec.ai>
Signed-off-by: Wiktoria Siekierska <wiktoria.siekierska@robotec.ai>
Signed-off-by: Wiktoria Siekierska <wiktoria.siekierska@robotec.ai>
Signed-off-by: Wiktoria Siekierska <wiktoria.siekierska@robotec.ai>
Copy link

@jhanca-robotecai jhanca-robotecai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read your changes diagonally and I gave some nitpick comments, but I do not agree with the general concept.

There are few points that I would like to discuss with the others:

  1. I believe we should use deb installers and we should use automatic tools to download gems and templates as zip packages without any need to use command line tools. We never do it ourselves, so this exercise would allow us to check if everything is working as it should. Perfect before the release
  2. I believe we should focus on ROS2ProjectTemplate template only. This project allows to I) run the navstack; ii) implement some ROS 2 interfaces (advanced tutorial); note: we might build the project from the GUI
  3. We should first agree on the content of tutorials. I would suggest the following:
  • installation + creating ROS 2 project based on the template;
  • running the template (in Game mode); extending the template by doing some modifications in the Editor;
  • extending the template with more ROS 2 things (some topics to do basic things, e.g. moving some objects based on ROS 2 topic)
  • creating a project from scratch with ROS 2 gem

libglu1-mesa-dev libxcb-xinerama0 libxcb-xinput0 libxcb-xinput-dev \
libfontconfig1 libssl-dev uuid-dev clang lld

Step 2: Clone the O3DE Repository

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It takes ages to clone and build O3DE from the source - shouldn't we focus on using a deb package? This tutorial should take 15 minutes only.


.. code-block:: bash

./scripts/o3de.sh create-project --project-path <path-to-your-project> --template Default

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should focus on ROS 2 templates, using default template makes no sense for ROS 2 community.


.. code-block:: bash

git checkout stabilization/2409

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After pulling the default branch of O3DE, development will be pulled. stabilization2409 branch will NOT build against unstable O3DE.


./scripts/o3de.sh register --all-engines-path <o3de-extras>/Engines
./scripts/o3de.sh register --all-projects-path <o3de-extras>/Projects
./scripts/o3de.sh register --all-gems-path <o3de-extras>/Gems

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is a duplicate of 179


.. code-block:: bash

./scripts/o3de.sh enable-gem --gem-name <gem name> --project-name <project name>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In most cases (at least until we get 2409 up and running) this will trigger a conflict between PhysX and PhysX5 gems.


ros2 launch Examples/panda_moveit_config_demo.launch.py

And for the palletization try:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not clear the other level is needed. I would stick to Panda - the other level might be removed after 2409 as we plan to clean up the assets.


**Goal:** Setup a robot simulation and control it from ROS 2.

**Tutorial level:** Advanced

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You called this tutorial Basic


4. **Configure and build the Project**:

After installing dependencies, cofigure and build the project using the following commands:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use some tools to check for typos and other language issues:

Suggested change
After installing dependencies, cofigure and build the project using the following commands:
After installing dependencies, configure and build the project using the following commands:


.. code-block:: bash

<path-to-o3de-directory>/build/bin/profile/Editor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might use the game launcher directly, there is no need to go to Editor at this stage.


Once in the Editor, open the SLAM navigation level by navigating to the ``Levels`` tab and selecting the SLAM navigation level.

Press ``Ctrl+G`` to start the simulation.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to start the editor to start the game mode

wsiekierska and others added 2 commits September 13, 2024 17:08
Signed-off-by: Wiktoria Siekierska <wiktoria.siekierska@robotec.ai>
Downloading o3de .zip package and lauching a simulation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants