Ask Your Question
0

Why ROS Noetic has its own pybind11, while it's on Ubuntu 20.04 already

asked 2021-04-06 19:08:20 -0500

Thiago Martins gravatar image

Just a curiosity!

On Ubuntu 20.04, there is a package called pybind11-dev, but also, a ROS version, called ros-noetic-pybind11-catkin, I would rather use the one from Ubuntu but, am I going to miss something from the ROS version? Or not?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2021-04-07 01:00:06 -0500

gvdhoorn gravatar image

As you can infer from the name, pybin11_catkin is a:

Catkin wrapper for pybind11

which basically means:

This repository wraps the recent releases of pybind11 for use in catkin-based projects.

Among other things, this makes it easy/ier to build / use pybind11 in Catkin (and Colcon) workspaces, and consequently, ROS packages.

Other advantages would be the use of this package across different OS (which may not have pybind11, but do support Catkin workspaces/ROS) and a more homogeneous development environment (pybind11 available at the same version everywhere).

See ipab-slmc/pybind11_catkin#3 for what appears to be a discussion around utility of the package. This links to arturmiller/pybind11_examples for some examples.

I would rather use the one from Ubuntu

By all means do.

If you are on an OS which packages pybind11 at a suitable version and you don't need/want to depend on the Catkin wrapped version, then don't use it.

edit flag offensive delete link more

Comments

Got it, thank you!

I also thought that, because ROS doesn't recommend mixing Debian packages from both the community repository, and from upstream distribution, that this could be a problem but, things are a bit different with pybind11...

Cool!

Thiago Martins gravatar image Thiago Martins  ( 2021-04-11 10:18:33 -0500 )edit
1

I also thought that, because ROS doesn't recommend mixing Debian packages from both the community repository, and from upstream distribution, that this could be a problem [..]

Are you referring to wiki/UpstreamPackages?

That's specifically about upstream versions of (the core) ROS packages. Not system dependencies.

gvdhoorn gravatar image gvdhoorn  ( 2021-04-11 10:37:54 -0500 )edit

Yes, I was talking about the wiki/UpstreamPackages, thank you for your clarication!

Thiago Martins gravatar image Thiago Martins  ( 2021-04-11 21:19:34 -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

1 follower

Stats

Asked: 2021-04-06 19:08:20 -0500

Seen: 29 times

Last updated: Apr 07