Installing barrett_hand
Hello,
I have installed ROS kinetic on a raspberry pi 4 and now I am trying to install the barret_hand
package.
I referred to the link on ROS wiki https://wiki.ros.org/barrett_hand?distro=kinetic and used the command
$ sudo apt-get install ros-distro-barrett-hand
inside my ros workspace and I get the error
Unable to locate package ros-distro-barrett-hand
I also tried cloning the barrett_hand
repository from github and used the "make" command inside the cloned directory and I get the error "no makefile found". I am not sure how to install this package.
Thanks,
Asked by dan98 on 2019-10-07 14:05:30 UTC
Answers
I [..] used the command
$ sudo apt-get install ros-distro-barrett-hand
did you literally type in ros-distro-barrett-hand
for the name of the package? If so, that is not what is meant there: the idea is that you replace distro
with the name of your ROS distribution. Seeing as you state you installed ROS Kinetic, that would be:
sudo apt-get install ros-kinetic-barret-hand
However, having written that, be aware that you can only use apt
to install additional packages if you've installed your base ROS with apt
. If you built ROS from source (which may be the case, seeing as you mention an RPi 4), you cannot do this.
I also tried cloning the
barrett_hand
repository from github and used the "make" command inside the cloned directory and I get the error "no makefile found".
Two things:
- ROS packages are actually CMake packages. So you cannot use
make
directly with them. You'd have to at least runcmake
first, but: - Catkin packages require a certain nr of steps to build them from source in your workspace. Simply cloning them and then running
catkin_make
(ormake
) won't work. Refer to #q252478 for an example of that workflow.
Note again that if you've built ROS from source, you'll need a slightly different workflow (involving rosinstall_generator
), but I won't go into that now until you describe what you used.
Asked by gvdhoorn on 2019-10-07 15:36:25 UTC
Comments
And related: #q320046.
Asked by gvdhoorn on 2019-10-07 15:38:22 UTC
Comments