Installing a custom dependency with rosdep
Hello,
I have a Ros package (let's call it myRosPkg
) which depends on a custom version of a python module (that we call myCustomPkg
).
This python module is on a forked github repository.
I would like rosdep to automatically install this dependency.
To do so, here is what I have done (following the instructions given here and here.
1. Created a custom_deps.yaml
with the following content:
myCustomPkg:
ubuntu: |
pip install git+https://github.com/user/repo.git@master
2. Append this file to /etc/ros/rosdep/sources.list.d/20-default.list
echo file://$(readlink -f custom_deps.yaml) >> /etc/ros/rosdep/sources.list.d/20-default.list
3. Update rosdep and check install (this is where it fails)
> rosdep update
...
> rosdep resolve myCustomPkg --os=ubuntu:xenial
rosdep detected OS: [elementary] aliasing it to: [ubuntu]
#apt
pip install git+https://github.com/user/repo.git@master
> rosdep check myRosPkg --os=ubuntu:xenial -i
rosdep detected OS: [elementary] aliasing it to: [ubuntu]
System dependencies have not been satisified:
apt pip
apt install
apt git+https://github.com/user/repo.git@master
Is there something wrong I did ? (maybe rosdep is not parsing the command as a multiline string?)
Thanks in advance :)
Did you copy-paste the yaml content correctly? The following seems to be missing one level of indentation:
Yes i just forgot to put it correcly on the question