Go to Post where theres building to do, i'll be there. - Conor Ryan [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-01-2009, 10:42
rsisk's Avatar
rsisk rsisk is online now
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,746
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Using LabView to make Robot track the trailer

Our team was working on autonomous mode yesterday and we are trying to make the robot track the trailer. We can detect left/right and fwd/rev movement of the image and we can turn the robot left/right and move it fwd/rev to track the image. Sounds like we are done, right?

Well, here is where we are having trouble "conceptualizing" how you move both l/r and f/r at the same time. BTW, we are testing with two motors driving two rear wheels.

For example, let's say we have acquired the target image. Then it moves away and to the right. We will detect both the l/r movement and the f/r movement. Currently we track l/r until we center the target into the deadband, then we track f/r until we center the target into the deadband. Once both axis are in the deadband, we have the target where we want it.

The question, is there a way to combine both the l/r tracking and the f/r tracking to accomplish both at the same time?
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2009, 12:00
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Using LabView to make Robot track the trailer

I'm not quite understanding your question--are you asking how to track both axes or how to make the robot turn while going in forward or reverse?
__________________
Get yer robot source code here!
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2009, 12:09
rsisk's Avatar
rsisk rsisk is online now
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,746
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Using LabView to make Robot track the trailer

Our image tracking algorithim gives us two outputs, how much the image is off of center and how much larger/smaller the image is.

For example

So when the image moves slightly to the right, we would send a +.2 to both motors to make it move slightly to the right.

If the image becomes smaller (moving slightly away) we would send a +.2 to one motor and a -.2 to another motor to move the robot towards the target.

My question, if the robot move slightly to the right and slightly further away in one motion, what signal would we send to the motors to move the robot both forward and to the right in one motion?

And, how do I calculate that mathematically.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-01-2009, 14:31
j_johnson j_johnson is offline
Registered User
FRC #0226 (Hammerheads)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2003
Location: Shelby Township, MI
Posts: 10
j_johnson is an unknown quantity at this point
Re: Using LabView to make Robot track the trailer

One thing to note is that the robot speed will be the average speed of the two sides. The relative difference between the speeds of the two sides will determine the turning radius and direction. See if you can use this information to help solve your problem.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-01-2009, 21:24
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Using LabView to make Robot track the trailer

For some types of robots, you can compute the forward vector to get the range, and the steer vector for lining up, and simply combine them together. Add the lefts together and the rights.

Specifically, for skid steered robots, this will get you pretty close.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2009, 23:43
Jixz Jixz is offline
Registered User
None #0704
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Dallas
Posts: 5
Jixz is an unknown quantity at this point
Re: Using LabView to make Robot track the trailer

I understand your problem.. and THINK I have the general idea for a solution. If its to the left of your deadband and far away then it would set the motors to:

+1
-1

(go foreword)

+1 - .2 = (.8)
-1

(go foreword and turn to the left)

Reversed for the right. IDK! Just me thinking..
Reply With Quote
  #7   Spotlight this post!  
Unread 13-01-2009, 23:55
rsisk's Avatar
rsisk rsisk is online now
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,746
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Using LabView to make Robot track the trailer

Thanks everyone who has replied. You have given us some ideas to work with. We will test them out and post our best solution.
Reply With Quote
  #8   Spotlight this post!  
Unread 14-01-2009, 08:32
sloteera's Avatar
sloteera sloteera is offline
Registered User
AKA: Rafa
FRC #1860 (Cephatron)
Team Role: Coach
 
Join Date: Mar 2007
Rookie Year: 2004
Location: Brazil
Posts: 190
sloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud of
Re: Using LabView to make Robot track the trailer

Well,

We develop one method for the robot integrate F-R and L-R in 2006.
Here on Brazil, we calls by Curva.c .


The method is basic, but you need a Gyro and Encoder to make this.
The concept is that for your bot go FWD and REV, the velocity of both sides of the robot have be the same.


FWD: +Velocity_LS = +Velocity_RS
REV: -Velocity_LS = - Velocity_RS

To integrate FWD with Left, for example, you need to make:

LEFT: +Velocity_LS <+Velocity_RS

and FWD with Right:

RIGHT: +Velocity_LS >+Velocity_RS



You need to use the follow equation:

Velocity_LS / R_LS* = Velocity_RS / R_RS*


*R_LS and R_RS is respectively Radius of the Circle that Left Side describes and Radius of the Circle that Right Side describes


You have four variables and three you know: R_LS, R_RS and Velocity_LS or Velocity_RS. You can find the last variable and control your motor.


The main problem: you need to use PID to make this, and, I don't know how to use PID with these field.


I hope that you can understood me. Is complicated explain algorithm in english
Reply With Quote
  #9   Spotlight this post!  
Unread 14-01-2009, 10:31
rsisk's Avatar
rsisk rsisk is online now
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,746
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Using LabView to make Robot track the trailer

Quote:
The simple answer is "just add the two values together for each side".

In your example this will send .4 to one motor and 0 to the other, which will give to a rotation with forward motion.

You may need to clip the final sums to prevent them from exceeding 1.0, but it really is that easy.
I thought about this but was concerned about the loss of accuarcy as you approach full speed in one direction due to the clipping. Maybe it's not that big of a deal, something for our programmers to test today ;>

Sloteera:
Quote:
I hope that you can understood me. Is complicated explain algorithm in english
Excellent job of explaining the algorithm, I totally understood what you were saying. I would hate to see how I would have done trying to explain something in your language I appreciate your time and effort!
Reply With Quote
  #10   Spotlight this post!  
Unread 14-01-2009, 14:12
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,557
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Using LabView to make Robot track the trailer

This is exactly the approach we used, in our code posted at http://forums.usfirst.org/showthread.php?t=11298
Reply With Quote
  #11   Spotlight this post!  
Unread 14-01-2009, 07:59
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Using LabView to make Robot track the trailer

Quote:
Originally Posted by rsisk View Post
Our image tracking algorithim gives us two outputs, how much the image is off of center and how much larger/smaller the image is.

For example

So when the image moves slightly to the right, we would send a +.2 to both motors to make it move slightly to the right.

If the image becomes smaller (moving slightly away) we would send a +.2 to one motor and a -.2 to another motor to move the robot towards the target.

My question, if the robot move slightly to the right and slightly further away in one motion, what signal would we send to the motors to move the robot both forward and to the right in one motion?

And, how do I calculate that mathematically.
The simple answer is "just add the two values together for each side".

In your example this will send .4 to one motor and 0 to the other, which will give to a rotation with forward motion.

You may need to clip the final sums to prevent them from exceeding 1.0, but it really is that easy.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the CMU cam in LabView VeedotJaydot Technical Discussion 1 10-09-2008 16:39
Students build SEGWAY in 3 months using Labview and the cRIO neutrino15 Programming 31 27-04-2008 22:08
Using LabView to Simulate the Robot without the DAQ JillianM National Instruments LabVIEW and Data Acquisition 4 22-04-2008 11:23
pic: Team 79's parent volunteers playing volleyball on our full scale track and using the giant ball. Arsenal0328 Extra Discussion 7 14-01-2008 11:15
Using the Example LabVIEW Apps Amin National Instruments LabVIEW and Data Acquisition 1 24-01-2006 08:51


All times are GMT -5. The time now is 08:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi