Skip to content

Commit 2018224

Browse files
committed
Create myprogram.cpp
第二次编程作业 学号:U201215695
1 parent e3702d0 commit 2018224

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

U201215695/myprogram.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <iostream>
2+
#include "Robot.h"
3+
4+
int main(){
5+
Point one(5,20),two(0,30),three(0,20),a(0,0),c(10,0),d(5,0),e(10,0);
6+
Robot MyRobot(10,20);
7+
WorldFrame wframe(a,0);
8+
JointFrame jframe1(a,0);
9+
JointFrame jframe2(c,0);
10+
TaskFrame tframe1(d,0);
11+
TaskFrame tframe2(e,90);
12+
MyRobot.PTPmove(tframe1,one);
13+
MyRobot.PTPmove(wframe,two);
14+
MyRobot.PTPmove(jframe1,three);
15+
}

0 commit comments

Comments
 (0)