Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Set RsRobtarget Orientation by quaternion
IRB120
✭
in RobotStudio
Hi,how can i set the RsRobtarget orientation as a quaternion?I tried with
Quaternion q_t3sx = new Quaternion(0.916670034199826,0.0811690875386569,0.241895443865017,-0.307594248752441);
target.Frame.Matrix.Quaternion.Add(q_t3sx);
but the orientation still remains the default one.
IRB1202011-09-28 19:00:20
0
Comments
-
Hi there,Maybe IA've misunderstood your question but.Is this what you are looking for?VAR robtarget pRobtarget := [[............pRobtarget.rot.q1 := 0.916670034199826;and so on...0
-
No, i was referring to the C# API and not to the Rapid Editor.Have you any idea about that?
0 -
Oh,Im sorry, I just read the question an not your code...If it's the PC SDK, my experince is that the functions you have in the rapid editor, You also can reach from the PC SDK.I haveA'nt used the SDK enough to be absolutely sure...And I have no example code but...In the namespace ABB.Robotics.Controllers.RapidDomain:You have the type "Robtarget" and to that a member called "Rot".I think that this is a similar function to the one in the Rapid editor.Maybe itA's worth a try...0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings