diff --git a/examples/data/sit_down.pkl b/examples/data/sit_down.pkl new file mode 100644 index 0000000..c023420 Binary files /dev/null and b/examples/data/sit_down.pkl differ diff --git a/examples/data/standup.pkl b/examples/data/standup.pkl new file mode 100644 index 0000000..2a3f4f3 Binary files /dev/null and b/examples/data/standup.pkl differ diff --git a/examples/lowlevel_dds_interface.ipynb b/examples/lowlevel_dds_interface.ipynb index 8417324..2ecb065 100644 --- a/examples/lowlevel_dds_interface.ipynb +++ b/examples/lowlevel_dds_interface.ipynb @@ -32,34 +32,25 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "{'q': array([-0.04657429, 1.2569859 , -2.80100107, 0.02410829, 1.27012634,\n", - " -2.79052782, -0.37551445, 1.27423871, -2.79706788, 0.34611496,\n", - " 1.28171718, -2.81962585]),\n", - " 'dq': array([ 0.00387552, -0.00775105, 0.00404402, -0.03100419, -0.00775105,\n", - " -0.01011006, -0.04263076, -0.05425733, 0.01011006, -0.04263076,\n", - " -0.00387552, -0.00808805]),\n", - " 'ddq': array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]),\n", - " 'tau_est': array([-0.07421485, 0.12369141, -0.23707521, -0.12369141, -0.12369141,\n", - " 0.33190528, 0.02473828, -0.02473828, -0.14224511, 0.02473828,\n", - " -0.04947656, 0.09483008]),\n", - " 'temperature': array([35., 31., 30., 34., 30., 30., 38., 32., 31., 38., 32., 31.])}" - ] - }, - "execution_count": 3, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ - "robot.getJointStates()" + "import time\n", + "dataset = []\n", + "for i in range(10000):\n", + " sample = robot.getJointStates()\n", + " dataset.append(sample['q'])\n", + " time.sleep(0.01)" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "code", "execution_count": null,