Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
omnibot.py
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
processes
Omnibot
omnibot.py
Commits
b54e543f
Commit
b54e543f
authored
2 years ago
by
Felix Agner
Browse files
Options
Downloads
Patches
Plain Diff
bug fix in dummy bot and examples
parent
74cb4a01
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+9
-5
9 additions, 5 deletions
README.md
src/omnibot/dummybot.py
+1
-1
1 addition, 1 deletion
src/omnibot/dummybot.py
with
10 additions
and
6 deletions
README.md
+
9
−
5
View file @
b54e543f
...
...
@@ -7,7 +7,9 @@ Note that this package covers the *client side*. For information about setting u
## Installation
On linux:
`pip install git+https://gitlab.control.lth.se/processes/omnibot/omnibot.py`
```
pip install git+https://gitlab.control.lth.se/processes/omnibot/omnibot.py
```
## Usage
...
...
@@ -34,10 +36,12 @@ with Connection(HOST) as bot:
# Target speed for servos
vset = 100
# Go one way
while time() < tstart + 3:
# Record start time
t0 = time()
# Go one way for 3 seconds
while time() < t0 + 3:
# set speeds
bot.set_speeds([vset,vset,vset])
...
...
@@ -51,7 +55,7 @@ with Connection(HOST) as bot:
**Example:**
A pre-defined script which rotates first one way, then the other, and prints logged angle:
```
from omnibot.
D
ummybot import run_dummybot
from omnibot.
d
ummybot import run_dummybot
# Insert suitable IP-adress
HOST = "localhost"
...
...
This diff is collapsed.
Click to expand it.
src/omnibot/dummybot.py
+
1
−
1
View file @
b54e543f
...
...
@@ -25,7 +25,7 @@ def run_dummybot(HOST,verbose=True):
bot
.
set_speeds
([
vset
,
vset
,
vset
])
print
(
'
theta:
'
+
bot
.
get_theta
())
print
(
'
theta:
'
+
str
(
bot
.
get_theta
())
)
# Go the other way
while
time
()
<
tstart
+
6
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment