avirtuos / ros_hercules

A basic autonomous rover built on ROS Indigo and using Seeduino's Hercules base with an RPLIDAR 360 for mapping and an Nvidia Tegra TX1 for higher level robot functions.
GNU General Public License v3.0
48 stars 18 forks source link

Roboclaw #4

Open Rafcin opened 6 years ago

Rafcin commented 6 years ago

Is it possible to swap out the serial communication for the wheels with a Roboclaw motor controller node that instead uses values such as:

0 Shuts Down Channel 1 and 2 1 Channel 1 - Full Reverse 64 Channel 1 - Stop 127 Channel 1 - Full Forward 128 Channel 2 - Full Reverse 192 Channel 2 - Stop 255 Channel 2 - Full Forward

I just think it would be much more efficient than wires to a jetson becuase instead it works over usb if you use a Roboclaw 2x30A(v4).

avirtuos commented 6 years ago

I don't have wires to the jetsob, there is an Arduino that controls these and there is an ros_serial node that handles the handoff.

On Mon, Apr 9, 2018, 6:31 PM Raf notifications@github.com wrote:

Is it possible to swap out the serial communication for the wheels with a Roboclaw motor controller node that instead uses values such as:

0 Shuts Down Channel 1 and 2 1 Channel 1 - Full Reverse 64 Channel 1 - Stop 127 Channel 1 - Full Forward 128 Channel 2 - Full Reverse 192 Channel 2 - Stop 255 Channel 2 - Full Forward

I just think it would be much more efficient than wires to a jetson becuase instead it works over usb if you use a Roboclaw 2x30A(v4).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/avirtuos/ros_hercules/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AOpFEmDJ18vSPr2H84Z8kEqA3ulHDykyks5tm-EmgaJpZM4TNVEH .

avirtuos commented 6 years ago

I should also mention that the motor control I'm using is in the parts list and it support serial directly as well. I used the Arduino to consolidate several serial interfaces.

Rafcin commented 6 years ago

Ah, interesting, ok. I'm going to sit-down and try to see if I can get it to work with the RoboClaw node from Aion-R1, if so I'll post what here what I did.

avirtuos commented 6 years ago

Let me know. Happy to help if needed.

avirtuos commented 6 years ago

Also, I'm rewriting this project so that every component is an ros_node using a raspberry pi zero w. It made the robot more modular and easier to reuse parts in different projects.

Rafcin commented 6 years ago

Interesting, I can try to help the best I can, i'm actually working on a rescue robot that uses a Jetson Tx2. I'll do a fork of this project and see if I can provide anything new.

Rafcin commented 6 years ago

ROS is definitely weird to work with but I made a few launch files for mapping, and sensors and then a master launch file with all the nodes and an RVIZ menu. Hector mapping is odd to use :O

Rafcin commented 6 years ago

Hey sorry to bother you but I had a question about your hercules.launch file. So I've look at how your Rover works and done some very similar things, but my goal is to make it work outside and build a map, the issue is instead of using the lidar to map because there are no walls I'm using the depth scan converter and passing it to hector node, but when visualising it, Zed Odom works fine, and the laser scan TF decides that any slight movement pisses it off and it drifts across the map, did you encounter something like this ever, is it possible the depth to laser node isn't proper for this?

avirtuos commented 6 years ago

@Rafcin yes, I did and still do face this issue. What I've seen is that there are really only two solutions...

  1. Get more frequent data (laser scan or pointCloud2LaserScan in the case of Zed). This increases the probability that the SLAM module will be able to expand the map and locate position... Basically more frequent data means the difference between each update is less.

  2. Go slower... If your Robert alows down it has the same effect... Less difference between map updates.

avirtuos commented 6 years ago

Another option is to use something other than Hector SLAM which might be a bit better... But those toher algos also need more CPU power.

Rafcin commented 6 years ago

I see, well a Jetson is strong, maybe RTAB Map On Apr 29, 2018 12:51 PM, "Anthony Virtuoso" notifications@github.com wrote:

Another option is to use something other than Hector SLAM which might be a bit better... But those toher algos also need more CPU power.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/avirtuos/ros_hercules/issues/4#issuecomment-385264871, or mute the thread https://github.com/notifications/unsubscribe-auth/AKAjewKybTaEw3y-orb7BG-7zX94xJ95ks5tte90gaJpZM4TNVEH .

AmirsamanAhmadi commented 3 years ago

@avirtuos Hi Hope you are doing fine. earlier you mentioned

Also, I'm rewriting this project so that every component is an ros_node using a raspberry pi zero w. It made the robot more modular and easier to reuse parts in different projects.

May I know if you finish it ?