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

Kinect_ros2 cannot locate rosdep definition for [libfreenect] #5

Open
ysmmrao1905 opened this issue Oct 6, 2023 · 2 comments
Open

Comments

@ysmmrao1905
Copy link

Hello,
I wanted to connect kinectv1 with ros2 (Humble). I have tried to install the kinect_ros2 driver as per the set of instructions given in the githup repository. As soon as i reached the rosdep part i received the following ;
ERROR: The following packages/stacks could not have their rosdep keys resolved to system dependencies:
kinect_ros2 : cannot locate rosdep definition for [libfreenect]
Continuing to install resolvable dependencies...
#All required rosdeps installed successfully

When i apply the colcon build command I get a couple of warnings like :
unused parameter dev
unused parameter timestamp
and then :
Finished <<< kinect_ros2
Summary : 1 package finished
1 package had stderr output : kinect_ros2

and When i check the list of packages in ros2 i dont find the kinect_ros2 package in it.
Could you give me a solution for this?

@AddyPete
Copy link

in libfreenect installation

git clone https://github.com/OpenKinect/libfreenect
cd libfreenect
mkdir build
cd build
cmake -L .. # -L lists all the project options
make

instead of make do sudo make install so the library will be installed in /usr/local/lib. Just ignore the error message: kinect_ros2 : cannot locate rosdep definition for [libfreenect]. As long as you can build it with colcon without errors, you're good to go

@AddyPete
Copy link

Also execute: sudo ldconfig -v
before sudo make install

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