Giter Club home page Giter Club logo

subt_hello_world's Introduction

Overview An overview of a Robot SLAM stack


SubT Hello World

This repository holds a set of quick-start hello world tutorials for the DARPA SubT Virtual Testbed. These tutorials will walk you through the complete process of developing the software stack for a simulated robot. Please refer to the following resources for additional information and assistance:

Current Tutorials

Official SubT Resources

ROS Related Resources

Ignition Gazebo Simulation Resources

subt_hello_world's People

Contributors

adlarkin avatar angelacmaio avatar ibrahiminfinite avatar kscottz avatar mjcarroll avatar

Stargazers

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

Watchers

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

subt_hello_world's Issues

Development environment

[+] Building 31.7s (2/2) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 4.35kB 0.0s
=> ERROR [internal] load metadata for docker.io/nvidia/cudagl:11.4.2-de 31.7s

[internal] load metadata for docker.io/nvidia/cudagl:11.4.2-devel-ubuntu18.04:


Dockerfile:12

10 | # https://hub.docker.com/r/nvidia/cudagl/
11 | # https://github.com/NVIDIA/nvidia-docker/wiki/CUDA
12 | >>> FROM nvidia/cudagl:11.4.2-devel-ubuntu18.04
13 |
14 | # setup timezone

ERROR: failed to solve: nvidia/cudagl:11.4.2-devel-ubuntu18.04: failed to resolve source metadata for docker.io/nvidia/cudagl:11.4.2-devel-ubuntu18.04: failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/bc/bc4eea507469a745615c69a35a7f1c14978366be1066714aadfbb834be098bbf/data?verify=1718679139-aE%2Bztz17t1cRMJKtbuHvhJrzhZo%3D": dial tcp [2a03:2880:f10e:83:face:b00c:0:25de]:443: i/o timeout

Hello World Setup

In the Hello World(Tutorial 1) the command for running the subt docker container was :

./subt/docker/run.bash osrf/subt-virtual-testbed:latest \ cave_circuit.ign \ worldName:=simple_cave_01 \ robotName1:=X1 \ robotConfig1:=X1_SENSOR_CONFIG_1

When I ran this on my system received the following response :
Screenshot from 2021-08-17 22-56-41
where it says that :
circuit was not defined, exiting now
Failed to parse /home/developer/subt_ws/install/share/subt_ign/launch/cave_circuit.ign because of circuit was not defined, exiting now

Then I ran the following command :

./subt/docker/run.bash osrf/subt-virtual-testbed:latest \ circuit :=cave_circuit.ign \ worldName:=simple_cave_01 \ robotName1:=X1 \ robotConfig1:=X1_SENSOR_CONFIG_1

And there is no response the terminal just exits blankly and there is Ignition Simulator opening.

Screenshot from 2021-08-17 22-53-24

Please could anyone help out with what is the error that I am doing?

python-vcstools moved out of incomming for build_common_image.bas

Whilst building the common-image for subt, It seems that python-vcstool has been moved out of incomming.

I was able to get the install to continue by installing it via pip.

so replaced the python-vcstool with python-pip and added a new line in the dockerfile:
RUN pip install vcstool

@@ -23,14 +23,14 @@ RUN echo "deb http://packages.ros.org/ros/ubuntu bionic main" > /etc/apt/sources
   && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
 
 # install ROS (including dependencies for building packages) and other packages
-RUN apt-get -qq update && apt-get -q -y install \
+RUN apt-get  update && apt-get -y install \
   build-essential \
   git \
   python-rosdep \
   python-rosinstall \
+  python-pip \
   python-rosinstall-generator \
   python-wstool \
-  python-vcstool \
   python3-colcon-common-extensions \
   ros-melodic-desktop \
   ros-melodic-teleop-twist-keyboard \
