Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 19, 2025

Provides a minimal starter example showing how to control the UFACTORY xArm5 robotic arm programmatically from Raspberry Pi 5.

File Added

  • src/ac_training_lab/xarm5_minimal_example.py - Minimal script (39 lines) demonstrating basic xArm5 control

Example Usage

from xarm.wrapper import XArmAPI

# Connect to xArm5
arm = XArmAPI('192.168.1.100')

# Enable motion
arm.motion_enable(enable=True)
arm.set_mode(0)  # Position control mode
arm.set_state(0)  # Ready state

# Move to home position
arm.move_gohome(wait=True)

# Move to a position (x, y, z in mm, angles in degrees)
arm.set_position(x=300, y=0, z=200, roll=180, pitch=0, yaw=0, speed=100, wait=True)

# Disconnect
arm.disconnect()

Installation

pip install xarm-python-sdk

The script includes installation instructions and can be easily customized by changing the IP address configuration.

Original prompt

This section details on the original issue you should resolve

<issue_title>XArm5 integration into rail/lift/arm combo</issue_title>
<issue_description></issue_description>

<agent_instructions>Look up official xarm docs and other open source GitHub repositories using your MCP tools. We want to be able to control the xarm from a raspberry pi 5. Use your context7 and GitHub MCP tools.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits November 19, 2025 22:34
Co-authored-by: sgbaird <45469701+sgbaird@users.noreply.github.com>
Co-authored-by: sgbaird <45469701+sgbaird@users.noreply.github.com>
Copilot AI changed the title [WIP] Add XArm5 integration for rail, lift, and arm combo Add xArm5 robotic arm control module for Raspberry Pi 5 Nov 19, 2025
Copilot AI requested a review from sgbaird November 19, 2025 22:42
Copy link
Member

@sgbaird sgbaird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot I don't really like any of these changes. I had actually assigned copilot on the wrong issue. I had meant to do this in the sub-issue about the minimal/starter example. Revert all your commits here to start over.

Max one new file. Should be a minimal script showing how we'd use the xarm5 programmatically in Python.

Co-authored-by: sgbaird <45469701+sgbaird@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 20, 2025

@copilot I don't really like any of these changes. I had actually assigned copilot on the wrong issue. I had meant to do this in the sub-issue about the minimal/starter example. Revert all your commit...

Reverted all changes and replaced with a single minimal starter example file: src/ac_training_lab/xarm5_minimal_example.py (40 lines).

The file shows basic programmatic control: connect → enable motion → move to position → disconnect.

Commit: 25ccd34

Copilot AI changed the title Add xArm5 robotic arm control module for Raspberry Pi 5 Add minimal xArm5 starter example for Raspberry Pi 5 Nov 20, 2025
Copilot AI requested a review from sgbaird November 20, 2025 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XArm5 integration into rail/lift/arm combo

2 participants