File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,28 @@ pip3 install roslibpy
1515https://pypi.python.org/pypi/service_identity
1616```
1717
18+ ## Building docker image
19+ ``` bash
20+ sudo docker build -t rosgraph_monitor:0.1 .
21+ sudo docker run -it rosgraph_monitor:0.1
22+ //once inside the image
23+ roscore
24+ ```
25+ In a new terminal
26+ ``` bash
27+ sudo docker ps -l
28+ // check for NAMES
29+ sudo docker exec -it NAME bash
30+ //once inside the image
31+ source /graph_ws/devel/setup.bash
32+ rosrun rosgraph_monitor monitor
33+ ```
34+
35+
1836## Running the system
1937```
2038roslaunch rosbridge_server rosbridge_websocket.launch
2139roslaunch rosgraph_monitor demo.launch
2240python3 src/rosgraph_monitor/nav_model.py
2341rosservice call /load_observer "name: 'NavObserver'"
24- ```
42+ ```
Original file line number Diff line number Diff line change 1+ FROM osrf/ros:melodic-desktop-bionic
2+
3+ RUN apt-get update \
4+ && apt-get install -y git \
5+ python-catkin-tools
6+
7+ RUN mkdir -p /graph_ws/src
8+ WORKDIR /graph_ws/src
9+ RUN git clone --depth=1 -b nav_observer https://github.com/ipa-hsd/rosgraph_monitor/
10+ RUN git clone --depth=1 -b SoSymPaper https://github.com/ipa-nhg/ros_graph_parser
11+
12+ WORKDIR /graph_ws/
13+ RUN rosdep install --from-paths src --ignore-src -r -y
14+ RUN . /opt/ros/melodic/local_setup.sh \
15+ && catkin build \
16+ && . devel/local_setup.sh
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+
4+ # setup ros environment
5+ source " graph_ws/devel/setup.bash"
6+ exec " $@ "
You can’t perform that action at this time.
0 commit comments