Skip to content

SintefManufacturing/scorpion-json-rpc

Repository files navigation

Communicate with, and control Scorpion Vision from python using json-rpc protocol. Licenced under GPL

This is generic and does not contain project specific code


Installation:

clone this repository or copy tordivel_client.py and tordivel_server.py to scorpion profile MYPROFILE/Python/
cp content of central_start.py into "Central Start" script of Scorpion.

on client side have scorpion.py in a place when you python script will find it


Example:

    scrp = scorpion.Scorpion(ip, cfg.vision_port)
    try:
        # take a picture 
        scrp.trigger() 
    
        # set some scorpion values
        v.set_value("robot_calib.robot_poses.pose1_x", 9.9)
        scrp.set_value('RobotCalibration.method.Value', 'init')
    
        # run a scorpion toobox
        scrp.run_tool('RobotCalibration')
    
        #run a tool and read following values when tool is finished
        x, y, z = scrp.run_tool("find_jig", results=["find_jig.x", "find_jig.y", "find_jig.c"]) 

    finally:
        scrp.disconnect()

About

Control the scorpion vision system through JSON-RPC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages