User Tools

Site Tools


run

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
run [2019/08/08 15:19] visentinrun [2021/10/22 09:57] (current) – [Running the Delta Application] ursgraf
Line 3: Line 3:
  
 ====== Running the Delta Application ====== ====== Running the Delta Application ======
-Starting the application on the Delta robot will do a homing firstsee [[sequencer#homing|Homing]]. After homing the Delta is in //system ready// mode which is indicated by the green and blue LED\\ +Nextssh into the targetBefore you start the delta application you have to make sure that your mouse works with <code> 
-\\ +ost@bblue:$ sudo cat /dev/input/event1  
-If you press the green button, the Delta starts its [[sequencer#auto_moving_sequence|Auto Moving Sequence]]. In between shuffling and sorting the blocks you can take control by using a mouse, see [[sequencer#mouse_sequence|Mouse Sequence]]. By moving the mouse you can move the tool center point (TCP). You can raise and lower the TCP by scrolling. By pressing the left or right mouse button you enable the electromagnet. Releasing the mouse button will disable it. If you do not perform any action with the mouse for 2 seconds, the robot will start it's auto sequence operating mode again.\\ +</code>   
-\\ +Start your application in a second terminal while the above command is still running  
-Press the blue button to stop the [[sequencer#auto_moving_sequence|Auto Moving Sequence]] or [[sequencer#mouse_sequence|Mouse Sequence]]. This will stop the current sequence, raise the TCP and put it back to it's homing position. The robot is again in //system ready// mode. \\ +<code> 
-\\ +ost@bblue:$ sudo ./bin/delta -c bin/HwConfigBBBlue.json 
-Press the red button in case of an emergency and the red LED lights upIn this case you have to press the green button to continue. The Delta will repeat its homing and go to //system ready// mode.\\ +</code> 
-\\ +
-If you press the blue button 3 times in the //system ready// mode, the robot will move to it's parking position and power down. When pressing the green and blue button together in the //system ready// mode, the Delta can be calibrated.\\+
  
 +===== Autostart =====
  
-===== Run the Application on Startup ===== +Usually you want run the application upon startup of the board after you applied power. 
-To run Delta application on startup just copy the //start.sh// from the //bbblue-scipts// folder on your target:+For this purpose you have to copy two files from the //bbblue-scripts// folder of [[https://github.com/eeduro/eeduro-scripts|]] to your target:
 <code> <code>
-scp ./bbblue-scripts/start.sh debian@192.168.7.2:/opt/eeros/bin+scp ./bbblue-scripts/start.sh ost@192.168.7.2:bin 
 +$ scp ./bbblue-scripts/delta-startup.service ost@192.168.7.2:bin
 </code> </code>
-and make sure that it'executable:+Make sure that ''start.sh'' is executable on the target. ssh into the target and run:
 <code> <code>
-debian@beaglebone:$ sudo chmod +x /opt/eeros/bin/start.sh +ost@bblue:$ chmod +x bin/start.sh 
 </code> </code>
-In the ''/etc/rc.local'' file on your target add the following line:+Further, copy the file ''delta-startup.service'' to the right location, so that your systemd can find it upon initialization.
 <code> <code>
-sudo screen -dmS delta /opt/eeros/bin/start.sh+ost@bblue:sudo mv bin/delta-startup.service /etc/systemd/system/
 </code> </code>
-This script will start the Delta application in detached screen. To see the log output from the application just reattach to this screen session.+As final step you have to enable the service with
 <code> <code>
-debian@beaglebone:$ sudo screen -r delta+ost@bblue:$ sudo systemctl enable delta-startup
 </code> </code>
-If the Delta application terminates the BeagleBoneBlue will shutdown. +and reboot with
- +
-===== Run the Application not on Startup - Testing ===== +
- +
-If you want to test the application without start-up script, you can type on one terminal the following:  +
 <code> <code>
-cd /dev/input +ost@bblue:$ sudo /sbin/reboot
-sudo cat event1+
 </code> </code>
 +Now, the Delta application will start 20s after the board is powered up and the operating system finished its bootup procedure. When the Delta application terminates the Beaglebone Blue will shutdown after 30s. You can terminate the application as described in [[user_interface|]].
  
-And in a second terminal+:!: Please note that upon termination of the program the BeagleBoneBlue will shutdown and you will loose your ssh connection.
  
 +===== Get Output of Loggers after Autostart =====
 +The Delta application periodically logs various state information. To see this output the application was started in a detached screen. To see the log output from the application just reattach to this screen session. First connect to your target with 
 +<code>$ ssh ost@192.168.7.2</code>
 +then reattach with
 <code> <code>
-cd /opt/eeros/bin +ost@bblue:sudo screen -r delta
-sudo ./delta -c HwConfigBBBlue.json+
 </code> </code>
 +You could also terminate the application by pressing ''CTRL-C''. \\
 +
 +:!: Please note that upon termination of the program the BeagleBoneBlue will shutdown and you will loose your ssh connection.
  
  
 ---- ----
 **Next: [[dev|]]** **Next: [[dev|]]**
run.1565270367.txt.gz · Last modified: 2019/08/08 15:19 by visentin