Mobile Robot: Move to a Point

819 views
Skip to first unread message

Stephen Armah

unread,
Jun 5, 2012, 1:46:26 PM6/5/12
to Robotics & Machine Vision Toolboxes
Hi,
I'm trying to run the sl_drivepoint simulink model, which depends on
the angdiff. When a run I get error message "Failed to find 'angdiff'
in library 'roblocks'. I try to locate the angdiff.m file located in
the common folder, and run it but also give me error message
initially, so I entered values for th1 and th2, which gave a value for
angdiff. But the simulink sl_drivepoint does not still pick up. In the
property of the angdiff block is source block roblocks/angdiff. Please
help me out.
Thanks

Peter Corke

unread,
Jun 5, 2012, 3:32:12 PM6/5/12
to robotics...@googlegroups.com
Stephen,

sorry about the problem. I just ran it and it worked fine, so I need to ask what version of toolboxes and MATLAB you are running.

>> startup_rvc
Robotics, Vision & Control: (c) Peter Corke 1992-2011 http://www.petercorke.com
- Robotics Toolbox for Matlab (release 9.5)
- Machine Vision Toolbox for Matlab (release 3.2)
>> sl_drivepoint
>> xg=[5 5];
>> x0 = [8 5 pi/2];


peter.
> --
> You received this message because you are subscribed to the Google Groups "Robotics & Machine Vision Toolboxes" group.
> To post to this group, send an email to robotics...@googlegroups.com.
> To unsubscribe from this group, send email to robotics-tool-...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/robotics-tool-box?hl=en-GB.
>

Stephen Armah

unread,
Jun 5, 2012, 7:12:08 PM6/5/12
to Robotics & Machine Vision Toolboxes
Version 9.5.
I just copy and past the above and it works, after i have run the
startup_rvc.m. I tought after I have to open and run the angdiff.m
file and before running the simulink model (sl_drivepoint).
I'm doing PhD student and my research topic is Image Recognision and
Tracking using Mobile Robot. There is a mobile robot platform from Dr
Robot to be used for this, and the documentation is in C-Sharp. Is
there a way to convert the MATLAB Code and/or Simulink Model into C-
Sharp or vice versa or can the MATLAB Code and/or Smulink Model be
implemented on the Robot instead of the C-Sharp.
Thanks, and hope to hear from you again.
Regards,
Stephen

On Jun 5, 8:32 pm, Peter Corke <peter.i.co...@gmail.com> wrote:
> Stephen,
>
> sorry about the problem.  I just ran it and it worked fine, so I need to ask what version of toolboxes and MATLAB you are running.
>
> >> startup_rvc
>
> Robotics, Vision & Control: (c) Peter Corke 1992-2011http://www.petercorke.com

Peter Corke

unread,
Jun 6, 2012, 1:22:50 AM6/6/12
to robotics...@googlegroups.com

On 06/06/2012, at 12:12 AM, Stephen Armah wrote:

> Version 9.5.
> I just copy and past the above and it works, after i have run the
> startup_rvc.m.

Good

> I tought after I have to open and run the angdiff.m
> file and before running the simulink model (sl_drivepoint).

not sure why you would want to that, is there something in the documentation that says you should?

> I'm doing PhD student and my research topic is Image Recognision and
> Tracking using Mobile Robot. There is a mobile robot platform from Dr
> Robot to be used for this, and the documentation is in C-Sharp. Is
> there a way to convert the MATLAB Code and/or Simulink Model into C-
> Sharp or vice versa or can the MATLAB Code and/or Smulink Model be
> implemented on the Robot instead of the C-Sharp.

C-Sharp will be hard to integrate. MATLAB supports Java nicely or C/C++. There are lots of integration options but none of them easy. You could theoretically convert MATLAB code to C-Sharp but again far from easy.

Stephen Armah

unread,
Jun 6, 2012, 2:27:30 AM6/6/12
to Robotics & Machine Vision Toolboxes
Thanks again for the quick response.
I will be looking into how to go about with the conversion, if you
come across anything let me know.
My robot is 2-wheeled, and the one discussed in the textbook is 4-
wheeled. Do I have to change something in the bicycle model
(subsystem) to implement the matlab code/simulink to my robot. The
equation of motion of a 2-wheeled (from an article I came across) is
given by:
x_dot = vcos(theta)
y_dot = vsin(theta)
theta_dot = u u is the
rotational velocity (about its centre)
Similar to the one in the book, apart from the third equation which
looks slightly different.
Regards,
Stephen

Peter Corke

unread,
Jun 6, 2012, 5:04:16 AM6/6/12
to robotics...@googlegroups.com
So it's differential drive rather than having a steered front wheel?

Can you join the group so I don't have to keep approving your messages.

peter

Stephen Armah

unread,
Jun 6, 2012, 5:16:45 AM6/6/12
to Robotics & Machine Vision Toolboxes
Thanks for the reply. So, how do go about with differential drive, any
materials out there?
How do I join the group?
Regards,
Stephen

Peter Corke

unread,
Jun 7, 2012, 4:15:06 PM6/7/12
to robotics...@googlegroups.com

On 06/06/2012, at 10:16 AM, Stephen Armah wrote:

> Thanks for the reply. So, how do go about with differential drive, any
> materials out there?

The Siegwart book covers most drive geometries. Then you'd need to build a new Simulink block to implement the model and then integrate that with existing blocks.

> How do I join the group?

The "Sign in" button at the top of the page.

Felipe

unread,
May 22, 2013, 5:48:23 PM5/22/13
to robotics...@googlegroups.com
Hello, Stephen.

You might want to try the unicycle-like blocks that I made for Peter's Robotics Toolbox:


These files allow the simulation of an unicycle-like mobile robot considering its complete dynamic model using Peter Corke's Robotics Toolbox. 

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 an example of use of the unicycle blocks.

The blocks were tested using Robotics Toolbox version 9.8 running on MATLAB R2012b and R2013a.

Best regards!

Stephen Armah

unread,
May 22, 2013, 8:36:20 PM5/22/13
to robotics...@googlegroups.com
Hi Felipe,
Thanks for the information. Great work done.
I will look at it.
Regards,
Stephen


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 an email to robotics...@googlegroups.com.

Uday Simha

unread,
Jan 10, 2014, 7:54:29 PM1/10/14
to robotics...@googlegroups.com
Hello sir,

I was trying to use the Diffsteer Kinematics block from the file you have posted here to generate my own steering angles trajectory etc.. for my project (i.e) try to create my own model, but when I simulate it, it gives an error that acceleratiion rate limit should be continuous or discrete . I didnot understand how to specify this.

Also, I tried with the bicycle model block from the new release tool box have the same problem.

could you kindly tell me what input should i give for the rate limiter block and how it should be.

Thanks in advance sir

Felipe

unread,
Apr 22, 2014, 6:16:34 PM4/22/14
to robotics...@googlegroups.com
Hello, Uday.

Sorry it took me so long to give you a repply, but your message got lost in my inbox.
I made some updates, so I would recommend you to try the blocks that are available in Matlab Central:
Please, let me know if you still have the same problem.
Regards,
Felipe.
Reply all
Reply to author
Forward
0 new messages