ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

catkin_make fails for ros_canopen in rasp and desktop

asked 2020-08-25 09:40:00 -0500

VictorBarth gravatar image

updated 2020-08-26 13:36:08 -0500

Hi, I've downloaded ros canopen using

git clone -b melodic-devel https://github.com/ros-industrial/ros_canopen

to catkin_ws/src. I tried it in desktop and raspberry.


EDIT: rosdep update from raspberry:

reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Add distro "ardent"
Add distro "bouncy"
Add distro "crystal"
Add distro "dashing"
Add distro "eloquent"
Add distro "foxy"
Add distro "groovy"
Add distro "hydro"
Add distro "indigo"
Add distro "jade"
Add distro "kinetic"
Add distro "lunar"
Add distro "melodic"
Add distro "noetic"
Add distro "rolling"
updated cache in /home/raspex/.ros/rosdep/sources.cache

and rosdep install --from-paths src/ --ignore-src --rosdistro melodic

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
socketcan_bridge: No definition of [roslint] for OS version [helium]
canopen_motor_node: No definition of [urdf] for OS version [helium]
canopen_chain_node: No definition of [diagnostic_updater] for OS version [helium]

EDIT 2: dpkg -l | grep rosdep

ii  python-rosdep  0.13.0-1 all rosdep package manager abstraction tool for ROS

rosdep --version

0.13.0

But when I try to do catkin_make_isolated I get this message for Desktop:

==> Processing catkin package: 'canopen_motor_node'
==> Creating build directory: 'build_isolated/canopen_motor_node'
==> Building with env: '/home/barth/Desktop/catkin_ws/devel_isolated/canopen_chain_node/env.sh'
==> cmake /home/barth/Desktop/catkin_ws/src/ros_canopen/canopen_motor_node -DCATKIN_DEVEL_PREFIX=/home/barth/Desktop/catkin_ws/devel_isolated/canopen_motor_node -DCMAKE_INSTALL_PREFIX=/home/barth/Desktop/catkin_ws/install_isolated -G Unix Makefiles in '/home/barth/Desktop/catkin_ws/build_isolated/canopen_motor_node'
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/barth/Desktop/catkin_ws/devel_isolated/canopen_motor_node
-- Using CMAKE_PREFIX_PATH: /home/barth/Desktop/catkin_ws/devel_isolated/canopen_chain_node;/home/barth/Desktop/catkin_ws/devel_isolated/canopen_402;/home/barth/Desktop/catkin_ws/devel_isolated/canopen_master;/home/barth/Desktop/catkin_ws/devel_isolated/socketcan_interface;/home/barth/Desktop/catkin_ws/devel_isolated/ros_canopen;/home/barth/Desktop/catkin_ws/devel_isolated/led_blink;/home/barth/Desktop/catkin_ws/devel_isolated/firstplot;/home/barth/Desktop/catkin_ws/devel_isolated/can_msgs;/home/barth/Desktop/catkin_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/barth/Desktop/catkin_ws/devel_isolated/canopen_chain_node;/home/barth/Desktop/catkin_ws/devel_isolated/canopen_402;/home/barth/Desktop/catkin_ws/devel_isolated/canopen_master;/home/barth/Desktop/catkin_ws/devel_isolated/socketcan_interface;/home/barth/Desktop/catkin_ws/devel_isolated/ros_canopen;/home/barth/Desktop ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-08-25 09:54:24 -0500

gvdhoorn gravatar image

updated 2020-08-25 11:28:48 -0500

Am I doing something wrong, or I need to get some more packages first?

Just cloning a repository is almost always insufficient to be able to build a package.

Please refer to #q252478 for an example workflow which should help install all required dependencies.

Note that this is not really something specific to ROS: almost all software has dependencies, and without those dependencies you cannot build nor use it. If building from source (and see #q320046 for some thoughts on when building from source makes sense) you are responsible for making sure you have all dependencies. or build errors like the on you show will occur.


Edit:

I didn't noticed the error messages

with those errors, rosdep has not installed anything, so in essence nothing has changed and "it didn't work" seems like it would be to be expected.

But, seeing this:

Add distro "ardent"
Add distro "bouncy"
Add distro "crystal"
Add distro "dashing"
Add distro "eloquent"
Add distro "foxy"
Add distro "groovy"
Add distro "hydro"
Add distro "indigo"
Add distro "jade"
Add distro "kinetic"
Add distro "lunar"
Add distro "melodic"
Add distro "noetic"
Add distro "rolling"

makes me suspicious: recent versions of rosdep actually skip old distributions such as groovy nd hydro with messages like this one:

Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Skip end-of-life distro "crystal"
Add distro "dashing"
Add distro "eloquent"
Add distro "foxy"
Skip end-of-life distro "groovy"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Add distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
Add distro "noetic"
Add distro "rolling"

So now I'm curious to know whether you have an up-to-date rosdep installed and how you installed it.

What is the output of dpkg -l | grep rosdep and rosdep --version?

If the output of the first command is python3-rosdep2 or python-rosdep2, you have the wrong rosdep installed (wiki/UpstreamPackages), which would explain why it cannot install any dependencies for you.

edit flag offensive delete link more

Comments

thx for your reply, I tried it, but didn't work

VictorBarth gravatar image VictorBarth  ( 2020-08-25 10:10:04 -0500 )edit
1

I tried it, but didn't work

It's always somewhat surprising to me when people post such comments.

We cannot know what did not work, or which error messages you see, or what did happen instead.

You'll have to be (much) more specific for us to be able to help you.

gvdhoorn gravatar image gvdhoorn  ( 2020-08-25 10:20:56 -0500 )edit

I keep with the same problem in both machines. in desktop:

Could not find muparser

in raspberry:

Could not find a package configuration file provided by  "diagnostic_updater"'
VictorBarth gravatar image VictorBarth  ( 2020-08-25 10:54:04 -0500 )edit
1

Please update your original question text (ie: append) with a verbatim copy of the commands you ran and the output they generated.

gvdhoorn gravatar image gvdhoorn  ( 2020-08-25 11:01:35 -0500 )edit

Sorry, I didn't noticed the error messages

VictorBarth gravatar image VictorBarth  ( 2020-08-25 11:16:50 -0500 )edit

Doing as you say, this is the output:

dpkg -l | grep rosdep

ii  python-rosdep  0.13.0-1 all rosdep package manager abstraction tool for ROS

rosdep --version

0.13.0
VictorBarth gravatar image VictorBarth  ( 2020-08-26 13:22:45 -0500 )edit

The current version of rosdep (on Ubuntu Bionic) is 0.19.0-1, so your version is very old.

How did you install ROS? How did you install rosdep?

What is the output of apt-cache policy python-rosdep?

gvdhoorn gravatar image gvdhoorn  ( 2020-08-26 13:37:12 -0500 )edit

Actually was not me that installed it on rasp. I only installed on my desktop, and it is 0.19.0-1. There is a easy way to update, or I need to del and reinstall?

apt-cache policy python-rosdep

python-rosdep:
  Installed: 0.13.0-1
  Candidate: 0.13.0-1
  Version table:
 *** 0.13.0-1 500
        500 http://packages.ros.org/ros/ubuntu bionic/main armhf Packages
        100 /var/lib/dpkg/status
VictorBarth gravatar image VictorBarth  ( 2020-08-26 14:02:27 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-08-25 09:40:00 -0500

Seen: 322 times

Last updated: Aug 26 '20