Ask Your Question
0

ros_numpy package

asked 2017-09-07 11:01:37 -0500

Younès gravatar image

I want to use the package ros_numpy The code is in https://github.com/eric-wieser/ros_numpy How can I install it on my machine

edit retag flag offensive close merge delete

Comments

1

In the future, please make sure your question adheres to our Support Guidelines. It's harder to help you if you don't.

gvdhoorn gravatar image gvdhoorn  ( 2017-09-07 11:11:01 -0500 )edit
1

Also: ROS Answers is a beginners forum, so we're happy to help, but such simple things as installing packages is really something that has been asked and answered many times before and is documented. Please make the effort to search first and save us all the time to answer it again.

gvdhoorn gravatar image gvdhoorn  ( 2017-09-07 11:12:12 -0500 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2017-09-07 11:09:57 -0500

gvdhoorn gravatar image

Just as any other package that has been released:

sudo apt-get install ros-$release-ros-numpy

Where $release is the name of the ROS release that you have installed.

edit flag offensive delete link more

Comments

This does not work for ROS Melodic

ceres gravatar image ceres  ( 2020-01-29 16:39:39 -0500 )edit

Which is to be expected, seeing as the package has not been released into Melodic.

See ros_numpy and status_page/ros_melodic_default.html?q=numpy.

Note also I wrote:

as any other package that has been released

gvdhoorn gravatar image gvdhoorn  ( 2020-01-30 04:37:25 -0500 )edit

Understood. Your answer was written before Melodic was released, and is now outdated. This is not "to be expected" for anyone using any of the currently recommended ROS distributions in 2020.

ceres gravatar image ceres  ( 2020-01-31 11:14:37 -0500 )edit

The "to be expected" part was responding to the fact that you stated it doesn't work for Melodic. That is certainly to be expected, as it hasn't been released for that version of ROS.

I don't really see how that would not be expected. No matter which version of ROS you are using: if a package has not been released for it, you cannot use apt to install it (on Debian/Ubuntu).

gvdhoorn gravatar image gvdhoorn  ( 2020-01-31 11:30:26 -0500 )edit
-1

answered 2020-01-31 11:18:30 -0500

ceres gravatar image

For newer versions of ROS, such as Melodic, you can clone ROS numpy locally and install using setup.py.

git clone https://github.com/eric-wieser/ros_numpy.git
cd ros_numpy/
python setup.py install

Or, since it's 2020, you can use Python3:

python3 setup.py install
edit flag offensive delete link more

Comments

2

Seeing as this is a ROS package, using setup.py to install it (at least in ROS 1) is not the recommended procedure.

If you're going to install something from sources, at least follow the correct workflow: #q252478.

gvdhoorn gravatar image gvdhoorn  ( 2020-01-31 11:28:18 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2017-09-07 11:01:37 -0500

Seen: 4,895 times

Last updated: Jan 31 '20