Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
172 changes: 172 additions & 0 deletions U201210562/CoffeeMachine.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
[Project]
FileName=CoffeeMachine.dev
Name=CoffeeMachine
Type=1
Ver=2
ObjFiles=
Includes=D:\devCpp\project\CoffeeMachine\eigen
Libs=
PrivateResource=
ResourceIncludes=
MakeIncludes=
Compiler=
CppCompiler=
Linker=
IsCpp=1
Icon=
ExeOutput=
ObjectOutput=
LogOutput=
LogOutputEnabled=0
OverrideOutput=0
OverrideOutputName=CoffeeMachine.exe
HostApplication=
UseCustomMakefile=0
CustomMakefile=
CommandLine=
Folders=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=0000000000000000000000000
UnitCount=10

[VersionInfo]
Major=1
Minor=0
Release=0
Build=0
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=1.0.0.0
FileDescription=Developed using the Dev-C++ IDE
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
AutoIncBuildNr=0
SyncProduct=1

[Unit1]
FileName=main.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit2]
FileName=robot.hpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit3]
FileName=solver.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit4]
FileName=solver.hpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit5]
FileName=robot.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit6]
FileName=Frame.hpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit13]
FileName=Point.hpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit14]
FileName=Point.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit7]
FileName=Point.hpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit8]
FileName=Point.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit9]
FileName=JointFrame.hpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit10]
FileName=JointFrame.cpp
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

Binary file added U201210562/CoffeeMachine.exe
Binary file not shown.
73 changes: 73 additions & 0 deletions U201210562/CoffeeMachine.layout
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
[Editors]
Order=0,1,4,2,3,5,7,6,8,9
Focused=0
[Editor_0]
CursorCol=1
CursorRow=1
TopLine=1
LeftChar=1
[Editor_1]
CursorCol=22
CursorRow=5
TopLine=1
LeftChar=1
[Editor_4]
CursorCol=1
CursorRow=4
TopLine=1
LeftChar=1
[Editor_6]
CursorCol=11
CursorRow=14
TopLine=1
LeftChar=1
[Editor_5]
CursorCol=10
CursorRow=22
TopLine=3
LeftChar=1
[Editor_7]
CursorCol=29
CursorRow=9
TopLine=1
LeftChar=1
[Editor_8]
CursorCol=1
CursorRow=3
TopLine=1
LeftChar=1
[Editor_9]
CursorCol=1
CursorRow=7
TopLine=1
LeftChar=1
[Editor_10]
CursorCol=3
CursorRow=14
TopLine=1
LeftChar=1
[Editor_11]
CursorCol=2
CursorRow=11
TopLine=1
LeftChar=1
[Editor_2]
CursorCol=1
CursorRow=16
TopLine=1
LeftChar=1
[Editor_3]
CursorCol=21
CursorRow=5
TopLine=1
LeftChar=1
[Editor_13]
CursorCol=6
CursorRow=5
TopLine=1
LeftChar=1
[Editor_12]
CursorCol=1
CursorRow=22
TopLine=1
LeftChar=1
29 changes: 29 additions & 0 deletions U201210562/Frame.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef _FRAME_HPP_
#define _FRAME_HPP_

#include "Eigen/Dense"
#include <iostream>
#include "Point.hpp"

using namespace std;

class Frame{
private:
Point origin;
double degree;
public:
Frame(){}
Frame(Point orig,double deg){
origin=orig;
degree=deg;
}
Point getPoint(){
return origin;
}
double getDegree(){
return degree;
}

};

#endif
25 changes: 25 additions & 0 deletions U201210562/JointFrame.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include "JointFrame.hpp"

JointFrame::JointFrame() {
jointDegree[0] = 0;
jointDegree[1] = 0;
}

JointFrame::JointFrame(double d1,double d2) {
jointDegree[0] = d1;
jointDegree[1] = d2;
}

void JointFrame::setDeg(double d1,double d2) {
jointDegree[0] = d1;
jointDegree[1] = d2;
}

double JointFrame::getDeg1() {
return jointDegree[0];
}

double JointFrame::getDeg2() {
return jointDegree[1];
}

21 changes: 21 additions & 0 deletions U201210562/JointFrame.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#ifndef _JOINTFRAME_HPP_
#define _JOINTFRAME_HPP_

#include "Frame.hpp"


class JointFrame {

private:
double jointDegree[2] ;

public:
JointFrame();
JointFrame(double d1,double d2);
void setDeg(double d1,double d2);
double getDeg1();
double getDeg2();

};

#endif
Binary file added U201210562/JointFrame.o
Binary file not shown.
40 changes: 40 additions & 0 deletions U201210562/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Project: CoffeeMachine
# Makefile created by Dev-C++ 5.11

CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
OBJ = main.o solver.o robot.o Point.o JointFrame.o
LINKOBJ = main.o solver.o robot.o Point.o JointFrame.o
LIBS = -L"D:/devCpp/Dev-Cpp/MinGW64/lib" -L"D:/devCpp/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgcc
INCS = -I"D:/devCpp/Dev-Cpp/MinGW64/include" -I"D:/devCpp/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/devCpp/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"D:/devCpp/project/CoffeeMachine/eigen"
CXXINCS = -I"D:/devCpp/Dev-Cpp/MinGW64/include" -I"D:/devCpp/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/devCpp/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"D:/devCpp/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++" -I"D:/devCpp/project/CoffeeMachine/eigen"
BIN = CoffeeMachine.exe
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)
RM = rm.exe -f

.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after

clean: clean-custom
${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)

main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)

solver.o: solver.cpp
$(CPP) -c solver.cpp -o solver.o $(CXXFLAGS)

robot.o: robot.cpp
$(CPP) -c robot.cpp -o robot.o $(CXXFLAGS)

Point.o: Point.cpp
$(CPP) -c Point.cpp -o Point.o $(CXXFLAGS)

JointFrame.o: JointFrame.cpp
$(CPP) -c JointFrame.cpp -o JointFrame.o $(CXXFLAGS)
15 changes: 15 additions & 0 deletions U201210562/Point.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "Point.hpp"

Point::Point() {};

Point::Point(Vector2d v) {
pos = v;
}

Vector2d Point::getPoint() {
return pos;
}

void Point::setPoint(Vector2d v) {
pos = v;
}
Loading