Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build issue with catkin build ROS1 #232

Open
rua0ra1 opened this issue Jul 10, 2024 · 6 comments
Open

build issue with catkin build ROS1 #232

rua0ra1 opened this issue Jul 10, 2024 · 6 comments

Comments

@rua0ra1
Copy link

rua0ra1 commented Jul 10, 2024

Hi,
I am trying to build tsid repo with catkin build ROS1. But, I am having problem with eigenpy as shown in figure
eigen_py_issue
But I have already installed the eigenpy by using
sudo apt-get install ros-noetic-eigenpy

I really appreciate if you can help me to solve this issue.

@nim65s
Copy link
Contributor

nim65s commented Jul 11, 2024

Can you try again after sudo apt-get install python-is-python3 ?

@rua0ra1
Copy link
Author

rua0ra1 commented Jul 11, 2024

sorry @nim65s it didn't work. Are there any build instructions for ros?. Ideally I want to use tsid c++ library in ros to build a hierarchical control for our robot. But, So far, I haven't seen any build instructions for ros . And also I have seen examples in python. Are there any examples for rosc++ or c++?. Am I missing something here?. Thank you and I really appreciate your help

@nim65s
Copy link
Contributor

nim65s commented Jul 13, 2024

Standard CMake build instructions seems to work fine for me on ros noetic. At least this work without issue:

FROM ros:noetic

RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
    --mount=type=cache,sharing=locked,target=/var/lib/apt \
    apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -qqy --no-install-recommends \
    ros-noetic-pinocchio

ADD https://github.com/stack-of-tasks/tsid/releases/download/v1.7.0/tsid-1.7.0.tar.gz /
ADD https://github.com/stack-of-tasks/eiquadprog/releases/download/v1.2.8/eiquadprog-1.2.8.tar.gz /
WORKDIR /src

RUN . /opt/ros/noetic/setup.sh \
 && tar xvf ../eiquadprog-1.2.8.tar.gz \
 && cmake -B build -S eiquadprog-1.2.8 \
 && cmake --build build \
 && cmake --build build -t test \
 && cmake --build build -t install \
 && rm -rf build eiquadprog-1.2.8 \
 && tar xvf ../tsid-1.7.0.tar.gz \
 && cmake -B build -S tsid-1.7.0 \
 && cmake --build build \
 && cmake --build build -t test \
 && cmake --build build -t install \
 && rm -rf build tsid-1.7.0

Hum, actually, some unittests are failing in TSID, I'll have a look.

Can you provide a way for me to reproduce your issue ?

@rua0ra1
Copy link
Author

rua0ra1 commented Jul 13, 2024

Hi @nim65s , thanks for the help. I was trying to build and use tsid as a catkin package.

# Step 1: Create a Catkin workspace
cd ~
mkdir -p catkin_ws/src

# Step 2: Clone the TSID repository into the src directory
cd ~/catkin_ws/src
git clone https://github.com/stack-of-tasks/tsid.git

# Step 3: Build the TSID package
cd ~/catkin_ws
catkin build tsid


I installed tsid using robotpkg-py3*-tsid earlier. I went through the python examples without having any issue.

Do you think previous installation using robotpkg conflicting with building with catkin package. Thank you

@nim65s
Copy link
Contributor

nim65s commented Jul 15, 2024

You must not have the same package installed twice. You can either use our softwares from robotpkg- or from ros-, but not at the same time. Having 2 different versions of eigenpy / hpp-fcl / pinocchio / eiquadprog / tsid / etc. active at the same time will result in errors.

For your setup, I don't have catkin on ros noetic, but catkin_make / catkin_make_isolated. And these are working fine:

FROM ros:noetic

RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
    --mount=type=cache,sharing=locked,target=/var/lib/apt \
    --mount=type=cache,sharing=locked,target=/root/.cache \
    apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -qqy --no-install-recommends \
    git \
    ros-noetic-eiquadprog \
    ros-noetic-pinocchio

WORKDIR /ws/src
RUN . /opt/ros/noetic/setup.sh \
 && git clone --recursive https://github.com/stack-of-tasks/tsid \
 && cd .. \
 && catkin_make_isolated

@rua0ra1
Copy link
Author

rua0ra1 commented Jul 15, 2024

@nim65s thank you so much for detail answer and I really appreciate it. I will follow the setup instructions given above. Sorry for the trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants