Coder Social home page Coder Social logo

Comments (17)

BooraKaushik avatar BooraKaushik commented on July 29, 2024 1

@coxep That actually worked, thanks a lot. Now I am able to see both my roboclaws on the Basicmicro Motion studio app. I will try and see if the commands work and update you

from roboclaw_hardware_interface.

coxep avatar coxep commented on July 29, 2024

Disregard the prior comment.

@BooraKaushik checkout this: https://resources.basicmicro.com/using-multiple-roboclaws-with-arduino/

from roboclaw_hardware_interface.

coxep avatar coxep commented on July 29, 2024

@BooraKaushik Here's another one that might be more relevant: https://resources.basicmicro.com/packet-serial-bus-operation-with-the-raspberry-pi-3/

I haven't done this myself, so curious to see how well it works. If you get it up and running, I'd love to feature instructions for 4+ WD on the readme

from roboclaw_hardware_interface.

coxep avatar coxep commented on July 29, 2024

@BooraKaushik one final link: https://forums.basicmicro.com/viewtopic.php?t=442

Seems possible to set one device to master and the other to multi-unit mode to control both over a single USB connection. Good luck!

from roboclaw_hardware_interface.

coxep avatar coxep commented on July 29, 2024

@BooraKaushik did you get this resolved?

from roboclaw_hardware_interface.

BooraKaushik avatar BooraKaushik commented on July 29, 2024

Hi eric sorry, forgot to give you an update. Seems like one of my roboclaws got damaged so it might take some more time for me to test.

from roboclaw_hardware_interface.

BooraKaushik avatar BooraKaushik commented on July 29, 2024

Hi @coxep ,
I have 2 Roboclaw Motor Controllers 2*30A, I am trying to connect them serially using the Packet Serial mode so that I can control both the roboclaws using 1 USB. I have tried the following, but it seems not to work.
Approach:
Set the one unit to Relay mode(but not to Multi-unit mode).
Set the other unit to Multi-Unit and Relay mode and change to a non conflicting address in My case (master is set to 128 and slave is set 129).
Connect S1 on the master to the slave's S2.
Connect S2 on the master to the slave's S1.
I have connected the USB to Master to check if I could see both Port 128 and 129 come up on app, and they don't.

I tried setting both to relay mode and MultiUnit Mode and set both in relay Mode as well but seems like it doesn't work.
I checked out the documentation that you have provided in which all of them describe the above approach Do you know whats wrong here?.

Thanks,
Kaushik

from roboclaw_hardware_interface.

coxep avatar coxep commented on July 29, 2024

Hi @BooraKaushik , could you setting the first unit (USB) to relay mode, and leave multi-unit AND relay mode unchecked for the second roboclaw. Also check that the addresses for the two units are different

from roboclaw_hardware_interface.

BooraKaushik avatar BooraKaushik commented on July 29, 2024

@coxep I am getting the following error when I try to run dumbot_bringup

[ros2_control_node-1] [INFO] [1713059972.077669636] [controller_manager]: update rate is 100 Hz
[ros2_control_node-1] terminate called after throwing an instance of 'std::runtime_error'
[ros2_control_node-1] what(): Read timeout!

from roboclaw_hardware_interface.

coxep avatar coxep commented on July 29, 2024

@coxep I am getting the following error when I try to run dumbot_bringup

[ros2_control_node-1] [INFO] [1713059972.077669636] [controller_manager]: update rate is 100 Hz
[ros2_control_node-1] terminate called after throwing an instance of 'std::runtime_error'
[ros2_control_node-1] what(): Read timeout!

Dumbot_bringup doesn't support 4wd out of the box. It is a model of a 2wd robot.

You could try double checking the PID params, serial address, serial device. I'd try checking sending requests and getting feedback for each roboclaw unit (same USB port, different serial address) using dumbot bringup.

If this works for each motors pair, I can help you extend dumbot bring up support for 4wd

from roboclaw_hardware_interface.

BooraKaushik avatar BooraKaushik commented on July 29, 2024

Hi @coxep,
I have set only one address as of now so isn't it like a 2WD, so theoretically shouldn't it be able to drive the front two wheels?

EDIT:
So I have tested it with by disconnecting the other motor controller seems like the standalone one works fine its just that when the other motor controller is connected it is not able to communicate with either.

Can we connect today @coxep if you have time ?

from roboclaw_hardware_interface.

coxep avatar coxep commented on July 29, 2024

from roboclaw_hardware_interface.

BooraKaushik avatar BooraKaushik commented on July 29, 2024

Yeah @coxep, seems like when multiple roboclaws are connected the library can't read/write data onto them. I tried using the default roboclaw python library and all four wheels seem to run. yeah, the weekend works for me.

from roboclaw_hardware_interface.

coxep avatar coxep commented on July 29, 2024

from roboclaw_hardware_interface.

BooraKaushik avatar BooraKaushik commented on July 29, 2024

Okay @coxep, when do you want to connect in the weekend?

from roboclaw_hardware_interface.

coxep avatar coxep commented on July 29, 2024

Okay @coxep, when do you want to connect in the weekend?

Sent you an email

from roboclaw_hardware_interface.

coxep avatar coxep commented on July 29, 2024

@BooraKaushik any updates on your end for this? Did you get support from BasicMicro?

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.