launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) c = config.Config() os.environ["MACHINEKIT_INI"] = c.MACHINEKIT_INI try: launcher.check_installation( ) # make sure the Machinekit installation is sane launcher.cleanup_session() # cleanup a previous session # Uncomment and modify the following line if you create a configuration for the BeagleBone Black # launcher.load_bbio_file('myoverlay.bbio') # load a BeagleBone Black universal overlay file # Uncomment and modify the following line of you have custom HAL components # launcher.install_comp('gantry.comp') # install a comp HAL component if not already installed # launcher.install_comp('lineardeltajointscartesian.comp') launcher.start_process( "configserver ~/Machineface ~/Cetus/" ) # start the configserver with Machineface an Cetus user interfaces launcher.start_process('linuxcnc replicookie.ini') # start linuxcnc except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) # loop until script receives exit signal # or one of the started applications exited incorrectly # cleanup is done automatically while True: sleep(1) launcher.check_processes()
#!/usr/bin/python import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('cramps2_cape.bbio') if os.path.exists('/dev/video0'): # automatically start videoserver launcher.start_process('videoserver -i video.ini Webcam1') launcher.start_process("configserver -n MendelMax ~/Cetus ~/Machineface") launcher.start_process('linuxcnc CRAMPS.3DOF.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
action='store_true') args = parser.parse_args() try: launcher.check_installation() launcher.cleanup_session() launcher.register_exit_handler() # needs to executed after HAL files launcher.install_comp('thermistor_check.comp') launcher.install_comp('reset.comp') launcher.install_comp('CoreXY.comp') nc_path = os.path.expanduser('~/nc_files') if not os.path.exists(nc_path): os.mkdir(nc_path) if not check_mklaucher( ): # start mklauncher if not running to make things easier launcher.start_process('mklauncher .') launcher.start_process("configserver -n Replicookie ~/Machineface ") if args.video: launcher.start_process('videoserver --ini video.ini Webcam1') launcher.start_process('linuxcnc Replicookie.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
#args = parser.parse_args() #if args.debug: #launcher.set_debug_level(5) if 'MACHINEKIT_INI' not in os.environ: # export for package installs mkconfig = config.Config() os.environ['MACHINEKIT_INI'] = mkconfig.MACHINEKIT_INI try: launcher.check_installation() launcher.cleanup_session() # kill any running Machinekit instances launcher.start_realtime() # start Machinekit realtime environment launcher.install_comp('dxlincurve.comp') launcher.install_comp('progtime.icomp') launcher.load_hal_file('main.hal') # load the main HAL file launcher.register_exit_handler( ) # enable on ctrl-C, needs to executed after HAL files launcher.ensure_mklauncher() # ensure mklauncher is started launcher.start_process( "configserver -n kilncontrol ./ui_mon ./ui_prog ./ui_run") while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
import sys import os import subprocess import importlib import argparse from time import * from machinekit import launcher launcher.register_exit_handler() #launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.install_comp('thermistor_check.comp') launcher.install_comp('reset.comp') # Video Streaming: you might need to create your own config launcher.start_process("videoserver --ini ~/video.ini Webcam1") # Remote Control: Get a Machineface at ARM.Replicape.A4A.vel/ launcher.start_process("configserver -n Replicape ~/Machineface/") launcher.start_process('linuxcnc replicape.ini') except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) while True: sleep(1) launcher.check_processes()
#!/usr/bin/python2 import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() launcher.set_debug_level(3) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() # launcher.start_process("configserver -d -n QQVsim ~/proj/remote-ui/Machineface") launcher.start_process("configserver -d -n QQVsim /usr/src/Machineface/build") launcher.start_process('linuxcnc qqvsim.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
def check_mklaucher(): try: subprocess.check_output(['pgrep', 'mklauncher']) return True except subprocess.CalledProcessError: return False try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('cramps2_cape.bbio') launcher.start_realtime() launcher.load_hal_file('basic.hal') launcher.start_process("configserver -n Electrolab \"demo-ui.Awesome UI\"") #launcher.start_process('linuxcnc CRAMPS.ini') if not check_mklaucher( ): # start mklauncher if not running to make things easier launcher.start_process('mklauncher .') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() launcher.set_debug_level(4) os.chdir(os.path.dirname(os.path.realpath(__file__))) ini_file = "UNI-PRINT-3D.ini" try: launcher.check_installation() launcher.cleanup_session() launcher.ensure_mklauncher() # launcher.load_bbio_file('paralell_cape3.bbio') launcher.start_process("configserver -n MendelMax ~/Machineface") # if os.path.exists('/dev/video0'): # automatically start videoserver # launcher.start_process('videoserver -i video.ini Webcam1') launcher.start_process('linuxcnc UNI-PRINT-3D.ini') launcher.start_process('python conversationbot.py') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
except subprocess.CalledProcessError: return False os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.register_exit_handler() # needs to executed after HAL files launcher.load_bbio_file('cramps2_cape.bbio') nc_path = os.path.expanduser('~/nc_files') if not os.path.exists(nc_path): os.mkdir(nc_path) if not check_mklaucher( ): # start mklauncher if not running to make things easier launcher.start_process('mklauncher .') launcher.start_process("configserver -n Prusa-i3 ~/Machineface") launcher.start_process('linuxcnc CRAMPS.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
#!/usr/bin/env python # -*- coding: utf-8 -*- import subprocess import sys import time from machinekit import launcher import rospy try: launcher.register_exit_handler( ) # enable on ctrl-C, needs to executed after HAL files path = rospy.get_param('/hal_config_path', '') launcher.start_process('mklauncher') launcher.start_process('configserver -n Borunte-Control {}'.format(path)) while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1)
#!/usr/bin/python import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() #launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('cramps2_cape.bbio') launcher.start_process("configserver -n KOSSEL ~/Cetus ~/Machineface") launcher.start_process('linuxcnc KOSSEL.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
lines.append('NUM_FANS = %i\n' % numExtruders) lines = [l.replace('uni_print_3d.py', 'sim.py') for l in lines] if withAbp: lines.append('ABP = 1\n') startupIni = open(startupIniName, 'w') startupIni.writelines(lines) # copy file contents startupIni.close() try: launcher.check_installation() launcher.cleanup_session() #launcher.load_bbio_file('paralell_cape3.bbio') launcher.install_comp('thermistor_check.icomp') cfg = configparser.ConfigParser({'NAME': ''}) cfg.read(startupIniName) machineName = cfg.get('EMC', 'NAME') command = 'configserver' if machineName is not '': command += ' -n %s' % machineName command += ' ~/projects/Machineface' launcher.start_process(command) launcher.start_process('linuxcnc %s' % startupIniName) while True: launcher.check_processes() sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
if 'MACHINEKIT_INI' not in os.environ: # export for package installs mkconfig = config.Config() os.environ['MACHINEKIT_INI'] = mkconfig.MACHINEKIT_INI try: launcher.check_installation() launcher.cleanup_session() # kill any running Machinekit instances launcher.start_realtime() # start Machinekit realtime environment launcher.load_hal_file('anddemo.py') # load the main HAL file launcher.register_exit_handler() # enable on ctrl-C, needs to executed after HAL files launcher.ensure_mklauncher() # ensure mklauncher is started if not args.no_config: # the point-of-contact for QtQUickVCP launcher.start_process('configserver -n AND-Demo .') if args.gladevcp: # start the gladevcp version if args.local: # no -N flag - local case, use IPC sockets, no zeroconf resolution launcher.start_process('gladevcp -E -u motorctrl.py motorctrl.ui') else: # -N - remote case, use zeroconf resolution launcher.start_process('gladevcp -N -E -u motorctrl.py motorctrl.ui') if args.halscope: # load scope only now - because all sigs are now defined: launcher.start_process('halscope') if args.halmeter: launcher.start_process('halmeter') while True:
launcher.load_bbio_file('paralell_cape2_robot.bbio') else: launcher.load_bbio_file('paralell_cape2.bbio') if mtEnabled: # load Machinetalk services cfg = configparser.ConfigParser({'NAME': ''}) cfg.read(startupIniName) machineName = cfg.get('EMC', 'NAME') command = 'configserver' if machineName is not '': command += ' -n %s' % machineName if machineface: command += ' ~/Machineface' if cetus: command += ' ~/Cetus' launcher.start_process(command) if os.path.exists('/dev/video0'): # automatically start videoserver launcher.start_process('videoserver -i video.ini Webcam1') launcher.start_process('linuxcnc ' + startupIniName) while True: launcher.check_processes() sleep(1) except subprocess.CalledProcessError: launcher.end_session() exit(1) exit(0)
if withAbp: lines.append('ABP = 1\n') startupIni = open(startupIniName, 'w') startupIni.writelines(lines) # copy file contents startupIni.close() try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('paralell_cape3.bbio') # launcher.install_comp('thermistor_check.icomp') cfg = configparser.ConfigParser({'NAME': ''}) cfg.read(startupIniName) machineName = cfg.get('EMC', 'NAME') command = 'configserver' if machineName is not '': command += ' -n %s' % machineName command += ' ~/Machineface' launcher.start_process(command) if os.path.exists('/dev/video0'): # automatically start videoserver launcher.start_process('videoserver -i video.ini Webcam1') launcher.start_process('linuxcnc %s' % startupIniName) while True: launcher.check_processes() sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
#!/usr/bin/python import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() #launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('cramps2_cape.bbio') launcher.start_process("configserver -n Fabrikator-Mini ~/Machineface") launcher.start_process('machinekit fabrikator-mini.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
import sys import os import subprocess import importlib import argparse from time import * from machinekit import launcher from machinekit import config launcher.register_exit_handler() #launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) c = config.Config() os.environ["MACHINEKIT_INI"] = c.MACHINEKIT_INI try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('cramps_cape.bbio') launcher.install_comp('reset.comp') launcher.start_process("configserver -n Arcus-3D-M1 ./lib/Arcus-Machineface") launcher.start_process('linuxcnc Arcus-3D-M1.ini') except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) while True: sleep(1) launcher.check_processes()
configuration.setup_hardware(args.hardware) configuration.setup_config(args.hardware) if args.test: # setup motor stepgen with siggen: configuration.setup_test_cramps() configuration.start_hal() # instantiate machine m=MiniMachine(name='m') # start a new stread for the machine thread = Thread(target = tickle_machine, args = (m, )) thread.start() launcher.register_exit_handler() # needs to executed after HAL files if not check_mklaucher(): # start mklauncher if not running to make things easier launcher.start_process('mklauncher .') if not args.no_config: # the point-of-contact for QtQUickVCP launcher.start_process('configserver -n UserInterface .') if args.halscope: # load scope only now - because all sigs are now defined: launcher.start_process('halscope') if args.halmeter: launcher.start_process('halmeter') while True: launcher.check_processes()
#!/usr/bin/python import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.start_process("configserver -d -n MendelMax ~/proj/remote-ui/Machineface ~/proj/remote-ui/Cetus") launcher.start_process('linuxcnc CRAMPS_SIM.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
from machinekit import launcher from machinekit import config launcher.register_exit_handler() #launcher.set_debug_level(9) os.chdir(os.path.dirname(os.path.realpath(__file__))) launcher.set_machinekit_ini(config.MACHINEKIT_INI) try: launcher.check_installation() launcher.cleanup_session() launcher.register_exit_handler() # needs to executed after HAL files launcher.load_bbio_file('bebopr_cape.bbio') nc_path = os.path.expanduser('~/nc_files') if not os.path.exists(nc_path): os.mkdir(nc_path) launcher.ensure_mklauncher() # ensure mklauncher is started launcher.start_process("configserver -n 'Arcus-3D-C1' ~/Machineface") launcher.start_process('machinekit arcus-3d-c1.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
#!/usr/bin/python import sys import os import subprocess import importlib from machinekit import launcher from time import * launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() # make sure the Machinekit installation is sane launcher.cleanup_session() # cleanup a previous session # launcher.load_bbio_file('myoverlay.bbio') # load a BBB universal overlay # launcher.install_comp('gantry.comp') # install a comp HAL component of not already installed # launcher.start_process("configserver ../Machineface ../Cetus/") # start the configserver # launcher.start_process("configserver /home/ysli/proj/remote-ui/Machineface /home/ysli/proj/remote-ui/Cetus") # start the configserver launcher.start_process("configserver /home/ysli/proj/remote-ui/Cetus") # start the configserver # launcher.start_process('linuxcnc xyz.ini') # start linuxcnc launcher.start_process('linuxcnc mkwrapper_mm.ini') # start linuxcnc except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) while True: sleep(1) launcher.check_processes()
import subprocess import importlib from machinekit import launcher from time import * launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() # make sure the Machinekit installation is sane launcher.cleanup_session() # cleanup a previous session # Uncomment and modify the following line if you create a configuration for the BeagleBone Black #launcher.load_bbio_file('cape-universal') launcher.load_bbio_file('cramps_cape.bbio') # load a BeagleBone Black universal overlay file # Uncomment and modify the following line of you have custom HAL components # launcher.install_comp('gantry.comp') # install a comp HAL component if not already installed launcher.start_process("configserver ~/Machineface") # start the configserver with Machineface an Cetus user interfaces launcher.start_process('machinekit -k ~/machinekit/configs/ARM.BeagleBone.CRAMPS/CRAMPS.ini') # start linuxcnc except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) # loop until script receives exit signal # or one of the started applications exited incorrectly # cleanup is done automatically while True: sleep(1) launcher.check_processes()
args = parser.parse_args() if args.debug: launcher.set_debug_level(5) if 'MACHINEKIT_INI' not in os.environ: # export for package installs mkconfig = config.Config() os.environ['MACHINEKIT_INI'] = mkconfig.MACHINEKIT_INI try: launcher.check_installation() launcher.cleanup_session() # kill any running Machinekit instances launcher.start_realtime() # start Machinekit realtime environment launcher.load_hal_file(MAIN_HAL) # load the main HAL file launcher.register_exit_handler( ) # enable on ctrl-C, needs to executed after HAL files launcher.ensure_mklauncher() # ensure mklauncher is started launcher.start_process('configserver -n %s .' % NAME) while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
os.environ['MACHINEKIT_INI'] = mkconfig.MACHINEKIT_INI def check_mklaucher(): try: subprocess.check_output(['pgrep', 'mklauncher']) return True except subprocess.CalledProcessError: return False try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('cramps2_cape.bbio') launcher.start_realtime() launcher.load_hal_file('basic.hal') launcher.start_process("configserver -n Electrolab \"demo-ui.Awesome UI\"") #launcher.start_process('linuxcnc CRAMPS.ini') if not check_mklaucher(): # start mklauncher if not running to make things easier launcher.start_process('mklauncher .') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
#!/usr/bin/python import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() #launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('cramps2_cape.bbio') launcher.start_process("configserver -n Prusa_i2 ~/Machineface") launcher.start_process('linuxcnc CRAMPS.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
from machinekit import config from time import * launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) c = config.Config() os.environ["MACHINEKIT_INI"] = c.MACHINEKIT_INI try: launcher.check_installation() # make sure the Machinekit installation is sane launcher.cleanup_session() # cleanup a previous session # Uncomment and modify the following line if you create a configuration for the BeagleBone Black # launcher.load_bbio_file('myoverlay.bbio') # load a BeagleBone Black universal overlay file # Uncomment and modify the following line of you have custom HAL components # launcher.install_comp('gantry.comp') # install a comp HAL component if not already installed launcher.install_comp('lineardeltajointscartesian.comp') launcher.start_process("configserver -n Delta /home/machinekit/Cetus") # start the configserver with Cetus user interfaces launcher.start_process('linuxcnc CRAMPS.ini') # start linuxcnc except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) # loop until script receives exit signal # or one of the started applications exited incorrectly # cleanup is done automatically while True: sleep(1) launcher.check_processes()
launcher.register_exit_handler() #launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) parser = argparse.ArgumentParser(description='This is the CRAMPS2-vel run script ' 'it demonstrates how a run script could look like ' 'and of course starts the CRAMPS2-vel config') parser.add_argument('-v', '--video', help='Starts the video server', action='store_true') args = parser.parse_args() try: launcher.check_installation() launcher.cleanup_session() #launcher.load_bbio_file('cramps2_cape.bbio') #launcher.install_comp('e_check.comp') launcher.start_process("configserver -n ICON5D ../Machineface-old ../Cetus") if args.video: launcher.start_process('videoserver --ini video.ini Webcam1') launcher.start_process ('sudo chmod go+rw /dev/input/event1') launcher.start_process('linuxcnc CRAMPS-mouse.ini') except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) while True: sleep(1) launcher.check_processes()
#!/usr/bin/python import sys import os import subprocess import importlib from machinekit import launcher from time import * launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() # make sure the Machinekit installation is sane launcher.cleanup_session() # cleanup a previous session launcher.load_bbio_file('MendelMax.bbio') # load a BBB universal overlay # launcher.install_comp('gantry.comp') # install a comp HAL component of not already installed launcher.start_process("configserver ../Machineface ../Cetus/") # start the configserver launcher.start_process('linuxcnc MendelMax.Remote.ini') # start linuxcnc except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) while True: sleep(1) launcher.check_processes()
args = parser.parse_args() if args.debug: launcher.set_debug_level(5) if 'MACHINEKIT_INI' not in os.environ: # export for package installs mkconfig = config.Config() os.environ['MACHINEKIT_INI'] = mkconfig.MACHINEKIT_INI try: launcher.check_installation() launcher.cleanup_session() # kill any running Machinekit instances launcher.load_bbio_file('parallel_cape_io_test.bbio') # load the BBIO pin overlay launcher.start_realtime() # start Machinekit realtime environment launcher.load_hal_file('main.py') # load the main HAL file launcher.register_exit_handler() # enable on ctrl-C, needs to executed after HAL files launcher.ensure_mklauncher() # ensure mklauncher is started launcher.start_process('configserver -n "Linear Axis" .') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
#!/usr/bin/python import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('cramps2_cape.bbio') launcher.start_process("configserver -n Linear_Delta ~/Machineface") launcher.start_process('machinekit lineardelta.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
import subprocess import importlib from machinekit import launcher from time import * launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() # make sure the Machinekit installation is sane launcher.cleanup_session() # cleanup a previous session # Uncomment and modify the following line if you create a configuration for the BeagleBone Black # launcher.load_bbio_file('myoverlay.bbio') # load a BeagleBone Black universal overlay file # Uncomment and modify the following line of you have custom HAL components # launcher.install_comp('gantry.comp') # install a comp HAL component if not already installed launcher.ensure_mklauncher() launcher.start_process("configserver ~/Machineface ~/Cetus/") # start the configserver with Machineface an Cetus user interfaces launcher.start_process('machinekit puma560.ini') # start linuxcnc except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) # loop until script receives exit signal # or one of the started applications exited incorrectly # cleanup is done automatically while True: sleep(1) launcher.check_processes()
args = parser.parse_args() if args.debug: launcher.set_debug_level(5) if 'MACHINEKIT_INI' not in os.environ: # export for package installs mkconfig = config.Config() os.environ['MACHINEKIT_INI'] = mkconfig.MACHINEKIT_INI try: launcher.check_installation() launcher.cleanup_session() # kill any running Machinekit instances launcher.load_bbio_file('parallel_cape_io_test.bbio') # load the BBIO pin overlay launcher.start_realtime() # start Machinekit realtime environment launcher.load_hal_file(MAIN_HAL) # load the main HAL file launcher.register_exit_handler() # enable on ctrl-C, needs to executed after HAL files launcher.ensure_mklauncher() # ensure mklauncher is started launcher.start_process('configserver -n {} .'.format(NAME)) while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
import time from machinekit import launcher launcher.register_exit_handler() launcher.set_debug_level(3) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: logging.debug("check installation") launcher.check_installation() logging.debug("cleanup session") launcher.cleanup_session() logging.debug("make launcher") launcher.ensure_mklauncher() # ensure mklauncher is started logging.debug("config server") launcher.start_process("configserver -d -n Voron ~/Machineface/ ~/Cetus/") logging.debug("start piphat") launcher.start_process('linuxcnc piphat.ini') logging.debug("check_processes") launcher.check_processes() logging.debug("now loop") while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: logging.debug("end process") launcher.end_session() sys.exit(1)
#!/usr/bin/python import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() #launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.ensure_mklauncher() launcher.load_bbio_file('cramps2_cape.bbio') launcher.start_process("configserver -n MendelMax ~/Machineface") launcher.start_process('linuxcnc fabrikator-mini.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
#!/usr/bin/python import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() launcher.set_debug_level(3) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.start_process("configserver -d -n QQVsim ~/proj/remote-ui/Machineface") launcher.start_process('linuxcnc qqvsim.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) c = config.Config() os.environ["MACHINEKIT_INI"] = c.MACHINEKIT_INI try: launcher.check_installation( ) # make sure the Machinekit installation is sane launcher.cleanup_session() # cleanup a previous session # Uncomment and modify the following line if you create a configuration for the BeagleBone Black # launcher.load_bbio_file('myoverlay.bbio') # load a BeagleBone Black universal overlay file # Uncomment and modify the following line of you have custom HAL components # launcher.install_comp('gantry.comp') # install a comp HAL component if not already installed # launcher.install_comp('lineardeltajointscartesian.comp') launcher.start_process( "configserver ~/Machineface ~/Cetus/" ) # start the configserver with Machineface or an Cetus user interfaces launcher.start_process('linuxcnc prusa-i3_dev.ini') # start linuxcnc except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) # loop until script receives exit signal # or one of the started applications exited incorrectly # cleanup is done automatically while True: sleep(1) launcher.check_processes()
from machinekit import config from time import * launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) c = config.Config() os.environ["MACHINEKIT_INI"] = c.MACHINEKIT_INI try: launcher.check_installation() # make sure the Machinekit installation is sane launcher.cleanup_session() # cleanup a previous session # Uncomment and modify the following line if you create a configuration for the BeagleBone Black # launcher.load_bbio_file('myoverlay.bbio') # load a BeagleBone Black universal overlay file # Uncomment and modify the following line of you have custom HAL components # launcher.install_comp('gantry.comp') # install a comp HAL component if not already installed # launcher.install_comp('lineardeltajointscartesian.comp') launcher.start_process("configserver ~/Machineface ~/Cetus/") # start the configserver with Machineface an Cetus user interfaces launcher.start_process('linuxcnc mibrap-x_fdm.ini') # start linuxcnc except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) # loop until script receives exit signal # or one of the started applications exited incorrectly # cleanup is done automatically while True: sleep(1) launcher.check_processes()
#!/usr/bin/python import sys import os import subprocess import importlib import argparse from time import * from machinekit import launcher launcher.register_exit_handler() # launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file("paralell_cape3.bbio") launcher.install_comp("thermistor_check.comp") launcher.install_comp("led_dim.comp") launcher.start_process("configserver -n Uni-print-3D ~/Machineface") launcher.start_process("linuxcnc UNIPRINT-3D.ini") except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) while True: sleep(1) launcher.check_processes()
#launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) c = config.Config() os.environ["MACHINEKIT_INI"] = c.MACHINEKIT_INI parser = argparse.ArgumentParser(description='This is the CRAMPS2-vel run script ' 'it demonstrates how a run script could look like ' 'and of course starts the CRAMPS2-vel config') parser.add_argument('-v', '--video', help='Starts the video server', action='store_true') args = parser.parse_args() try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('cramps2_cape.bbio') launcher.install_comp('thermistor_check.comp') launcher.install_comp('reset.comp') launcher.start_process("configserver -n Prusa-i3 ~/Machineface ") if args.video: launcher.start_process('videoserver --ini video.ini Webcam1') launcher.start_process('linuxcnc CRAMPS2.ini') except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) while True: sleep(1) launcher.check_processes()
args = parser.parse_args() if args.debug: launcher.set_debug_level(5) if not args.local: # override default $MACHINEKIT_INI with a version which was REMOTE=1 launcher.set_machinekit_ini('/etc/linuxcnc/machinekit.ini') try: launcher.check_installation() launcher.cleanup_session() launcher.load_bbio_file('led-demo.bbio') if args.config: # the point-of-contact for QtQUickVCP launcher.start_process('configserver -n Motorctrl-Demo .') if args.webtalk: # the Websockets/JSON bridge into Machinetalk launcher.start_process('webtalk --ini led-demo.ini') if args.video: launcher.start_process('videoserver --ini video.ini Webcam1') launcher.start_realtime() # launcher.load_hal_file('hardware.hal', 'hardware.ini') command = 'halcmd -i hardware.ini -f hardware.hal' subprocess.check_call(command, shell=True) # launcher.load_hal_file('hardware.hal', 'led-demo.ini') #launcher.load_hal_file('led-demo.hal', 'led-demo.ini') command = 'halcmd -i led-demo.ini -f led-demo.hal'
from machinekit import config from time import * launcher.register_exit_handler() launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) c = config.Config() os.environ["MACHINEKIT_INI"] = c.MACHINEKIT_INI try: launcher.check_installation() # make sure the Machinekit installation is sane launcher.cleanup_session() # cleanup a previous session # Uncomment and modify the following line if you create a configuration for the BeagleBone Black # launcher.load_bbio_file('myoverlay.bbio') # load a BeagleBone Black universal overlay file # Uncomment and modify the following line of you have custom HAL components # launcher.install_comp('gantry.comp') # install a comp HAL component if not already installed launcher.install_comp('lineardeltajointscartesian.comp') launcher.start_process("configserver ~/Machineface ~/Cetus/") # start the configserver with Machineface an Cetus user interfaces launcher.start_process('linuxcnc CRAMPS.ini') # start linuxcnc except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) # loop until script receives exit signal # or one of the started applications exited incorrectly # cleanup is done automatically while True: sleep(1) launcher.check_processes()
#!/usr/bin/python import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() launcher.set_debug_level(3) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() # launcher.start_process("configserver -d -n QQVsim ~/proj/remote-ui/Machineface") launcher.start_process( "configserver -d -n QQVsim /usr/src/Machineface/build") launcher.start_process('linuxcnc qqvsim.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
#!/usr/bin/python import sys import os import subprocess import time from machinekit import launcher launcher.register_exit_handler() #launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.ensure_mklauncher() launcher.load_bbio_file('cramps2_cape.bbio') launcher.start_process("configserver -n MendelMax ~/Machineface") launcher.start_process('linuxcnc CRAMPS.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
import sys import os import subprocess import importlib import argparse from time import * from machinekit import launcher launcher.register_exit_handler() #launcher.set_debug_level(5) os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.install_comp('thermistor_check.comp') launcher.install_comp('reset.comp') # Video Streaming: you might need to create your own config # launcher.start_process("videoserver --ini ~/video.ini Webcam1") # Remote Control: Get a Machineface at ARM.Replicape.A4A.vel/ launcher.start_process("configserver -n Replicape ~/Machineface/") launcher.start_process('linuxcnc replicape.ini') except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) while True: sleep(1) launcher.check_processes()
parser.add_argument('-d', '--debug', help='debug level', type=int, choices=[0 , 1, 2, 3, 4, 5]) args = parser.parse_args() try: launcher.check_installation() # make sure the Machinekit installation is sane launcher.cleanup_session() # cleanup a previous session # set debug level if args.debug: launcher.set_debug_level(args.debug) launcher.load_bbio_file('cramps.bbio') # load a BBB universal overlay launcher.install_comp('thermistor_check.comp') launcher.start_process('configserver -d -n RIGIDBOT ~/ui') # start the configserver # if args.video: # launcher.start_process('videoserver --ini video.ini Webcam1') launcher.start_process('machinekit -vd CRAMPS.ini') # start linuxcnc except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) while True: sleep(1) launcher.check_processes()
except subprocess.CalledProcessError: return False os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.register_exit_handler() # needs to executed after HAL files nc_path = os.path.expanduser('~/nc_files') if not os.path.exists(nc_path): os.mkdir(nc_path) if not check_mklaucher( ): # start mklauncher if not running to make things easier launcher.start_process( 'mklauncher ~/Hm2-soc_FDM/Cramps/PY/Mibrap-X_hm2_mill-soc') launcher.start_process("configserver -n mibrap-x_hm2-soc-mill ~/Cetus/") launcher.start_process('machinekit mibrap-x_mill.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
return True except subprocess.CalledProcessError: return False os.chdir(os.path.dirname(os.path.realpath(__file__))) try: launcher.check_installation() launcher.cleanup_session() launcher.register_exit_handler() # needs to executed after HAL files nc_path = os.path.expanduser('~/nc_files') if not os.path.exists(nc_path): os.mkdir(nc_path) if not check_mklaucher( ): # start mklauncher if not running to make things easier launcher.start_process('mklauncher ~/Hm2-soc_FDM/Cramps/HAL/OX') launcher.start_process("configserver -n OX Router ~/Cetus/") launcher.start_process('linuxcnc ox.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
help='Starts the video server', action='store_true') args = parser.parse_args() try: launcher.check_installation() launcher.cleanup_session() launcher.register_exit_handler() # needs to executed after HAL files launcher.install_comp('thermistor_check.comp') launcher.install_comp('reset.comp') nc_path = os.path.expanduser('~/nc_files') if not os.path.exists(nc_path): os.mkdir(nc_path) if not check_mklaucher( ): # start mklauncher if not running to make things easier launcher.start_process('mklauncher .') launcher.start_process("configserver -n Prusa-i3 ~/Machineface ") if args.video: launcher.start_process('videoserver --ini video.ini Webcam1') launcher.start_process('linuxcnc Prusa-i3.ini') while True: launcher.check_processes() time.sleep(1) except subprocess.CalledProcessError: launcher.end_session() sys.exit(1) sys.exit(0)
except subprocess.CalledProcessError: return False try: launcher.check_installation() launcher.cleanup_session() # launcher.start_realtime() # launcher.load_hal_file('anddemo.py') launcher.register_exit_handler() # needs to executed after HAL files nc_path = os.path.expanduser('~/nc_files') if not os.path.exists(nc_path): os.mkdir(nc_path) if not check_mklaucher(): # start mklauncher if not running to make things easier launcher.start_process('mklauncher .') # the point-of-contact for QtQUickVCP launcher.start_process('configserver -n mkwrapper-Demo . ~/repos/Cetus %s' % args.path) # start machinekit launcher.start_process('machinekit mkwrapper.ini') if args.halscope: # load scope only now - because all sigs are now defined: launcher.start_process('halscope') if args.halmeter: launcher.start_process('halmeter') while True: launcher.check_processes()