Create and Position Robot with RobotStudio SDK
Hello All, I am trying to develop some functionality with RobotStudio.
I have a JSON file which contains information about an ABB robot model (let's assume an IRB1200) and its position information (translation and rotation). I would like to develop some SDK code where we can read the JSON data and then create an empty station, load the specific robot and position it according to the provided data.
I am wondering first of all if this is possible to do directly with the RobotStudio SDK? Or perhaps we will have to do some hacky work-arounds to achieve this:
- Have multiple pre-made stations with the various robots already included. Then upon loading we can re-position the robot?
- use the mechanism builder to manually construct the manipulators as mechanisms and load them that way?
Any suggestions or advice greatly appreciated
I have a JSON file which contains information about an ABB robot model (let's assume an IRB1200) and its position information (translation and rotation). I would like to develop some SDK code where we can read the JSON data and then create an empty station, load the specific robot and position it according to the provided data.
I am wondering first of all if this is possible to do directly with the RobotStudio SDK? Or perhaps we will have to do some hacky work-arounds to achieve this:
- Have multiple pre-made stations with the various robots already included. Then upon loading we can re-position the robot?
- use the mechanism builder to manually construct the manipulators as mechanisms and load them that way?
Any suggestions or advice greatly appreciated
0
Answers
-
You can try to follow the steps in the documentation, I have not done it myself but you can start here:
1. Create station
https://developercenter.robotstudio.com/api/robotstudio/articles/How-To/Miscellaneous/CreateNewStationExample.html
2. Import robot / Create robot
Couldn't find any information about import rslib files but maybe they are handled the same way as regular cad files, in that case you can follow this:
https://developercenter.robotstudio.com/api/robotstudio/articles/How-To/Geometry/ImportCADFilesExample.html
Files for robots are located here by default:
C:\ProgramData\ABB\DistributionPackages2
With the latest robotstudio you have to download every model before they are available on your PC.
2.1 Otherwise you can create your own as you suggested.
https://developercenter.robotstudio.com/api/robotstudio/articles/How-To/RobotMechanism/BuildthemodeloftheIRB140.html
OR
https://developercenter.robotstudio.com/api/robotstudio/articles/How-To/RobotMechanism/CreateARobotExample.html
3. Create targets with values from your JSON file
https://developercenter.robotstudio.com/api/robotstudio/articles/How-To/Targets-and-Paths/g_CreateTarget.html
I hope this helps you get started.
Systemintegrator - Web / C# / Rapid / Robotstudio
If I helped, please press Vote Up
☑️2024 - RobotStudio® User Group0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings