-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
add xenomai 3 support with xenomai 2 compatibility #301
add xenomai 3 support with xenomai 2 compatibility #301
Conversation
@meyerj I believe many tests are failing because of timeouts.
But If I go to the build directory and run the test manually:
But right after I run it again:
buffers_test causes the system to hang immediately. But the stream in a ROS topic is working.. |
Here's the simplest Dockerfile to test different versions: ARG ROS_DISTRO=melodic
ARG BASE_IMAGE=amd64/ros:${ROS_DISTRO}-ros-base
FROM ${BASE_IMAGE}
ARG XENOMAI_VERSION=3.0.8
RUN apt-get update --fix-missing
RUN apt-get install -y libboost-all-dev wget curl cmake
RUN curl -L https://xenomai.org/downloads/xenomai/stable/xenomai-${XENOMAI_VERSION}.tar.bz2 | tar -xj
WORKDIR xenomai-${XENOMAI_VERSION}
RUN ./configure --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --prefix=/usr/xenomai-$
{XENOMAI_VERSION}
RUN make -j$(nproc) && make install
ENV XENOMAI_ROOT_DIR=/usr/xenomai-${XENOMAI_VERSION}
ENV PATH=$XENOMAI_ROOT_DIR/bin:$XENOMAI_ROOT_DIR/sbin:$PATH
ENV PKG_CONFIG_PATH=$XENOMAI_ROOT_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
ENV LD_LIBRARY_PATH=$XENOMAI_ROOT_DIR/lib:$LD_LIBRARY_PATH
ENV OROCOS_TARGET=xenomai
WORKDIR /rtt_ws/src
RUN curl -L https://github.com/ahoarau/rtt/archive/xenomai3-support-v3.tar.gz | tar -xz
RUN curl -L https://github.com/orocos-toolchain/log4cpp/archive/toolchain-2.9.tar.gz | tar -xz
RUN curl -L https://github.com/orocos-toolchain/ocl/archive/toolchain-2.9.tar.gz | tar -xz
RUN curl -L https://github.com/ahoarau/rtt_ros_integration/archive/xenomai3-support-v3.tar.gz | tar -xz
WORKDIR /rtt_ws
RUN . /opt/ros/${ROS_DISTRO}/setup.sh && rosdep install --from-path src/ -i -r -y
RUN . /opt/ros/${ROS_DISTRO}/setup.sh && catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release To test : docker build --build-arg XENOMAI_VERSION=3.0.8 --build-arg ROS_DISTRO=melodic .
docker build --build-arg XENOMAI_VERSION=2.6.5 --build-arg ROS_DISTRO=kinetic . |
With this commit I fixed the xenomai task names called "Task@1 ." in Here's the output of just loading and setting an activity to a component :
|
os::MutexLock lock(msg_lock); | ||
#endif | ||
msg_cond.broadcast(); // required for waitForFunctions() (3rd party thread) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this one ? #304
@meyerj Any news on this PR ? |
068085e
to
cd9985c
Compare
Hopefully the latest version before merging.
This contains #245 + resetting the variables on the
FindXenomai.cmake
.I rebased the changes from the latest commit of
toolchain-2.9
.It builds with
xenomai 2.6.5
andxenomai 3
(from the git repo, 3.1-devel)