Unicycle-like (differential-drive) blocks: kinematics and dynamics

953 views
Skip to first unread message

Felipe

unread,
May 22, 2013, 7:24:59 PM5/22/13
to robotics...@googlegroups.com
Hello all,

I have built two blocks to simulate the kinematics and the dynamics of differential drive robots (unicycle-like) using Peter Corke's Robotics Toolbox. They can be downloaded here:


One important feature is that the dynamic model accepts velocity commands. That is, you can use these blocks to simulate the complete robot model (kinematics+dynamics) directly connected to a controller that generates linear and angular velocities (not torques). 

Some sets of parameters to represent the following types of robots are provided (please, see the "help" of the dynamic block).

- Pioneer 3 with Sick LASER sensor
- Pioneer 3 without LASER sensor
- Pioneer 2 without onboard computer (no LASER sensor)
- Pioneer 2 with onboard computer (no LASER sensor)
- Robotic wheelchair carring a 55kg person
- Robotic wheelchair carring a 125kg person


After unzipping, you should copy all files, specially "unicycle_model.mdl" to the ...\rvctools98\simulink folder. Run the scripts "sim_unicycle_dynamics.m" and "sim_unicycle_kinematics.m" to see examples of use of the unicycle blocks.

The blocks were tested using Robotics Toolbox version 9.8 running on MATLAB R2012b and R2013a. If you have any doubts, please, let me know.

I hope this is useful for you!

Erik van Oene

unread,
Jun 1, 2013, 1:55:03 PM6/1/13
to robotics...@googlegroups.com
Thanks, I will look into it just out of curiosity.

Always nice to share some code!

Erik

Op donderdag 23 mei 2013 01:24:59 UTC+2 schreef Felipe het volgende:

Felipe

unread,
Jun 2, 2013, 6:13:48 PM6/2/13
to robotics...@googlegroups.com
OK, Erik.
If you have any questions, please le me know!

Felipe.

Erik van Oene

unread,
Jun 5, 2013, 5:09:07 PM6/5/13
to robotics...@googlegroups.com
Felipe,

here a few questions:

Isn't the input "steering angle" in fact the steering velocity?
Further I am curious how the vector parameters is build up.

And is it correct that the files does not use anything of the Robotics Toolbox? It looks like I can run it all without the toolbox loaded.

Thanks for sharing... I was looking for a simulation (for velocity control) of a segway like robot. Maybe some of this will be helpful.

Erik


Op maandag 3 juni 2013 00:13:48 UTC+2 schreef Felipe het volgende:

Felipe

unread,
Sep 9, 2013, 5:54:34 PM9/9/13
to robotics...@googlegroups.com
Hello, Erik.

You are right: the input is steering velocity (angular velocity). I have to correct that. 

The dynamic parameters depend on several physical aspects, as mass, moment of inertia, wheel radius, etc. Access the block help to see parameter sets that already have been identified for different robot models. You can get more information on the dynamic parameters in this paper:

It is true that you can use the blocks without the Robotics Toolbox. But, I have built them to be used with the robotics toolbox tools. In fact, the kinematics block can be used as a direct replacement of the Bycicle block.

I hope it helps you!
Best regards,

Felipe.

Felipe

unread,
Jan 28, 2014, 3:02:11 PM1/28/14
to robotics...@googlegroups.com
Dear all,
I finally had the opportunity to finish my work on the velocity-based dynamic model for the differential steered mobile robot. I tried my best to make the blocks compatible with the Robotics Toolbox.

Erik van Oene

unread,
Feb 3, 2014, 4:22:14 PM2/3/14
to robotics...@googlegroups.com
Hi Felipe,

Thanks for sharing!
I'm quite busy at the moment but I will take a look at this.

Erik

Op dinsdag 28 januari 2014 21:02:11 UTC+1 schreef Felipe:

Felipe Nascimento Martins

unread,
Feb 3, 2014, 5:17:52 PM2/3/14
to robotics...@googlegroups.com
OK, Erik.
Please, contact me if you have any questions.

yani.mu...@gmail.com

unread,
Mar 26, 2015, 5:05:19 PM3/26/15
to robotics...@googlegroups.com
Dear Felipe
Thank you for your information, it is very useful for me.
my question is How to add visual feedback to steering mobile robot ? do you have any example simulation?

Felipe Nascimento Martins

unread,
Mar 26, 2015, 5:58:51 PM3/26/15
to robotics...@googlegroups.com
Hi, Yani.
I don't have examples of simulation of visual feedback to steer a mobile robot. But, on a related topic, I recommend you join Peter Corke's course on Robotic Vision that is about to begin:
https://www.qut.edu.au/study/short-courses-and-professional-development/short-courses/robotic-vision
I think you are going to learn just what you need. ;-)
Cheers!

Blog sobre robótica: http://nossosrobos.blogspot.com 

--
You received this message because you are subscribed to a topic in the Google Groups "Robotics & Machine Vision Toolboxes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotics-tool-box/D3l2km_TADQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotics-tool-...@googlegroups.com.
To post to this group, send email to robotics...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotics-tool-box.
For more options, visit https://groups.google.com/d/optout.

Felipe

unread,
Dec 13, 2015, 2:49:39 PM12/13/15
to Robotics & Machine Vision Toolboxes
Dear all,

I've corrected a small bug on the dynamic model block that was causing the dynamic compensation to be non-perfect. The new corrected block is available on the link bellow. 


Cheers!
Felipe.



Peter Corke

unread,
Dec 13, 2015, 3:29:45 PM12/13/15
to robotics...@googlegroups.com
Thanks Felipe,

with respect to what I had in that draft chapter (figs + text), is that bug present?

peter

--
You received this message because you are subscribed to the Google Groups "Robotics & Machine Vision Toolboxes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotics-tool-...@googlegroups.com.

To post to this group, send email to robotics...@googlegroups.com.

Felipe Nascimento Martins

unread,
Dec 13, 2015, 3:59:21 PM12/13/15
to robotics...@googlegroups.com
Hi, Peter.

No. The draft is fine. The bug was not in the model itself, but only on the Simulink block that I built. 

Felipe.



Att.,

Felipe Nascimento Martins
Blog sobre robótica: http://nossosrobos.blogspot.com 

--
You received this message because you are subscribed to a topic in the Google Groups "Robotics & Machine Vision Toolboxes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotics-tool-box/D3l2km_TADQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotics-tool-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages