Code Monkey home page Code Monkey logo

robotvacuumsample's Introduction

O3DE (Open 3D Engine)

O3DE (Open 3D Engine) is an open-source, real-time, multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.

Contribute

For information about contributing to Open 3D Engine, visit https://o3de.org/docs/contributing/.

Download and Install

This repository uses Git LFS for storing large binary files.

Verify you have Git LFS installed by running the following command to print the version number.

git lfs --version 

If Git LFS is not installed, download and run the installer from: https://git-lfs.github.com/.

Install Git LFS hooks

git lfs install

Clone the repository

git clone https://github.com/o3de/o3de.git

Building the Engine

Build requirements and redistributables

For the latest details and system requirements, refer to System Requirements in the documentation.

Windows

Optional

  • Wwise audio SDK
    • For the latest version requirements and setup instructions, refer to the Wwise Audio Engine Gem reference in the documentation.

Quick start engine setup

To set up a project-centric source engine, complete the following steps. For other build options, refer to Setting up O3DE from GitHub in the documentation.

  1. Create a writable folder to cache downloadable third-party packages. You can also use this to store other redistributable SDKs.

  2. Install the following redistributables:

    • Visual Studio and VC++ redistributable can be installed to any location.
    • CMake can be installed to any location, as long as it's available in the system path.
  3. Configure the engine source into a solution using this command line, replacing <your build path>, <your source path>, and <3rdParty package path> with the paths you've created:

    cmake -B <your build path> -S <your source path> -G "Visual Studio 16" -DLY_3RDPARTY_PATH=<3rdParty package path>
    

    Example:

    cmake -B C:\o3de\build\windows -S C:\o3de -G "Visual Studio 16" -DLY_3RDPARTY_PATH=C:\o3de-packages
    

    Note: Do not use trailing slashes for the <3rdParty package path>.

  4. Alternatively, you can do this through the CMake GUI:

    1. Start cmake-gui.exe.
    2. Select the local path of the repo under "Where is the source code".
    3. Select a path where to build binaries under "Where to build the binaries".
    4. Click Add Entry and add a cache entry for the <3rdParty package path> folder you created, using the following values:
      1. Name: LY_3RDPARTY_PATH
      2. Type: STRING
      3. Value: <3rdParty package path>
    5. Click Configure.
    6. Wait for the key values to populate. Update or add any additional fields that are needed for your project.
    7. Click Generate.
  5. Register the engine with this command:

    scripts\o3de.bat register --this-engine
    
  6. The configuration of the solution is complete. You are now ready to create a project and build the engine.

For more details on the steps above, refer to Setting up O3DE from GitHub in the documentation.

Setting up new projects and building the engine

  1. From the O3DE repo folder, set up a new project using the o3de create-project command.

    scripts\o3de.bat create-project --project-path <your new project path>
    
  2. Configure a solution for your project.

    cmake -B <your project build path> -S <your new project source path> -G "Visual Studio 16"
    

    Example:

    cmake -B C:\my-project\build\windows -S C:\my-project -G "Visual Studio 16"
    

    Note: Do not use trailing slashes for the <3rdParty cache path>.

  3. Build the project, Asset Processor, and Editor to binaries by running this command inside your project:

    cmake --build <your project build path> --target <New Project Name>.GameLauncher Editor --config profile -- /m
    

    Note: Your project name used in the build target is the same as the directory name of your project.

This will compile after some time and binaries will be available in the project build path you've specified, under bin/profile.

For a complete tutorial on project configuration, see Creating Projects Using the Command Line Interface in the documentation.

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

License

For terms please see the LICENSE*.TXT files at the root of this distribution.

robotvacuumsample's People

Contributors

adamdbrw avatar amzn-alexpete avatar amzn-changml avatar cgalvan avatar hultonha avatar michalpelka avatar pijaro avatar piotr-zyskowski-rai avatar rainbj avatar shawstar avatar spham-amzn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

robotvacuumsample's Issues

Docker build fails with 'control_toolbox/pid.hpp' file not found

While building the Docker I keep running into:

#0 1967.8 /data/workspace/o3de-extras/Gems/ROS2/Code/Include/ROS2/VehicleDynamics/DriveModels/PidConfiguration.h:11:10: #fatal error: 'control_toolbox/pid.hpp' file not found
#0 1967.8 #include <control_toolbox/pid.hpp>

Does anyone have any idea how to fix this, I already followed this thread to no avail. I've also tried the obvious solution to RUN apt install the control_toolbox earlier in the script.

README.md: Documentation lacks of commands

