1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
Everywhere
  • Everywhere
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Members
  3. otretas

Posts by otretas

  • Euler Angles from Unit Vectors

    • otretas
    • July 30, 2021 at 1:22 AM

    Thank you all. I found out the problem was in the way i created the Rotation matrix from the unit vectors of the target frames.

    By constructing it like this i managed to get the Euler angles like i said:

    Rmat =

    XxXyXz
    YxYyYz
    ZxZyZz

    The poses simulated from the script:

    tfT6dqy.jpg

    The results obtained with robodk (inputting the angles manually obtained from the script):

    PwMPub9.jpg


    Quote from MOM

    Checking you screen shot shows that target 2 is actually the flange coordinate system with an angle b of 135 deg (rough guess)

    angle b must be in the range of +/90 deg. Doing frame2mat and afterwards an mat2frame will correct this (angle a and angle will change their values and angle b will be in the allowed range.

    could this be the problem?

    Yes it can be, i am aware of that but ill just make a specific condition for that to give the same orientation or ill implement the code that micahstuh posted from kuka.

    I feel like i made the problem a bit confusing but this was just so i can get the orientation of a pose given the vector from the pose coordinates to the target point in space, and the XZ plane of the orientation. The whole idea is that I define a number of poses, the given angle from the base and the distance to the target. This is mainly to use a camera that has manual focus so it needs to face an object with the same orientation in all poses, but i can also use the same concept for other projects like welding,non planar 3d printing, etc..

  • Euler Angles from Unit Vectors

    • otretas
    • July 25, 2021 at 8:53 PM

    Hello,

    I have been trying to generate orientation positions for the flange in respect to a single point.

    I chose to calculate the direction of the vector from the tcp position to this point, in which the orientation of X vector from tcp is inversed from this calculated vector, Y vector parallel to the base, and Z vector pointed to the base. The image below shows the original reference frame from the base (Red - X, Green - Y, Blue - Z), the red dot as the point, and the frames with thin lines, the calculated pose.

    4JSYTNE.png

    To obtain the rotation matrix from the unit vectors i simply fit them in each respective column of the matrix:

    Rmat =

    XxYxZx
    XyYyZy
    XzYzZz

    From this link from this forum, i know that Kukas rotation order is Rz-Ry-Rx which then to obtain the Euler angles (A,B,C as kuka uses) is then:

    C = atan2(Yz, Zz)

    B = asin(-Xz)

    A = atan2(Xy,Xx)

    The A,B,C values obtained from this are not however the expected from the image above. The image below is an example using RoboDk to simulate one pose:

    OmvDJLe.png

    Target 2 X vector should have been following the direction of the position of Target 1 to Target 2.

    Am i not able to use the unit vectors in such way to calculate the Euler Angles?

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download