Coder Social home page Coder Social logo

roll offset about xarm-python-sdk HOT 2 CLOSED

xarm-developer avatar xarm-developer commented on August 16, 2024
roll offset

from xarm-python-sdk.

Comments (2)

DanielWang123321 avatar DanielWang123321 commented on August 16, 2024

Seems good when I test with xArm 6, based on

  1. xArm 6 robot
  2. xArm Firmware = 1.6.1, xArm SDK = 1.6.1
  3. Using 'set_world_offset'

Here is the script
`
import os
import sys
import time
sys.path.append(os.path.join(os.path.dirname(file), '../../..'))
from xarm.wrapper import XArmAPI
arm = XArmAPI('192.168.1.xxx')
arm.clean_warn()
arm.clean_error()
arm.set_world_offset([-207,0,112,180,0,0])
arm.save_conf()

arm.set_state(0)
arm.set_mode(0)
arm.move_gohome(wait=True)

print(arm.get_position())
time.sleep(1)
arm.set_position(200,0,0,0,0,0,speed=200,wait=True)
time.sleep(1)
arm.set_position(200,0,0,100,0,0,speed=200,wait=True)
time.sleep(1)
arm.set_position(200,0,0,0,0,0,speed=200,wait=True)
time.sleep(1)
arm.set_position(200,0,0,-100,0,0,speed=200,wait=True)
`
Here is a video about the script :https://drive.google.com/file/d/1ER6lpAVTGFZ5g5K_DGmYVPI06-aIIquV/view?usp=sharing
Please post more details if you still have questions about this issue.

from xarm-python-sdk.

judith-lambert-m avatar judith-lambert-m commented on August 16, 2024

Here is my code:

from xarm.wrapper import XArmAPI
arm = XArmAPI('192.168.1.XXX')
arm.set_world_offset([0,0,204.51,180,0,0])
arm.save_conf()
print(arm.world_offset)
arm.motion_enable(True)
arm.set_mode(0)
arm.set_state(0)
arm.move_gohome()
arm.set_position(400, 0, 350, 0, 0, 0, speed=70, wait=True)

When i print the world offset, it corresponds to the one i set. The robot go home, but then nothing happen.
There is nothing in the log and i don't get any error.

from xarm-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.