# Create Dryve Rail
The following library is to be used for translation along the x-axis of a track controlled by the Dryve D1.
[![Negative end switch (set on right side)](https://i.imgur.com/00q584T.png)](https://gfycat.com/UnlinedDisloyalLamb)
Movement of the platform along the x-axis can be done with the:
```python
targetPosition(<point>)
```
The point is set in reference to the *home* position set at the negative end-switch.
As the end-switch's home position is then set to x = 0 at the designated *home* position, any input into the function is considered as relative to the universal frame set at this position.
The *home* position will begin to be set with:
```python
dryveInit()
```
To manually set this position for any reason, simply run:
```python
homing()
```
To get current position of the Dryve rail, simply use:
```python
getposition(<position (mm)>)
```
As indicated, the function returns position of the rail at execution in millimetres.
To set velocity profile, simply run:
```python
velocityProfile(<velocity (mm/s)>)
```
Likewise, the target velocity can be set with:
```python
targetVelocity(<velocity (mm/s)>)
```
The difference between velocity profile and target velocity is that targetvelocity() simply moves a set velocity
until a new command is set, while velocityProfile() simply modifies the velocity setting in point to point movement.
If createdryverail contributes to a project that leads to publication, please acknowledge this by citing createdryverrail.
Raw data
{
"_id": null,
"home_page": "https://github.com/Nicher1/Dryve-repository-for-dummies.git",
"name": "createdryverail",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6,==3.*",
"maintainer_email": "",
"keywords": "robotics DryveD1 Python Script Rail Create",
"author": "Nichlas Overgaard Laugesen, Elias Thomassen Dam",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/bd/20/27a832206795ddb3763f7999e2fc7e0b7f04f6392af2dc2b721f3e3a99e7/createdryverail-2.5.7.tar.gz",
"platform": null,
"description": "# Create Dryve Rail\r\n\r\nThe following library is to be used for translation along the x-axis of a track controlled by the Dryve D1.\r\n[![Negative end switch (set on right side)](https://i.imgur.com/00q584T.png)](https://gfycat.com/UnlinedDisloyalLamb)\r\nMovement of the platform along the x-axis can be done with the:\r\n```python \r\ntargetPosition(<point>) \r\n```\r\nThe point is set in reference to the *home* position set at the negative end-switch.\r\nAs the end-switch's home position is then set to x = 0 at the designated *home* position, any input into the function is considered as relative to the universal frame set at this position. \r\nThe *home* position will begin to be set with:\r\n```python \r\ndryveInit()\r\n```\r\nTo manually set this position for any reason, simply run:\r\n```python\r\nhoming()\r\n```\r\nTo get current position of the Dryve rail, simply use:\r\n```python\r\ngetposition(<position (mm)>)\r\n```\r\nAs indicated, the function returns position of the rail at execution in millimetres.\r\n\r\nTo set velocity profile, simply run:\r\n```python\r\nvelocityProfile(<velocity (mm/s)>)\r\n```\r\nLikewise, the target velocity can be set with:\r\n```python\r\ntargetVelocity(<velocity (mm/s)>)\r\n```\r\nThe difference between velocity profile and target velocity is that targetvelocity() simply moves a set velocity \r\nuntil a new command is set, while velocityProfile() simply modifies the velocity setting in point to point movement.\r\n\r\nIf createdryverail contributes to a project that leads to publication, please acknowledge this by citing createdryverrail.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Dryve D1 script created by 2 undergraduate robotic students of Aalborg University",
"version": "2.5.7",
"split_keywords": [
"robotics",
"dryved1",
"python",
"script",
"rail",
"create"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "98e09348e5ffbee425a1b62778f76077",
"sha256": "20619fee54a1ac17ddfe34e1a0c688b1d49881d3246a226d20ee4119837ebab5"
},
"downloads": -1,
"filename": "createdryverail-2.5.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "98e09348e5ffbee425a1b62778f76077",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6,==3.*",
"size": 4476,
"upload_time": "2022-12-02T09:10:56",
"upload_time_iso_8601": "2022-12-02T09:10:56.470854Z",
"url": "https://files.pythonhosted.org/packages/44/19/39b85e82b57f365e306b5dff6ee7683ebecc49dba25c88e8b161ec27808d/createdryverail-2.5.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "e1ec99202b4742dbc06c601d0f27b8e4",
"sha256": "99992c6c9ed306d10fdd6bd12ca359634b4088a668ec300e020594be3d66b171"
},
"downloads": -1,
"filename": "createdryverail-2.5.7.tar.gz",
"has_sig": false,
"md5_digest": "e1ec99202b4742dbc06c601d0f27b8e4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6,==3.*",
"size": 4309,
"upload_time": "2022-12-02T09:10:58",
"upload_time_iso_8601": "2022-12-02T09:10:58.540969Z",
"url": "https://files.pythonhosted.org/packages/bd/20/27a832206795ddb3763f7999e2fc7e0b7f04f6392af2dc2b721f3e3a99e7/createdryverail-2.5.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-02 09:10:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "Nicher1",
"github_project": "Dryve-repository-for-dummies.git",
"lcname": "createdryverail"
}