Ask Your Question
7

install() directly to /etc/udev/rules.d

asked 2014-02-27 03:52:29 -0600

updated 2014-03-26 12:19:28 -0600

Is there a policy on this? It's a problem if the same package in different rosdistros install the same file.

Options:

  • Install the file to a name like xyz-hydro.rules, so that there's no conflict.
  • Create a non-distro package which installs the rules, that the distro packages can depend on.
  • Don't install them; make it a manual step for the user to copy them from /opt/ros/hydro/share into the system location.
  • Install to share, but provide a postinst script to copy/link to udev/rules.d

What's the process to add a non-distro package to packages.ros.org? Thoughts?

edit retag flag offensive close merge delete

Comments

1

I think the non-distro package is the cleanest, but I'm not sure how easy it will be to get it accepted into the ROS deb repository.

ahendrix gravatar imageahendrix ( 2014-02-27 05:51:10 -0600 )edit
3

Not a policy afaik, but for "least system-wide infection" with "most ease of use", I like the way that kobuki_ftdi installs rules. Basically `rosrun kobuki_ftdi create_udev_rules` will use the correct copy command + sudo and do that.

dornhege gravatar imagedornhege ( 2014-03-24 08:48:16 -0600 )edit

@dornhege: That's what we've historically done (with Clearpath platforms). We're trying to get away from needing that manual rosrun install step, though.

mikepurvis gravatar imagemikepurvis ( 2014-03-26 12:20:16 -0600 )edit

In that case I'd also go for a non-distro package. Maybe ask at ros-release for something official?

dornhege gravatar imagedornhege ( 2014-03-28 00:31:44 -0600 )edit

Is there something official? Isn't creating another package for just one rule file a bit of an overkill?

cyborg-x1 gravatar imagecyborg-x1 ( 2015-06-03 18:17:04 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2015-06-24 13:40:20 -0600

As of bloom 0.5.13, you can supply files in a "debian" folder in your package, and the various debhelpers, including dh_installudev will pick them up. You can see this in action in pointgrey_camera_driver:

https://github.com/ros-drivers/pointg...

The appropriate rule gets installed by the debian package, using the proper udev machinery, but there's no pollution of the regular catkin install procedure.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-02-27 03:52:29 -0600

Seen: 1,426 times

Last updated: Jun 24 '15