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

Unable to run "catkin_make"

asked 2023-02-25 23:56:10 -0500

SukarnaJana gravatar image

Quick Glance:

I am using ROS2 Humble on Ubuntu Jammy(22.04) and i was trying to integrate YDLidar by following this Guide and in point we have to Run catkin_make but i am unable to use it.

What i Did:

I tried to run sudo apt install catkin and i got this error: E: Unable to correct problems, you have held broken packages.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python3-catkin-pkg : Conflicts: catkin but 0.8.10-7 is to be installed
python3-catkin-pkg-modules : Conflicts: catkin but 0.8.10-7 is to be installed
E: Unable to correct problems, you have held broken packages.

I went though this ROS page unable to fix by changing the last command based on my ROS version but i got this error

E: Package 'python-catkin-pkg' has no installation candidate
E: Package 'python-empy' has no installation candidate
E: Package 'python-nose' has no installation candidate

I tried This also, I too got same error.

So, please help me / It will be really Great-full

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2023-02-26 09:50:31 -0500

gvdhoorn gravatar image

There is no catkin_make in ROS 2.

The tutorial you link is from 2019, and was written for ROS Melodic, which is a ROS 1 version.

You'll have to either ask the author to update the tutorial (I don't expect that to happen), or find a tutorial which specifically supports ROS 2 Humble.

edit flag offensive delete link more

Comments

Thanks for bringing this point under my notice, that Catkin is not there in ROS2

SukarnaJana gravatar image SukarnaJana  ( 2023-02-28 01:32:03 -0500 )edit
0

answered 2023-02-26 16:31:57 -0500

Davies Ogunsina gravatar image

updated 2023-02-26 16:34:26 -0500

ROS 2 doesn't work on catkin ...it works on colcon build and also ydlidar official driver repo ,you can get it online .clone the package into your src in your workspace and cd .. into the root of your workspace and build with colcon build .

Enable lidar port :

sudo chmod 666 /dev/tty#

source the workspace, then launch the node.

Open rviz and set the fixed frame to that of your lidar frame.

Add the scan topic ...set the reliability policy to system default .

Link to the repo below :

https://github.com/YDLIDAR/ydlidar_ro...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-02-25 23:56:10 -0500

Seen: 333 times

Last updated: Feb 26 '23