-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update manpage #70
Merged
Merged
Update manpage #70
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a9c98c2
Update manpage
at-wat 6980182
Fix circle radius variable
at-wat c965d8a
Highlight syntax
at-wat 80aaac5
Add several functions to manpage
at-wat b3dd827
Fix file url
at-wat 6ad7492
Fix return value
at-wat 4e805c8
Add joint control commands
at-wat 2be81b8
Fix variable name
at-wat 1db3546
Spit manpage
at-wat 725d8bc
Fix typo
at-wat 295e332
Update Manpage.control.md
at-wat 3da8cc3
Update Manpage.joint.md
at-wat ae3d6cc
Update Manpage.misc.md
at-wat 143f8ad
Fix retval
at-wat 6d8097c
Fix retval and type
at-wat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,247 @@ | ||
# libypspur - motion control | ||
|
||
## Motion control parameter settings | ||
|
||
### Name | ||
|
||
Spur_set_vel, Spur_set_angvel, Spur_set_accel, Spur_set_angaccel | ||
|
||
### Synopsis | ||
|
||
```c | ||
int Spur_set_vel(double vel); | ||
int Spur_set_angvel(double angvel); | ||
int Spur_set_accel(double accel); | ||
int Spur_set_angaccel(double angaccel); | ||
``` | ||
|
||
### Description | ||
|
||
Set maximum velocity and acceleration used in motion control. | ||
|
||
* **vel**: Maximum linear velocity of the robot _[m/s]_ | ||
* **angvel**: Maximum angular velocity _[rad/s]_ | ||
* **accel**: Maximum linear acceleration _[m/ss]_ | ||
* **angaccel**: Maximum angular acceleration _[rad/ss]_ | ||
|
||
### Return value | ||
|
||
On success, zero is returned. On error, -1 is returned. | ||
|
||
*** | ||
|
||
## Line following | ||
|
||
### Name | ||
|
||
Spur_line_GL, Spur_line_LC, Spur_line_FS | ||
|
||
### Synopsis | ||
|
||
```c | ||
int Spur_line_GL(double x, double y, double th); | ||
int Spur_line_LC(double x, double y, double th); | ||
int Spur_line_FS(double x, double y, double th); | ||
``` | ||
|
||
### Description | ||
|
||
Control vehicle velocity and angular velocity to follow desired straight line. | ||
|
||
* **x**: x position of a point where the desired line passing through _[m]_ | ||
* **y**: y position of the point _[m]_ | ||
* **th**: yaw orientation of the line _[rad]_ | ||
|
||
![Parameters for line following control](https://github.com/openspur/yp-spur/raw/master/doc/images/commands/line.png) | ||
|
||
### Return value | ||
|
||
On success, zero is returned. On error, -1 is returned. | ||
|
||
*** | ||
|
||
## Circle following | ||
|
||
### Name | ||
|
||
Spur_circle_GL, Spur_circle_LC, Spur_circle_FS - Circle following | ||
|
||
### Synopsis | ||
|
||
```c | ||
int Spur_circle_GL(double x, double y, double d); | ||
int Spur_circle_LC(double x, double y, double d); | ||
int Spur_circle_FS(double x, double y, double d); | ||
``` | ||
|
||
### Description | ||
|
||
Control vehicle velocity and angular velocity to follow desired circle. | ||
|
||
* **x**: x position of the center of the desired circle _[m]_ | ||
* **y**: y position of the center of the desired circle _[m]_ | ||
* **d**: radius of the circle _[m]_ (positive: CCW, negative: CW) | ||
|
||
![Parameters for circle following control](https://github.com/openspur/yp-spur/raw/master/doc/images/commands/circle.png) | ||
|
||
### Return value | ||
|
||
On success, zero is returned. On error, -1 is returned. | ||
|
||
*** | ||
|
||
## Angle control (Yaw pose control) | ||
|
||
### Name | ||
|
||
Spur_spin_GL, Spur_spin_LC, Spur_spin_FS | ||
|
||
### Synopsis | ||
|
||
```c | ||
int Spur_spin_GL(double th); | ||
int Spur_spin_LC(double th); | ||
int Spur_spin_FS(double th); | ||
``` | ||
|
||
### Description | ||
|
||
Control angular velocity to face desired direction. | ||
|
||
* **th**: Desired yaw orientation _[rad]_ | ||
|
||
![Parameters for angle control](https://github.com/openspur/yp-spur/raw/master/doc/images/commands/spin.png) | ||
|
||
### Return value | ||
|
||
On success, zero is returned. On error, -1 is returned. | ||
|
||
*** | ||
|
||
## Angle control (Yaw pose control) with translational motion | ||
|
||
### Name | ||
|
||
Spur_orient_GL, Spur_orient_LC, Spur_orient_FS | ||
|
||
### Synopsis | ||
|
||
```c | ||
int Spur_orient_GL(double th); | ||
int Spur_orient_LC(double th); | ||
int Spur_orient_FS(double th); | ||
``` | ||
|
||
### Description | ||
|
||
Control velocity and angular velocity to run facing desired direction. | ||
|
||
* **th**: Desired yaw orientation _[rad]_ | ||
|
||
![Parameters for angle control with translational motion](https://github.com/openspur/yp-spur/raw/master/doc/images/commands/orient.png) | ||
|
||
### Return value | ||
|
||
On success, zero is returned. On error, -1 is returned. | ||
|
||
*** | ||
|
||
## Line following with position control | ||
|
||
### Name | ||
|
||
Spur_stop_line_GL, Spur_stop_line_LC, Spur_stop_line_FS | ||
|
||
### Synopsis | ||
|
||
```c | ||
int Spur_stop_line_GL(double x, double y, double th); | ||
int Spur_stop_line_LC(double x, double y, double th); | ||
int Spur_stop_line_FS(double x, double y, double th); | ||
``` | ||
|
||
### Description | ||
|
||
Control vehicle velocity and angular velocity to follow desired straight line and stop at the desired position with best effort. | ||
|
||
* **x**: x position of a point where the desired line passing through and desired to stop on _[m]_ | ||
* **y**: y position of the point _[m]_ | ||
* **th**: yaw orientation of the line _[rad]_ | ||
|
||
![Parameters for line following with position control](https://github.com/openspur/yp-spur/raw/master/doc/images/commands/stop_line.png) | ||
|
||
### Return value | ||
|
||
On success, zero is returned. On error, -1 is returned. | ||
|
||
*** | ||
|
||
## Velocity control | ||
|
||
### Name | ||
|
||
Spur_vel | ||
|
||
### Synopsis | ||
|
||
```c | ||
int Spur_vel(double v, double w); | ||
``` | ||
|
||
### Description | ||
|
||
Control vehicle velocity and angular velocity. | ||
|
||
* **v**: velocity of the vehicle _[m/s]_ | ||
* **w**: angular velocity of the vehicle _[rad/s]_ | ||
|
||
### Return value | ||
|
||
On success, 0 is returned. On error, -1 is returned. | ||
|
||
*** | ||
|
||
## Stop | ||
|
||
### Name | ||
|
||
Spur_stop | ||
|
||
### Synopsis | ||
|
||
```c | ||
int Spur_stop(void); | ||
``` | ||
|
||
### Description | ||
|
||
Stop with set acceleration and angular acceleration. | ||
|
||
### Return value | ||
|
||
On success, 0 is returned. On error, -1 is returned. | ||
|
||
*** | ||
|
||
## Free | ||
|
||
### Name | ||
|
||
Spur_free, Spur_openfree | ||
|
||
### Synopsis | ||
|
||
```c | ||
int Spur_free(void); | ||
int Spur_openfree(void); | ||
``` | ||
|
||
### Description | ||
|
||
Stop velocity control and make wheels free. | ||
`Spur_free` actively frees wheels compensating friction. | ||
`Spur_openfree` opens motors drive circuits. | ||
|
||
### Return value | ||
|
||
On success, 0 is returned. On error, -1 is returned. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 at success