Code Monkey home page Code Monkey logo

Comments (5)

marcoag avatar marcoag commented on August 12, 2024

Seems to be an issue with gzclient, maybenot related to rmf?

# gzclient
Aborted (core dumped)

RMF has not been made available on docker environments yet, however you can have a look at some efforts being done here:

https://github.com/osrf/rmf-web/tree/main/packages/dashboard/docker

It might also be helpful to run the debian packaged binaries instead of the source for consistency. Instructions on how to use them can be found in the intro of the ros2 multi-robot book:

https://osrf.github.io/ros2multirobotbook/intro.html#install-and-run-rmf-demos

from rmf_demos.

mikaelarguedas avatar mikaelarguedas commented on August 12, 2024

Thanks for having a look!
As mentioned in the issue description the issue also happens when using the deb packages. Other demos based on docker and gz client work fine it may be due to some RMF plugins or models?

from rmf_demos.

youliangtan avatar youliangtan commented on August 12, 2024

I tested it with some tweaks on the docker file:

Dockerfile used
FROM ros:foxy

RUN apt-get update \
  && apt-get install -y \
    cmake \
    curl \
    git \
    python3-colcon-common-extensions \
    python3-requests \
    python3-shapely \
    python3-vcstool \
    python3-yaml \
    qt5-default \
    wget \
    npm \
    python3-pip \
  && pip3 install Flask flask-socketio flask-cors \
  && rm -rf /var/lib/apt/lists/*

# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D2486D2DD83DB69272AFE98867170598AF249743

# setup sources.list
RUN . /etc/os-release \
    && echo "deb http://packages.osrfoundation.org/gazebo/$ID-stable `lsb_release -sc` main" > /etc/apt/sources.list.d/gazebo-latest.list

RUN mkdir $HOME/rmf_demos_ws
WORKDIR $HOME/rmf_demos_ws
RUN mkdir src
RUN rosdep update --rosdistro $ROS_DISTRO
RUN wget https://raw.githubusercontent.com/osrf/rmf_demos/master/rmf_demos.repos \
    && vcs import src < rmf_demos.repos \
    && apt-get update \
    && apt-get upgrade -y \
    && rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y \
    && rm -rf /var/lib/apt/lists/*
RUN apt-get update \
    && apt-get install -y ignition-dome \
    && rm -rf /var/lib/apt/lists/*

# compile rmf_demo_panel gui
RUN npm install --prefix src/rmf/rmf_demos/rmf_demo_panel/rmf_demo_panel/static/ \
  && npm run build --prefix src/rmf/rmf_demos/rmf_demo_panel/rmf_demo_panel/static/

# colcon compilation
RUN . /opt/ros/$ROS_DISTRO/setup.sh \
  && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release \
  && rm -rf build devel src \
  && sed -i '$isource "/rmf_demos_ws/install/setup.bash"' /ros_entrypoint.sh

Then run with headless

docker run -it --network host rmf:test  ros2 launch demos office.launch.xml headless:=true
<New terminal> firefox localhost:5000

Similarly, this works on rocker

from rmf_demos.

mikaelarguedas avatar mikaelarguedas commented on August 12, 2024

thanks for these updates @tanyouliang95 ! I'll give this a try in the coming days and let you know

from rmf_demos.

youliangtan avatar youliangtan commented on August 12, 2024

No update on this issue. Closing this as rmf_demos repo is migrated to https://github.com/open-rmf/rmf_demos

from rmf_demos.

Related Issues (20)

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.