[SOLVED] Moveable boxes bug

Discussions regarding ARGoS bugs. Report bugs here.
nicola
Posts: 3
Joined: Tue Mar 20, 2012 7:20 pm

[SOLVED] Moveable boxes bug

Postby nicola » Tue Mar 20, 2012 7:34 pm

Hi everybody,

I've made this simple code showing a possible bug in ARGoS physics. Very simple: a footbot and a huge and heavy box (mass: 750 kg) are located in an arena.
The footbot go straight on and pushes the box for a while. As soon as the bot stops moving (and therefore to push the box), the box mysteriously continues to slide across the floor. This bug happens both with and without a floor entity.

Attached you can find the .cpp, .h and .xml of this weird phenomenon :)

Thanks in advance!
Attachments
testBug.tar.gz
(1.57 KiB) Downloaded 702 times

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Moveable boxes bug

Postby pincy » Wed Mar 21, 2012 6:14 pm

Hi Nicola,

I have prepared a test distribution of ARGoS for you. It contains a couple of fixes to the 2D dynamics physics engine that (in my tests) solve the problem that you mention. The distribution is for Ubuntu 10.04LTS and newer.

With these fixes, the foot-bot is able to push/pull an object weighing up 100kg when the wheel speed is set to 5cm/s.
With an object of 1kg the robot has no problem pushing, and no sliding happens.
With an object of 10kg the robot can move the object, albeit slowly, and again no sliding happens.

Could you please give it a try and confirm it? Thanks a lot!
Attachments
argos2-20120321-i386-1cp.deb
Test ARGoS distribution to fix box pushing bug in 2D dynamics engine
(10.54 MiB) Downloaded 579 times
I made ARGoS.

nicola
Posts: 3
Joined: Tue Mar 20, 2012 7:20 pm

Re: Moveable boxes bug

Postby nicola » Thu Mar 22, 2012 1:48 pm

Thanks,

I wasn't able to install the package because of a "wrong architecture" error... :\
I should have mentioned I was using the argos2-amd64-20120130 version :S
sorry for the bothering...

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Moveable boxes bug

Postby pincy » Thu Mar 22, 2012 2:46 pm

No problem, here you go with the amd64 version.
Attachments
argos2-20120322-amd64-1cp.deb
(10.63 MiB) Downloaded 606 times
I made ARGoS.

nicola
Posts: 3
Joined: Tue Mar 20, 2012 7:20 pm

Re: Moveable boxes bug

Postby nicola » Thu Mar 22, 2012 3:37 pm

Ok, now it works.

I tested the same code I posted in the first post and it is just working perfectly.
The box does not move with a 750 kg mass. With reasonable values for masses the box can be pushed and no sliding occurs.

Thank you very much again! :)

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Moveable boxes bug

Postby pincy » Thu Mar 22, 2012 3:57 pm

Ok great. Tonight I'll make a new ARGoS distribution with this fix included.
Thanks a lot for spotting the bug! :-)
I made ARGoS.


Return to “Bugs”