Skip to content

Demo: Origami modular robot#

The following steps are meant to be launched on the RPI#

Throughout this section, the required steps to run the Space Navigator demo of the soft neck are described.

  1. Plug the spnav dongle the PC.
  2. Plug the PCAN-USB adapter to the PC.
  3. On a terminal, run the following command for setting up the CAN bus port:

cd ~/Desktop && sudo ./init_can.sh
This file contains the following command, which sets up the physical port at a baud rate of 1MHz:
ip link set can0 up txqueuelen 1000 type can bitrate 1000000 restart-ms 100
  1. On a terminal, launch yarpserver through the following command:

yarpserver --write
5. Open the yarpgui for individually launching the different required applications. Press Alt+F2 at the same time to pop up the command window and type yarpmanager. 6. Open SoftNeckControl_App inside the Applications folder and launch the following apps in the described order by clicking the green launch button after selecting said app. 7. Launch SpaceNavigator. 8. Launch launchCanBus. At this point you can turn on the Power Supply with a voltage of 16V and tense the tendons through the easiest method. This is by means of the remote procedure calls (RPC). In order for this to work, the launchCanBus application needs to be launched. The RPC commands can be accessed through the following command:
yarp rpc /softneck/rpc:i

You can tighten and untighten the tendons with the set pos command, which gives a distance(m) value for the motor to rotate. It is suggested to use increments or decrements of 0.01 as a starting value.

set pos 0 0.01

This will shorten the first tendon a length of 0.01m. The ID associated to each motor is shown in the following figure.