@@ -41,6 +41,7 @@ RUN apt-get -qq update && apt-get -q -y install \
   && rm -rf /var/lib/apt/lists/* \
   && apt-get -qq clean
 
+RUN pip install vcstool
 # sdformat8-sdf conflicts with sdformat-sdf installed from gazebo
 # so we need to workaround this using a force overwrite
 # Do this before installing ign-gazebo
@@ -101,4 +102,4 @@ RUN [ "/bin/bash" , "-c" , \
 RUN mkdir -p ${SOLUTION_WS_PATH}/src
 
 # When running a container start in the developer's home folder
-WORKDIR /home/$USERNAME
\ No newline at end of file
+WORKDIR /home/$USERNAME

Extract the maps to use in previous Gazebo

Hi,

I would like to know if there is a known way to use the IGN cave maps with the previous builds of Gazebo (10 for example)? Does anyone have any tips for this?

Thanks!

Dev Environment Setup

Hi,

Are the instructions for setting up a development environment (Tutorial 2) still valid? I'm trying to set it up on my own machine and it seems like there are some dependency-related issues?

Error:

Here's what I see:

Step 19/23 : RUN mkdir -p ${DEPS_WS_PATH}/src   && vcs import   --recursive   --input ${repos_file}   ${DEPS_WS_PATH}/src
 ---> Using cache
 ---> 69ca39bc2b9f
Step 20/23 : WORKDIR ${DEPS_WS_PATH}
 ---> Using cache
 ---> 475f0d2a8fa5
Step 21/23 : RUN [ "/bin/bash" , "-c" ,   "source /opt/ros/melodic/setup.bash   && sudo apt-get -qq update   && rosdep install --from-paths src --ignore-src -r -y   && colcon build   && sudo rm -rf /var/lib/apt/lists/*   && sudo apt-get -qq clean" ]
 ---> Running in e1ff81b036e0
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
subt_ign: Cannot locate rosdep definition for [ignition-transport9]
subt_rf_interface: No definition of [ignition-math6] for OS version [bionic]
subt_ros: Cannot locate rosdep definition for [ignition-transport9]
subt_communication_model: No definition of [ignition-common3] for OS version [bionic]
subt_communication_broker: Cannot locate rosdep definition for [ignition-transport9]
ctu_cras_norlab_absolem_sensor_config_1: Cannot locate rosdep definition for [ignition-gazebo4]

<...other packages are installed...>

Finished <<< explorer_x1_sensor_config_1 [3.51s]
Finished <<< marble_qav500_sensor_config_1 [3.52s]
--- stderr: subt_ign
CMake Error at CMakeLists.txt:38 (find_package):
  By not providing "Findignition-launch3.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "ignition-launch3", but CMake did not find one.

  Could not find a package configuration file provided by "ignition-launch3"
  with any of the following names:

    ignition-launch3Config.cmake
    ignition-launch3-config.cmake

  Add the installation prefix of "ignition-launch3" to CMAKE_PREFIX_PATH or
  set "ignition-launch3_DIR" to a directory containing one of the above
  files.  If "ignition-launch3" provides a separate development package or
  SDK, be sure it has been installed.


---
Failed   <<< subt_ign [4.52s, exited with code 1]
Aborted  <<< ctu_cras_norlab_absolem_sensor_config_1 [4.53s]
Aborted  <<< darknet_ros [51.1s]

Summary: 74 packages finished [1min 23s]
  1 package failed: subt_ign
  2 packages aborted: ctu_cras_norlab_absolem_sensor_config_1 darknet_ros
  3 packages had stderr output: darknet_ros multirobot_map_merge subt_ign
  4 packages not processed
The command '/bin/bash -c source /opt/ros/melodic/setup.bash   && sudo apt-get -qq update   && rosdep install --from-paths src --ignore-src -r -y   && colcon build   && sudo rm -rf /var/lib/apt/lists/*   && sudo apt-get -qq clean' returned a non-zero code: 1

Attempted Solution:

My initial guess was that the specified image (FROM nvidia/cudagl:10.1-devel-ubuntu18.04 ) did not support the dependencies referenced. I tried switching to FROM nvidia/cudagl:9.1-devel-ubuntu16.04 because the CUDA version I have installed is 9.1, but got errors related to broken packages.

...
Step 4/23 : RUN apt-get -qq update && apt-get -q -y install   build-essential   git   python-rosdep   python-rosinstall   python-rosinstall-generator   python-wstool   python3-vcstool   python3-colcon-common-extensions   ros-melodic-desktop   ros-melodic-teleop-twist-keyboard   tmux   vim   wget   && rosdep init   && rm -rf /var/lib/apt/lists/*   && apt-get -qq clean
 ---> Running in 097b466a0751
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.1ubuntu2).
build-essential set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ros-melodic-desktop : Depends: ros-melodic-common-tutorials but it is not going to be installed
                       Depends: ros-melodic-geometry-tutorials but it is not going to be installed
                       Depends: ros-melodic-robot but it is not going to be installed
                       Depends: ros-melodic-ros-tutorials but it is not going to be installed
                       Depends: ros-melodic-urdf-tutorial but it is not going to be installed
                       Depends: ros-melodic-visualization-tutorials but it is not going to be installed
                       Depends: ros-melodic-viz but it is not going to be installed
 ros-melodic-teleop-twist-keyboard : Depends: ros-melodic-geometry-msgs but it is not going to be installed
                                     Depends: ros-melodic-rospy but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get -qq update && apt-get -q -y install   build-essential   git   python-rosdep   python-rosinstall   python-rosinstall-generator   python-wstool   python3-vcstool   python3-colcon-common-extensions   ros-melodic-desktop   ros-melodic-teleop-twist-keyboard   tmux   vim   wget   && rosdep init   && rm -rf /var/lib/apt/lists/*   && apt-get -qq clean' returned a non-zero code: 100

Is there something in the Dockerfile I should change/update? I can submit a PR for it if it would help others. I would greatly appreciate any assistance in resolving this issue. Thank you!

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.