Describe the bug
Launching the robot application docker image with the command provided (sudo docker run --rm --network="bridge" --gpus all -e DISPLAY=:1 -v /tmp/.X11-unix:/tmp/.X11-unix -it o3de_robot_vacuum_navstack:latest /data/workspace/LaunchNavStack.bash ) results in error, as build command (sudo docker build -t o3de_robot_vacuum_simulation:latest .) refers to building simulation and navstack together. While rest of the documentation shows run command when simulation and navstack was built separately. The mentioned error is:

Unable to find image 'o3de_robot_vacuum_simulation:latest' locally
docker: Error response from daemon: pull access denied for o3de_robot_vacuum_simulation, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

To run the robot application docker image the command has to be change to:

sudo docker run --rm --network="bridge" --gpus all -e DISPLAY=:1 -v /tmp/.X11-unix:/tmp/.X11-unix -it o3de_robot_vacuum_simulation:latest /data/workspace/LaunchNavStack.bash

Please note that the issue should be considered a Major.

Steps to reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/o3de/RobotVacuumSample/blob/main/README.md
  2. Follow the instruction (do not execute the optional command: sudo docker build --build-arg IMAGE_TYPE=navstack -t o3de_robot_vacuum_navstack:latest .

Expected behavior
Documentation provides proper commands for running the Docker Image.

Actual behavior
Documentation does not include commands for running the Docker Image when simulation and navstack were built together.

Found in Branch
main

Commit ID from [o3de/RobotVacuumSample(https://github.com/o3de/RobotVacuumSample) Repository
58bc195

Desktop/Device:

  • Device: PC
  • OS: Linux
  • Version: Ubuntu 20.04.3 LTS
  • CPU: AMD Ryzen 5 3600 6-Core Processor
  • GPU: NVIDIA GeForce RTX 2060 SUPER
  • Memory: 16 GB

Docker fails to build simulation launcher

Describe the bug
On one machine, the docker failed to build the simulation launcher and instead exited with code 137. Instructions at https://github.com/o3de/RobotVacuumSample/blob/main/Docker/README.md were used. This issue is somewhat similar to an issue with ROSConDemo: o3de/ROSConDemo#209. See attached log for details.

Steps to reproduce

  1. Clone the https://github.com/o3de/RobotVacuumSample repository.
  2. Complete pre-requisites as listed at https://github.com/o3de/RobotVacuumSample/blob/main/Docker/README.md.
  3. Navigate to the RobotVacuumSample/Docker folder and, if on Ubuntu 22.04, run sudo docker build -t o3de_robot_vacuum_simulation:latest . via the terminal. If you are running Ubuntu 20.04, run sudo docker build --build-arg ROS_VERSION=galactic --build-arg UBUNTU_VERSION=focal -t o3de_robot_vacuum_simulation:latest .

Expected behavior
The launcher image is built.

Actual behavior
Building is not completed and exits with code 137.

Found in Branch
RobotVacuumSample: main 58bc195
O3DE: development o3de/o3de@ec52f77

Commit ID from o3de/RobotVacuumSample Repository
RobotVacuumSample 58bc195
Commit ID from o3de/o3de Repository
O3DE: development o3de/o3de@ec52f77

Desktop/Device:

  • Device: PC
  • OS: Windows
  • Version: 10
  • CPU: AMD Ryzen 5 3600X
  • GPU: AMD Radeon RX 5700 XT
  • Memory: 16GB

Additional Context
terminal_log1.txt

Wrong branch in readme

Readme asks the user to clone :
https://github.com/o3de/loft-arch-vis-sample.git
It will give the user a 'main' branch, which is incompatible.

Running ROS2 navigation example results in multiple issues

Describe the bug
Running ROS2 navigation example results in 3 issues:

  • Asset processor fails to process multiple assets.
  • RViz window lacking a map.
  • Segmentation fault (core dumped) errors.

All issues occur only on one machine.

Please note that the issue should be considered a Major.

Steps to reproduce

  1. Set up O3DE. (https://www.o3de.org/docs/welcome-guide/setup/setup-from-github/building-linux/)
  2. Set up RobotVacumSample. (https://github.com/o3de/RobotVacuumSample)
  3. Attempt to process all Assets in the project (./AssetProcessor –project-path=~/Builds/RobotVacuumSample)
  4. Launch the Editor. (./Editor)
  5. Open the Loft Level and run the game.
  6. Run RViz. (ros2 launch navigation.launch.py)

Expected behavior
No errors occur when running the project.

Actual behavior
Issues mentioned in the description are present.

Screenshots/Video
image
image
image

Found in Branch
Development (50441b0)
o3de/RobotVacuumSample (main) (58bc195)

Commit ID from o3de/o3de Repository
50441b0

Desktop/Device:

  • Device: PC
  • OS: Ubuntu
  • Version 20.04
  • CPU Intel i7-11700F
  • GPU Nvidia GeForce RTX 3070
  • Memory 32GB

Additional context
specs.zip

Docker readme.md documentation lacks of commands

Describe the bug
Launching the robot application docker image with the command provided (sudo docker run --rm --network="bridge" --gpus all -e DISPLAY=:1 -v /tmp/.X11-unix:/tmp/.X11-unix -it o3de_robot_vacuum_navstack:latest /data/workspace/LaunchNavStack.bash ) results in error, as build command (sudo docker build -t o3de_robot_vacuum_simulation:latest .) refers to building simulation and navstack together. While rest of the documentation shows run command when simulation and navstack was built separately. The mentioned error is:

Unable to find image 'o3de_robot_vacuum_simulation:latest' locally
docker: Error response from daemon: pull access denied for o3de_robot_vacuum_simulation, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

To run the robot application docker image the command has to be change to:

sudo docker run --rm --network="bridge" --gpus all -e DISPLAY=:1 -v /tmp/.X11-unix:/tmp/.X11-unix -it o3de_robot_vacuum_simulation:latest /data/workspace/LaunchNavStack.bash

Please note that the issue should be considered a Major.

Steps to reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/o3de/RobotVacuumSample/tree/main/Docker
  2. Follow the instruction (do not execute the optional command: sudo docker build --build-arg IMAGE_TYPE=navstack -t o3de_robot_vacuum_navstack:latest .

Expected behavior
Documentation provides proper commands for running the Docker Image.

Actual behavior
Documentation does not include commands for running the Docker Image when simulation and navstack were built together.

Found in Branch
main

Commit ID from [o3de/RobotVacuumSample(https://github.com/o3de/RobotVacuumSample) Repository
https://github.com/o3de/RobotVacuumSample/commit/58bc195b8dbfd4da7fe4213ee69404dd741fc2f3

Desktop/Device:

  • Device: PC
  • OS: Linux
  • Version: Ubuntu 20.04.3 LTS
  • CPU: AMD Ryzen 5 3600 6-Core Processor
  • GPU: NVIDIA GeForce RTX 2060 SUPER
  • Memory: 16 GB

README.md multiple text issues

Describe the bug
There are multiple issues with text in the https://github.com/o3de/RobotVacuumSample/blob/main/README.md file:

  1. Requirements
  • ROS2 Gem link https://github.com/o3de/o3de-extras/Gems/ROS2 should be https://github.com/o3de/o3de-extras/tree/development/Gems/ROS2.
  • Gem requirements link https://github.com/o3de/o3de-extras/Gems/ROS2#requirements should be https://github.com/o3de/o3de-extras/tree/development/Gems/ROS2#requirements.
  1. 2. Clone and register the ROS2 Gem locally
  • ~$ $DEMO_BASE/o3de/scripts/o3de.sh register -gp $DEMO_BASE/Gems/ROS2 should be ~$ $DEMO_BASE/o3de/scripts/o3de.sh register -gp $DEMO_BASE/o3de-extras/Gems/ROS2.
  1. 4. Clone and Register this project and build it
  • ~/$ git clone https://github.com/o3de/RobotVacuumSample.git should be ~$ git clone https://github.com/o3de/RobotVacuumSample.git
  • ~/RobotVacuumSample$ $DEMO_BASE/scripts/o3de.sh register -pp . should be ~/RobotVacuumSample$ $DEMO_BASE/o3de/scripts/o3de.sh register -pp .
  1. 5. Launch Editor
  • ~/$ cd RobotVacuumSample/build/linux/bin/profile should be ~$ cd RobotVacuumSample/build/linux/bin/profile.

Steps to reproduce

  1. Go to https://github.com/o3de/RobotVacuumSample/blob/main/README.md.
  2. Read through points listed in the description.

Expected behavior
Documentation has no text errors.

Actual behavior
There are multiple text errors.

Found in Branch
main (50afd46)

Commit ID from o3de/o3de Repository
50afd46

Desktop

  • Device: PC
  • OS: Linux
  • Version: Ubuntu 20.04.3 LTS
  • CPU AMD Ryzen 5 3600
  • GPU NVIDIA GeForce RTX 2060 SUPER
  • Memory 16GB

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.