Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDK-8460 - Modularize the xarm driver and remove it from RDK #4578

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/arm/fake/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"sync"

"github.com/pkg/errors"
xarm "github.com/viam-modules/viam-ufactory-xarm/arm"
Copy link
Member

Choose a reason for hiding this comment

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

We should not be importing modules into RDK. This makes our import graph extremely messy.

We can replicate the imported function locally and use the test files you added.


"go.viam.com/rdk/components/arm"
"go.viam.com/rdk/components/arm/eva"
ur "go.viam.com/rdk/components/arm/universalrobots"
"go.viam.com/rdk/components/arm/xarm"
"go.viam.com/rdk/logging"
"go.viam.com/rdk/motionplan"
"go.viam.com/rdk/referenceframe"
Expand Down
3 changes: 2 additions & 1 deletion components/arm/register/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package register

import (
// register arms.
_ "github.com/viam-modules/viam-ufactory-xarm/arm"
Copy link
Member

Choose a reason for hiding this comment

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

This rather defeats the purpose of putting this in a module, no?


_ "go.viam.com/rdk/components/arm/eva"
_ "go.viam.com/rdk/components/arm/fake"
_ "go.viam.com/rdk/components/arm/universalrobots"
_ "go.viam.com/rdk/components/arm/wrapper"
_ "go.viam.com/rdk/components/arm/xarm"
)
217 changes: 0 additions & 217 deletions components/arm/xarm/lite6_kinematics.json

This file was deleted.

Loading
Loading