Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/billiegoose/hubo-trajectories
Trajectory files for use with hubo-read-trajectory.
https://github.com/billiegoose/hubo-trajectories
Last synced: 24 days ago
JSON representation
Trajectory files for use with hubo-read-trajectory.
- Host: GitHub
- URL: https://github.com/billiegoose/hubo-trajectories
- Owner: billiegoose
- Created: 2013-08-29T22:19:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-12T19:53:46.000Z (about 11 years ago)
- Last Synced: 2024-10-06T03:22:24.958Z (3 months ago)
- Size: 7.59 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hubo-trajectories
=================A collection of trajectory files for use with hubo-read-trajectory, starting with everyone's favorite Rainbow, Inc demo gestures. They are pretty and the columns are perfectly aligned, so you can easily read and debug them in a text editor. (E.g. all the numbers are signed, so if you have to flip the signs of a column, you can do that with some find & replace magic and still have all your columns beautifully aligned.)
If you want to implement code to read them, know that:
* The first line is a header of field names.
* The delimeter is 1 or MORE spaces. Not tabs. Never tabs. Tabs are evil.
* Each column is exactly 12 characters wide. (1 for sign, 10 for number, 1 mandatory space)
* Columns are left aligned and padded with spaces.`tools` folder
--------------Let's say you don't want to edit your trajectory files by hand. Honestly, I get sick of that too sometimes. When that happens, I load them into MATLAB:
```MATLAB
[ data, joints ] = loadTraj( filename );
```* `data` contains the numbers.
* `joints` is a cell array containing the header fields (in this case, the joint names).Let's say you've fixed that gnarly bug in your trajectory, and you want to write it out to a file. Easy enough:
```MATLAB
saveTraj( filename, data, joints );
```