An open API service indexing awesome lists of open source software.

https://github.com/hebirobotics/robotdiagrams

A header file and associated examples for generating 2-D textbook diagrams of simple robots.
https://github.com/hebirobotics/robotdiagrams

Last synced: 5 months ago
JSON representation

A header file and associated examples for generating 2-D textbook diagrams of simple robots.

Awesome Lists containing this project

README

          

# RobotDiagrams
A header file and associated examples for generating 2-D textbook diagrams of simple robots.

This uses an open source SVG drawing library -- simple svg. Check the license here before using it in your own project!
(NOTE: it has been modified; 'transparent' has been changed to 'none' to ensure the generated SVG file properly handles
transparancy)

The example programs are as follows:
* draw_rr_robot.cpp - draws a simple RR robot.
* generate_robots.cpp - converts all file arguments with an extension of '.robot' to '.svg' format.

# Config file
For generate_robots.cpp, the text format for the .robot files is a series of lines, each which is one of the following.

Base (fixed attachment to the world):
```
base
base
invisible_base
invisible_base
```

Link
```
link
link
invisible_link
```

Frames - x/y axis
```
frames
```

Vector
```
vector
vector
```

Point
```
point
point
```

Rotary Joint
```
rjoint
invisible_rjoint
```

Prismatic Joint
```
pjoint
```

End Effector
```
effector
```

# Building

To compile and run the example programs, type
```
g++ -o
```

# TODOS

* scaling factor
* text labels