Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This repo is a [module](https://docs.viam.com/registry/#modular-resources) that
- UR3e, as `viam:universal-robots:ur3e`
- UR5e, as `viam:universal-robots:ur5e`
- UR7e, as `viam:universal-robots:ur7e`
- UR12e, as `viam:universal-robots:ur12e`
- UR20, as `viam:universal-robots:ur20`

## Configuration and Usage
Expand Down
5 changes: 5 additions & 0 deletions meta.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
"api": "rdk:component:arm",
"model": "viam:universal-robots:ur20",
"markdown_link": "README.md#configuration-and-usage"
},
{
"api": "rdk:component:arm",
"model": "viam:universal-robots:ur12e",
"markdown_link": "README.md#configuration-and-usage"
}
],
"entrypoint": "@CMAKE_INSTALL_BINDIR@/universal-robots"
Expand Down
250 changes: 250 additions & 0 deletions src/kinematics/ur12e.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
{
"name": "UR12e",
"kinematic_param_type": "SVA",
"links": [
{
"id": "base_link",
"parent": "world",
"translation": {
"x": 0,
"y": 0,
"z": 180.7
},
"geometry": {
"r": 75.0,
"l": 300.0,
"translation": {
"x": 0,
"y": 0,
"z": 150.0
}
}
},
{
"id": "shoulder_link",
"parent": "shoulder_pan_joint",
"translation": {
"x": 0,
"y": 0,
"z": 0
}
},
{
"id": "upper_arm_link",
"parent": "shoulder_lift_joint",
"translation": {
"x": -612.7,
"y": 0,
"z": 0
},
"geometry": {
"r": 80.0,
"l": 735.0,
"translation": {
"x": -306.35,
"y": -130,
"z": 0
},
"orientation": {
"type": "ov_degrees",
"value": {
"x": -1,
"y": 0,
"z": 0,
"th": 0
}
}
}
},
{
"id": "forearm_link",
"parent": "elbow_joint",
"translation": {
"x": -571.55,
"y": 0,
"z": 0
},
"geometry": {
"r": 65.0,
"l": 670.0,
"translation": {
"x": -285.775,
"y": 0,
"z": 0
},
"orientation": {
"type": "ov_degrees",
"value": {
"x": -1,
"y": 0,
"z": 0,
"th": 0
}
}
}
},
{
"id": "wrist_1_link",
"parent": "wrist_1_joint",
"translation": {
"x": 0,
"y": -174.15,
"z": 0
},
"geometry": {
"r": 50.0,
"l": 260.0,
"translation": {
"x": 0,
"y": -87.075,
"z": 0
},
"orientation": {
"type": "ov_degrees",
"value": {
"x": 0,
"y": -1,
"z": 0,
"th": 0
}
}
}
},
{
"id": "wrist_2_link",
"parent": "wrist_2_joint",
"translation": {
"x": 0,
"y": 0,
"z": -119.85
},
"geometry": {
"r": 80.0,
"translation": {
"x": 0,
"y": 0,
"z": 0
},
"orientation": {
"type": "ov_degrees",
"value": {
"x": 0,
"y": 0,
"z": -1,
"th": 0
}
}
}
},
{
"id": "ee_link",
"parent": "wrist_3_joint",
"translation": {
"x": 0,
"y": -116.55,
"z": 0
},
"orientation": {
"type": "ov_degrees",
"value": {
"x": 0,
"y": -1,
"z": 0,
"th": 90
}
},
"geometry": {
"r": 50.0,
"l": 200.0,
"translation": {
"x": 0,
"y": -58.275,
"z": 0
},
"orientation": {
"type": "ov_degrees",
"value": {
"x": 0,
"y": -1,
"z": 0,
"th": 0
}
}
}
}
],
"joints": [
{
"id": "shoulder_pan_joint",
"type": "revolute",
"parent": "base_link",
"axis": {
"x": 0,
"y": 0,
"z": 1
},
"max": 360,
"min": -360
},
{
"id": "shoulder_lift_joint",
"type": "revolute",
"parent": "shoulder_link",
"axis": {
"x": 0,
"y": -1,
"z": 0
},
"max": 360,
"min": -360
},
{
"id": "elbow_joint",
"type": "revolute",
"parent": "upper_arm_link",
"axis": {
"x": 0,
"y": -1,
"z": 0
},
"max": 180,
"min": -180
},
{
"id": "wrist_1_joint",
"type": "revolute",
"parent": "forearm_link",
"axis": {
"x": 0,
"y": -1,
"z": 0
},
"max": 360,
"min": -360
},
{
"id": "wrist_2_joint",
"type": "revolute",
"parent": "wrist_1_link",
"axis": {
"x": 0,
"y": 0,
"z": -1
},
"max": 360,
"min": -360
},
{
"id": "wrist_3_joint",
"type": "revolute",
"parent": "wrist_2_link",
"axis": {
"x": 0,
"y": -1,
"z": 0
},
"max": 360,
"min": -360
}
]
}
3 changes: 3 additions & 0 deletions src/viam/ur/module/ur_arm_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ const std::vector<UrModelDescriptor>& UrModelDescriptor::all() {
t.push_back({"ur20",
"ur20",
{"base_link", "wrist_3_link", "shoulder_link", "forearm_link", "upper_arm_link", "wrist_1_link", "wrist_2_link"}});
// URCL maps "ur12e" to RobotType::UR10 (per URCL helpers.h), so the
// urcl_category here is "ur10".
t.push_back({"ur12e", "ur10", {}});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

third list cannot be empty.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thought about it, I think that it can be empty since the get3d models endpoint is not implemented for this arm model as it is new.

please file a ticket as a todo and add it as a comment here that the third list will need to be updated the day that the relevant glbs are added.

return t;
}();
return table;
Expand Down