Giter VIP home page Giter VIP logo

Comments (7)

BillWSY avatar BillWSY commented on August 22, 2024

The easiest fix will be running the driver with sudo.

The next easiest method will be sudo chmod 666 /dev/ttyACM0.

The right thing to do is sudo usermod -aG dialout $USER

The other thing you can do is to set up a udev rule to create correct permission for /dev/ttyACM0

from bno055_usb_stick.

yoshito-okada avatar yoshito-okada commented on August 22, 2024

Agree with @BillWSY . What I always do is the third one. Doing once after installing Ubuntu is enough.

from bno055_usb_stick.

anleger92 avatar anleger92 commented on August 22, 2024

Hey,
thank you for your answers.

I tried typing sudo cmod 666 /dev/ttyACM0 and it worked. But I need to type it every time I plug in the usb imu stick.

Then I tried to create a rule by creating a rule file in /etc/udev/rules.d
and applied following rule in the created rule file:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0x152a", ATTRS{idProduct}=="0x80c1", MODE:="0666"

With this rule the imu stick worked once. Now when I run the node I get following output:
[ERROR] []: start: open: Device or resource busy

EDIT: In the case I plug out the imu stick and replug it in, I get this error. Is it possipble that I have to restart roscore in this case?

How can I solve this?

Thank you again :)

from bno055_usb_stick.

yoshito-okada avatar yoshito-okada commented on August 22, 2024

Your udev rule may miss a GROUP attribute. Or try the 3rd proposal in @BillWSY 's post.

from bno055_usb_stick.

anleger92 avatar anleger92 commented on August 22, 2024

I tried sudo usermod -aG dialout $USER but somehow it said, that permission was still denied.
Do I have to modify anything in this line?

from bno055_usb_stick.

yoshito-okada avatar yoshito-okada commented on August 22, 2024

sudo usermod -aG dialout $USER should work on ubuntu 16. Reboot the computer or google "ubuntu 16 add user to group dialout".

from bno055_usb_stick.

anleger92 avatar anleger92 commented on August 22, 2024

it works, thank you for your help!

from bno055_usb_stick.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.