Comments (2)
Seems good when I test with xArm 6, based on
- xArm 6 robot
- xArm Firmware = 1.6.1, xArm SDK = 1.6.1
- 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.
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)
- Regarding impedance-control frame rates HOT 4
- Persistant balancing/vibration issue. HOT 1
- Linear track does not working when the arm is at mode 6 HOT 1
- [SDK][ERROR][base.py:374] - - API -> set_servo_angle -> code=1 HOT 4
- Not able to move the 7th joint of xArm7 using set_servo_angle HOT 2
- Strange Torque Sensor Manual Mode Movements HOT 2
- xArm Lite 6 motor temperature overheating HOT 5
- Question: Understanding swapping modes and states HOT 3
- Does the impedance control support robot movements? HOT 1
- How to clear/overwrite previously sent commands? HOT 4
- Release notes for version 1.13.19
- Running gcode in Studio and with Python run_gcode_file() is not the same (Lite6) HOT 1
- Gripper is not working using official example HOT 4
- Wrong forward kinematics? HOT 5
- Speed argument ignored by `set_servo_angle_j` HOT 2
- ServoJ speed limit errors HOT 4
- Updating Release Tags HOT 1
- set_only_check_type Lite6 not working
- Trouble Recovering from Collision HOT 6
- xARM 6 Lite Python SDK change of initial joint position HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xarm-python-sdk.