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

How do I install rosdep too #465

Open
conner-replogle opened this issue Sep 5, 2024 · 3 comments
Open

How do I install rosdep too #465

conner-replogle opened this issue Sep 5, 2024 · 3 comments

Comments

@conner-replogle
Copy link

I tried adding it as a ros package but to no avail.
I keep getting
bash: rosdep: command not found

@wentasah
Copy link
Contributor

wentasah commented Sep 5, 2024

Why do you need to install rosdep? With Nix, it's almost not needed, because the packages in this overlay are already generated with the help of rosdep and depend on correct nixpkgs dependencies. Running rosdep install is therefore not needed on NixOS and would not be useful on non-NixOS distros.

If you really need it, you can try nix-env -f . -i -A python3Packages.rosdep.

@conner-replogle
Copy link
Author

I'm using this to build realsense-ros are you saying there's a way to just make the flake hold all the dependencies it needs instead of rosdep?

@wentasah
Copy link
Contributor

Sorry for delayed answer. Yes. It's possible. I was working on a tool that allows doing just that and uses rosdep under the hood. It's called ros2nix and now it's probably in state usable by others.

I tried it on realsense-ros:

git clone https://github.com/IntelRealSense/realsense-ros
ros2nix --output-as-nix-pkg-name --fetch --flake $(find -name package.xml)
nix build .#humble.realsense2-camera

And it complains about missing RealSense SDK. If you have a Nix expression for it, you can run:

ros2nix --output-as-nix-pkg-name --fetch --flake --extra-build-inputs realsense-sdk $(find -name package.xml_

and add your expression to the generated overlay.nix. It might then work.

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