Jump to content

mr roboto

New Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Favorite Area of Science
    computer science

mr roboto's Achievements

Lepton

Lepton (1/13)

0

Reputation

  1. hi all i need some help with somthing for my robotics hobby. heres the problem: i have a robot. it has a scanning distance sensor.(sharp ir gp2 20-150 cm to those who are interested.) now what i want to do is i need an expression to tell me if a gap is large enough to fit through. the example demonstrates this. i have the sharp ir mounted on a servo (motor) the sharp ir turns. you have acess to the following pieces of info: variables: distance1 (you can take this at anytime the sharp is rotating. i can code it to take it at the edge of the wall.) distance2: same as distance 1 angle 1: taken at the same time as distance 1. it is the angel of the servo at that time. the angle will affect the distance of the sharp ir. the light has to take a longer path angle 2: same as angle 1 but taken at the same time as distance 2 constants: robot width: the robot is 3 inches wide but the gap needs to be 4.5 inches wide. robot length: 5 inches placement of scanner: in the middle width wise. also the sensor is at the back. the sensor will be place at the very back but the end of the sensor extends about 1.5 inches so it is taking readings from 1.5 inches. if you need more info just ask.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.