realrobotcontrol.java

来自「一个由c转成java的3D robot 仿真平台」· Java 代码 · 共 27 行

JAVA
27
字号
/**************************************************************************//* In this package the real robot is controlled and the C-file which does *//* this is integrated.							  *//**************************************************************************/package RealRobot;final class RealRobotControl {	private static SerialOut s = new SerialOut();	public static void move(int arm, int pos)	{	  s.moverobo(arm, pos, 1);// 1 means 'execute a movement'	}		public static void openFile()	{	  s.moverobo(66, 66, 0);// 0 means 'open file', 66 is a dummy	}	public static void closeFile()	{	   s.moverobo(66, 66, 2);// 2 means 'close file', 66 is a dummy	} }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?