This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void read_file(std::string filename) { | |
// open file | |
std::ifstream infile(filename); | |
// check if opened succesfull | |
if (!infile) std::cout << "Failed to open file." << std::endl; | |
// read line by line and save in temporary string "line" | |
std::string line; | |
while(infile) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Uses the robotics toolbox from Peter I, Corke | |
% http://www.petercorke.com | |
% Robot model from the classic Puma 560 | |
% https://en.wikipedia.org/wiki/Programmable_Universal_Machine_for_Assembly | |
% video on youtube: https://www.youtube.com/watch?v=uSICxNwDfn0&feature=youtu.be | |
% Calculate inverse kinematics for a given cartesion path | |
Ta = transl(-0.2, 0, 0.2) * angvec2tr(pi / 4, [0 1 0]) * transl(0.5, -0.5, 0.5); % define the start point | |
Tb = angvec2tr(pi / 4, [0 1 0]) * transl(0.5, -0.5, 0.5); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <boost/function.hpp> | |
#include <vector> | |
using namespace std; | |
// Simple Point class | |
class Point | |
{ | |
int _value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "0.1.0", | |
"tasks": [ | |
{ | |
"taskName": "build", | |
"command": "g++", | |
"isShellCommand": true, | |
"isBuildCommand": true, |
NewerOlder