Body: <p>I have built the EV3 Gripper using the manual.
  I am programming an ev3 brick using ev3dev. I need to determine the angle/direction/orientation of the robot programmatically, before I can issue a command to grab the object. How can I get the orientation?</p>
  
  <p>One way to do this I know is to use an external camera to find out what direction the bot is pointing to, I want to do it without the camera.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-13T04:55:34.133Z
Comments.Text: How about using a gyroscope, like this one [45505 Ev3 Gyro Sensor](http://shop.lego.com/en-US/EV3-Gyro-Sensor-45505)?
Comments.UserDisplayName: Phil B.
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-13T04:57:37.060Z
Comments.Text: well, the issue is, here in Singapore, these things are not easy to find :-( and due to shipping restrictions, I cannot have one shipped here as well!
Comments.UserDisplayName: okkhoy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-18T03:18:29.437Z
Comments.Text: Can you keep track of the position based on the rotation of the motors during moves?  I know LeJOS (Java for EV3) has a nice waypoint library with pathfinding etc. that keeps track of the position, maybe ev3dev does too?
Comments.UserDisplayName: Gliderman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-19T03:14:48.410Z
Comments.Text: thanks for the pointer @Gliderman! i will check that and update it here
Comments.UserDisplayName: okkhoy
Tags: <ev3><programming>
Title: How to determine orientation of a EV3 gripper?
UserDisplayName: okkhoy
ThreadText: # How to determine orientation of a EV3 gripper?
  
  (Asked by: username_0 on 2016-02-13)
  
  I have built the EV3 Gripper using the manual.
  I am programming an ev3 brick using ev3dev. I need to determine the angle/direction/orientation of the robot programmatically, before I can issue a command to grab the object. How can I get the orientation?
  
  One way to do this I know is to use an external camera to find out what direction the bot is pointing to, I want to do it without the camera.
  
  **Tags:** ev3, programming
  > **Comments:**
  > **username_1**: How about using a gyroscope, like this one [45505 Ev3 Gyro Sensor](http://shop.lego.com/en-US/EV3-Gyro-Sensor-45505)?  
  > **username_0**: well, the issue is, here in Singapore, these things are not easy to find :-( and due to shipping restrictions, I cannot have one shipped here as well!  
  > **username_2**: Can you keep track of the position based on the rotation of the motors during moves?  I know LeJOS (Java for EV3) has a nice waypoint library with pathfinding etc. that keeps track of the position, maybe ev3dev does too?  
  > **username_0**: thanks for the pointer @Gliderman! i will check that and update it here  
  
  ---
  
  ## 0 answers
  
  