Coder Social home page Coder Social logo

Comments (2)

coxep avatar coxep commented on July 29, 2024

There could be several reasons why roboclaw_hardware_interface can't communicate with roboclaw. A few things to check (to help reduce possibilities):

  1. Ensure that the serial device is correctly named in ros2_control.xacro (/dev/ttyACM0, /dev/ttyS0, /dev/roboclaw, etc)
  2. Verify that the terminal running ros2_control has sufficient permissions (sudo chmod a+rw /dev/ttyACM0 or equivalent)
  3. Make sure that the roboclaw has PID parameters for velocity configured via the BasicMicro app's autotuner
    • make sure to write these parameters to the roboclaw before exiting the app via the top menu (so far, this is the most frequent issue I've seen. If you open BasicMicro app and see that PID params for velocity are all 0, this is probably the issue).
  4. Make sure that you're using packet serial for communication on the roboclaw side (and again, that this is written to the device)
  5. Consider testing with the dumbot_bringup package, here: https://github.com/dumbotics/dumbot_bringup
    • this provides a working implementation of roboclaw_hardware_interface, but just be sure to change /dev/roboclaw to your serial device

Are you seeing any runtime errors when launching the the hardware interface?

Regarding the multiple hardware components, I'm not exactly sure why this is the case. I'll investigate. It could be that one of these is a plugin loader for the other, but I'm not very confident about that. For what it's worth, I am seeing the exact same thing as you, but am still able to teleop my robot around without any issues. I'd recommend double checking the first few items above, and let me know if the issue persists.

from roboclaw_hardware_interface.

maiabriggs avatar maiabriggs commented on July 29, 2024

Thank you for your help. It was a PID tuning issue

from roboclaw_hardware_interface.

Related Issues (5)

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.