Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ find_package(catkin REQUIRED COMPONENTS
find_package(spdlog REQUIRED)
find_package(rostest REQUIRED)

catkin_python_setup()

## =============================
## ROS message generation
## =============================
Expand Down Expand Up @@ -75,16 +77,11 @@ target_link_libraries(knowrob-ros ${catkin_LIBRARIES} spdlog::spdlog)
## Python library installation
## =============================

# Install Python library (e.g., knowrob_ros_lib.py)
# With this:
file (COPY
${CMAKE_CURRENT_SOURCE_DIR}/src/knowrob_ros_lib/knowrob_ros_lib.py
DESTINATION ${CATKIN_DEVEL_PREFIX}/lib/python3/dist-packages/knowrob_ros/
)

catkin_install_python(PROGRAMS
scripts/test_knowrob_ros_lib.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# list all executable python and shell scripts for installation
install(PROGRAMS
scripts/*
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

## =============================
Expand Down
50 changes: 34 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,40 @@ MAINTAINER Sascha Jongebloed, [email protected]
ENV SWI_HOME_DIR=/usr/lib/swi-prolog
ENV LD_LIBRARY_PATH=/usr/lib/swi-prolog/lib/x86_64-linux:$LD_LIBRARY_PATH

RUN apt update
RUN apt install -y gdb g++ clang cmake make libeigen3-dev libspdlog-dev libraptor2-dev mongodb-clients libmongoc-1.0-0 libmongoc-dev libfmt-dev software-properties-common python3-catkin-pkg python3-catkin-tools git
RUN apt install -y ros-noetic-catkin

RUN apt-add-repository ppa:swi-prolog/stable
RUN apt update
RUN apt install -y swi-prolog*

# KnowRob dependencies
RUN apt install -y swi-prolog libspdlog-dev \
libboost-python-dev libboost-serialization-dev libboost-program-options-dev \
libraptor2-dev librdf0-dev libgtest-dev \
libfmt-dev libeigen3-dev libmongoc-dev \
doxygen graphviz
RUN apt install -y ros-noetic-tf2-geometry-msgs
RUN apt-get update && apt-get install -y \
software-properties-common && \
apt-add-repository ppa:swi-prolog/stable && \
apt-get update && apt-get install -y \
gdb \
g++ \
clang \
cmake \
make \
libeigen3-dev \
libspdlog-dev \
libraptor2-dev \
librdf0-dev \
libgtest-dev \
libboost-python-dev \
libboost-serialization-dev \
libboost-program-options-dev \
libfmt-dev \
mongodb-clients \
libmongoc-1.0-0 \
libmongoc-dev \
doxygen \
graphviz \
python3 \
python3-dev \
python3-pip \
python3-venv \
python-is-python3 \
python3-catkin-pkg \
python3-catkin-tools \
git \
ros-noetic-catkin \
ros-noetic-tf2-geometry-msgs \
swi-prolog*

RUN mkdir /catkin_ws
RUN mkdir /catkin_ws/src
Expand All @@ -30,7 +49,6 @@ WORKDIR /catkin_ws
RUN /usr/bin/catkin init
RUN . /opt/ros/noetic/setup.sh && /usr/bin/catkin build

RUN echo "aaaa"
# Build workspace with knowrob_ros
WORKDIR /catkin_ws/src
ADD . /catkin_ws/src/knowrob_ros
Expand Down
4 changes: 2 additions & 2 deletions action/Tell.action
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TellMessage tell
---
byte TRUE = 0
byte TELL_FAILED = 1
byte TELL_FAILED = 0
byte TRUE = 1

byte status
---
Expand Down
Empty file modified scripts/test_knowrob_ros_lib.py
100644 → 100755
Empty file.
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env python3

from os.path import dirname, abspath, basename
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

setup_args = generate_distutils_setup(
packages=[basename(dirname(abspath(__file__)))],
package_dir={'': 'src'},
)

setup(**setup_args)
File renamed without changes.
File renamed without changes.