Skip to content

Commit

Permalink
Update test notebooks. (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
simheo authored May 3, 2023
1 parent adb77f6 commit 2f96866
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 256 deletions.
161 changes: 35 additions & 126 deletions reachy_sdk/examples/Testing the arm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "98f7924d",
"metadata": {},
"outputs": [],
Expand All @@ -17,7 +17,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "8c06d8d2",
"metadata": {},
"outputs": [],
Expand All @@ -35,43 +35,10 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "d4944d7b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<Reachy host=\"localhost\" joints=\n",
"\t<Joint name=\"l_shoulder_pitch\" pos=\"-14.75\" mode=\"compliant\">\n",
"\t<Joint name=\"l_shoulder_roll\" pos=\"-11.45\" mode=\"compliant\">\n",
"\t<Joint name=\"l_arm_yaw\" pos=\"-1.27\" mode=\"compliant\">\n",
"\t<Joint name=\"l_elbow_pitch\" pos=\"-61.58\" mode=\"compliant\">\n",
"\t<Joint name=\"l_forearm_yaw\" pos=\"-70.23\" mode=\"compliant\">\n",
"\t<Joint name=\"l_wrist_pitch\" pos=\"51.38\" mode=\"compliant\">\n",
"\t<Joint name=\"l_wrist_roll\" pos=\"-54.69\" mode=\"compliant\">\n",
"\t<Joint name=\"l_gripper\" pos=\"30.28\" mode=\"compliant\">\n",
"\t<Joint name=\"r_shoulder_pitch\" pos=\"10.92\" mode=\"compliant\">\n",
"\t<Joint name=\"r_shoulder_roll\" pos=\"2.13\" mode=\"compliant\">\n",
"\t<Joint name=\"r_arm_yaw\" pos=\"12.35\" mode=\"compliant\">\n",
"\t<Joint name=\"r_elbow_pitch\" pos=\"-62.55\" mode=\"compliant\">\n",
"\t<Joint name=\"r_forearm_yaw\" pos=\"12.76\" mode=\"compliant\">\n",
"\t<Joint name=\"r_wrist_pitch\" pos=\"-32.13\" mode=\"compliant\">\n",
"\t<Joint name=\"r_wrist_roll\" pos=\"-8.06\" mode=\"compliant\">\n",
"\t<Joint name=\"r_gripper\" pos=\"-33.80\" mode=\"compliant\">\n",
"\t<Joint name=\"l_antenna\" pos=\"0.44\" mode=\"compliant\">\n",
"\t<Joint name=\"r_antenna\" pos=\"-1.03\" mode=\"compliant\">\n",
"\t<Joint name=\"neck_disk_top\" pos=\"-43.65\" mode=\"compliant\">\n",
"\t<Joint name=\"neck_disk_middle\" pos=\"-59.22\" mode=\"compliant\">\n",
"\t<Joint name=\"neck_disk_bottom\" pos=\"-53.91\" mode=\"compliant\">\n",
">"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"reachy"
]
Expand All @@ -86,7 +53,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "8d6f8d03",
"metadata": {},
"outputs": [],
Expand All @@ -96,7 +63,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "4bdcb7a1",
"metadata": {},
"outputs": [],
Expand All @@ -114,7 +81,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "eaff4dd0",
"metadata": {},
"outputs": [],
Expand All @@ -124,7 +91,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "899c2885",
"metadata": {},
"outputs": [],
Expand All @@ -150,7 +117,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "caf45293",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -184,7 +151,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": null,
"id": "36320685",
"metadata": {},
"outputs": [],
Expand All @@ -194,7 +161,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "10a21a8b",
"metadata": {},
"outputs": [],
Expand All @@ -211,7 +178,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"id": "67e0938d",
"metadata": {},
"outputs": [],
Expand All @@ -228,7 +195,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "8250041f",
"metadata": {},
"outputs": [],
Expand All @@ -254,7 +221,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"id": "c6802a17",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -290,7 +257,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "eafae578",
"metadata": {},
"outputs": [],
Expand All @@ -306,7 +273,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"id": "39e4971e",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -343,7 +310,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": null,
"id": "c369cac4",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -379,7 +346,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": null,
"id": "9620fd8d",
"metadata": {},
"outputs": [],
Expand All @@ -395,7 +362,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": null,
"id": "ebde3991",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -438,24 +405,10 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "fdc52045",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<Holder\n",
"\t<ForceSensor name=\"l_force_gripper\" force=\"2.21\">\n",
"\t<ForceSensor name=\"r_force_gripper\" force=\"6.40\">\n",
">"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"reachy.force_sensors"
]
Expand All @@ -478,7 +431,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "975fd07e",
"metadata": {},
"outputs": [],
Expand All @@ -491,7 +444,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "60c472c6",
"metadata": {},
"outputs": [],
Expand All @@ -512,42 +465,20 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"id": "ced090d3",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<ForceSensor name=\"r_force_gripper\" force=\"-118.81\">"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"reachy.force_sensors.r_force_gripper"
]
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"id": "8e777590",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<ForceSensor name=\"l_force_gripper\" force=\"-133.14\">"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"reachy.force_sensors.l_force_gripper"
]
Expand All @@ -562,42 +493,20 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "6f5da24c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<ForceSensor name=\"r_force_gripper\" force=\"95.95\">"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"reachy.force_sensors.r_force_gripper"
]
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"id": "017f5372",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<ForceSensor name=\"l_force_gripper\" force=\"69.74\">"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"reachy.force_sensors.l_force_gripper"
]
Expand All @@ -612,7 +521,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": null,
"id": "838b4599",
"metadata": {},
"outputs": [],
Expand All @@ -625,7 +534,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": null,
"id": "88831aed",
"metadata": {},
"outputs": [],
Expand All @@ -647,7 +556,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -661,7 +570,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.10.6"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 2f96866

Please sign in to comment.