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.
- Host: GitHub
- URL: https://github.com/hebirobotics/robotdiagrams
- Owner: HebiRobotics
- License: mit
- Created: 2016-08-05T14:33:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-06T01:50:08.000Z (almost 10 years ago)
- Last Synced: 2025-04-02T02:45:36.561Z (about 1 year ago)
- Language: C++
- Size: 29.3 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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