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
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Stäubli & Bosch Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Val 3 appro() function

  • WolfgangE
  • February 15, 2024 at 2:24 PM
  • Thread is Unresolved
  • WolfgangE
    Trophies
    1
    Posts
    5
    • February 15, 2024 at 2:24 PM
    • #1

    Hi everyone.

    I have some trouble understanding the appro() function.

    point = appro(point,{0,0,0,0,0,0}) should give point back, so stay the same right? It does not so of rx,ry and rz. Somehow it turns them some 180° for some reason. Can somebody help me with that?

  • Go to Best Answer
  • Lemster68 February 15, 2024 at 2:25 PM

    Approved the thread.
  • Psyril
    Reactions Received
    18
    Trophies
    4
    Posts
    83
    • February 20, 2024 at 8:51 AM
    • #2

    Hello WolfgangE,

    It is still making calculations and rewrite the position in the shortest orientation change from 0,0,0. If you don't want to change your variable, you should consider not using the appro function. This won't generate any calculations on your point.

    The difference between theory and practice is greater in practice than in theory.

  • WolfgangE
    Trophies
    1
    Posts
    5
    • February 20, 2024 at 9:15 AM
    • #3

    Thanks for your reply. I'm afraid I do not understand.

    What I really want is changing the TCP in length as well as in orientation. It does work with the length (translation) but not with the orientation (rotation). Thats why I used obove's example. If I want to change the TCP with {0,0,0,0,0,0} so stay it the way it is, it should stay the way it is but it doesn't. It does again properly with translation but not so with rotation.

  • Psyril
    Reactions Received
    18
    Trophies
    4
    Posts
    83
    • February 22, 2024 at 2:23 PM
    • #4

    So if you want to change the TCP you should change a tool variable instead of changing a point variable.

    The difference between theory and practice is greater in practice than in theory.

  • WolfgangE
    Trophies
    1
    Posts
    5
    • February 22, 2024 at 2:43 PM
    • #5

    Yes but how? The tool variable is in the coordinate system of the flange. Now I want to programmaticly change the TCP which is easy in the current TCP coordinatesystem but ultimately i have to give it in the flange coordinatesystem. So my idea was to make the new TCP as point in the current TCP coordinatesystem and transform it into the flange coordinatesystem and overwrite the tool variable with it.

  • DaveP
    Reactions Received
    23
    Trophies
    4
    Posts
    201
    • February 22, 2024 at 6:03 PM
    • Best Answer
    • #6

    You can modify your tool variable directly in your program. Reference the TRSF for the gripper and adjust as needed. You could enter the values directly or apply an offset, etc.

    Direct Entry: tlGripper.trsf={0, 0, 150, 0, 0, 0}

    Offset current Tool: tlGripper.trsf={0, 0, 150, 0, 0, 0}*{0,0,nOffset,0,0,0}

  • WolfgangE
    Trophies
    1
    Posts
    5
    • February 23, 2024 at 11:21 AM
    • #7

    Thank you for your reply. I tried it out and I think, my not understanding is much more deep, sorry. If I try following tlGripper.trsf={187, 108, 344, -90, -120, -90}*{0, 0, 0, 0, 0, 0,} then the result is {187, 108, 344, 90, -60, 90} Why is here the rotation totally different? Or maybe it is not and I don't see it.

  • Psyril
    Reactions Received
    18
    Trophies
    4
    Posts
    83
    • February 23, 2024 at 5:16 PM
    • #8

    As I already wrote, it is still making calculations and rewrite the position in the shortest orientation change from 0,0,0. -90, -120, -90 is further away from 0 than 90, -60, 90. It's like saying 3/9 and 1/3. It's the same!

    You can ask A&W Restaurants about it.

    The difference between theory and practice is greater in practice than in theory.

  • WolfgangE
    Trophies
    1
    Posts
    5
    • February 26, 2024 at 2:06 PM
    • #9

    Thank you guys. That helped a lot!

  • Galet
    Reactions Received
    19
    Trophies
    2
    Posts
    141
    • February 29, 2024 at 6:15 PM
    • #10

    Hello guys.

    An other solution is to create second tool inside the first one. In this case the coordinates are defined in the first tool system.

    I make that when I've a wear on the tool.

    If you want to calculate the second tool in the flange, use the Position(...) function !

    have a nice day...

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Similar Threads

  • Shift spline move (MOVS)

    • Ignition0271
    • December 12, 2023 at 8:57 AM
    • Yaskawa Motoman Robot Forum
  • Tool rotation in movel bugged?

    • aknezevi.proton
    • May 17, 2023 at 2:42 PM
    • Stäubli & Bosch Robot Forum
  • Robot arm stops unexpectedly when attempting to real-time control it

    • aknezevi.proton
    • April 24, 2023 at 11:40 AM
    • Stäubli & Bosch Robot Forum
  • Staubli Appro and Compose

    • VHS
    • January 19, 2021 at 3:14 PM
    • Stäubli & Bosch Robot Forum
  • Verify all code paths

    • Hes
    • September 9, 2022 at 10:11 PM
    • KUKA Robot Forum
  • Sequence of statement that cannot be approximated

    • ChristianLiinHansen
    • January 5, 2022 at 10:44 PM
    • KUKA Robot Forum
  • Speed control function - VCON reset rotation amount

    • jac
    • August 31, 2021 at 3:56 PM
    • Yaskawa Motoman Robot Forum
  • KSS 8.3 trouble with GripperTech

    • panic mode
    • August 12, 2021 at 2:10 AM
    • KUKA Robot Forum
  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