Skip to content
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

GroG #1275

Draft
wants to merge 285 commits into
base: develop
Choose a base branch
from
Draft

GroG #1275

Changes from all commits
Commits
Show all changes
285 commits
Select commit Hold shift + click to select a range
cc42a66
wip
supertick May 31, 2023
435a1bb
wip
supertick May 31, 2023
8a78167
wip
supertick May 31, 2023
d425d16
wip
supertick May 31, 2023
1c8e736
wip
supertick May 31, 2023
0900951
pretty worky
supertick Jun 1, 2023
81b516d
fully worky py4j
supertick Jun 1, 2023
343ec47
inmoov data dir init scripts
supertick Jun 1, 2023
e465923
Py4j Worky !!!
supertick Jun 1, 2023
35fec03
chat completions with Gpt3 service
supertick Jun 2, 2023
cbfd4c1
Merge branch 'py4j-update-2' of github.com-myrobotlab:MyRobotLab/myro…
supertick Jun 2, 2023
146456b
Merge branch 'gpt3-chat-completions' of github.com-myrobotlab:MyRobot…
supertick Jun 2, 2023
a580602
python-fixes-from-py4j
supertick Jun 2, 2023
2f95242
requested updates
supertick Jun 2, 2023
2f952bf
updated override
supertick Jun 2, 2023
140dc56
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 3, 2023
6956c25
Merge branch 'py4j-update-2' of github.com-myrobotlab:MyRobotLab/myro…
supertick Jun 3, 2023
893e723
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 3, 2023
5561f5f
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 3, 2023
4454e07
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 3, 2023
316563a
yml updates
supertick Jun 4, 2023
b71b5bb
beginning oscope updates
supertick Jun 4, 2023
7f5d9ce
bs
supertick Jun 5, 2023
8d5ed70
ow! - this was an evil bug
supertick Jun 6, 2023
3562d4c
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 10, 2023
7a153e1
Merge branch 'jme-glft-support' of github.com-myrobotlab:MyRobotLab/m…
supertick Jun 10, 2023
6077816
worky jme and servo mixer
supertick Jun 10, 2023
4f60523
workyish with non flyby camera
supertick Jun 10, 2023
0cdcb2c
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 12, 2023
e80e699
subscribe unsubscribe cleanup
supertick Jun 14, 2023
de796fb
added FileIO checkFile
supertick Jun 14, 2023
fb96121
worky ServoMixer
supertick Jun 14, 2023
5208fd3
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 14, 2023
60b0c8f
increment on config and default yml
supertick Jun 14, 2023
fab7578
sane prettier rc values
supertick Jun 14, 2023
5cd0895
servo update
supertick Jun 14, 2023
55165ae
implement servo limits
Jun 14, 2023
04d1de6
Merge branch 'servo-limits' of github.com-myrobotlab:MyRobotLab/myrob…
supertick Jun 14, 2023
2c1555d
Math.min/max
Jun 14, 2023
5493b0f
removed hack filtering
Jun 14, 2023
29fa51c
test update
Jun 14, 2023
dd2781c
thx gawd for unit tests ...
Jun 14, 2023
0e6f27e
debug statement
Jun 14, 2023
75f8da8
Merge branch 'servo-limits' of github.com-myrobotlab:MyRobotLab/myrob…
supertick Jun 14, 2023
160cf42
approprite level of logging
Jun 14, 2023
6dac46e
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 14, 2023
9df14a4
framework fixes
supertick Jun 15, 2023
501cef2
change setters to void and add explosives
supertick Jun 15, 2023
3426c78
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 15, 2023
cbac39f
merged with develop and cleaned
supertick Jun 15, 2023
3f2b74c
initial checkin
supertick Jun 15, 2023
5dfac54
more polish
supertick Jun 15, 2023
73d409b
more polish
supertick Jun 15, 2023
1fae96d
Merge branch 'servomixer-pr' of github.com-myrobotlab:MyRobotLab/myro…
supertick Jun 15, 2023
d3e6ee1
Merge branch 'framework-fixes' of github.com-myrobotlab:MyRobotLab/my…
supertick Jun 15, 2023
f39f0ff
Merge branch 'servo-limits' of github.com-myrobotlab:MyRobotLab/myrob…
supertick Jun 15, 2023
e795e94
fixed saveGesture
supertick Jun 16, 2023
a8bbcc1
fixed save button
supertick Jun 16, 2023
10f17ad
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 21, 2023
0115998
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 21, 2023
27724a6
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 21, 2023
271f21e
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jun 21, 2023
c34f74c
requested updates
supertick Jun 22, 2023
6402f74
added select listener
supertick Jun 22, 2023
0026e47
list box size
supertick Jun 22, 2023
2d1ff38
Merge branch 'servomixer-pr' of github.com-myrobotlab:MyRobotLab/myro…
supertick Jun 22, 2023
df42a90
clean resources
supertick Jun 26, 2023
169b72f
service data should build dirs if necessary
supertick Jun 26, 2023
d5948e8
clear up massive error reporting in junit
supertick Jun 26, 2023
144577c
ignoring failing solr test
supertick Jun 27, 2023
e2ab471
person PERSON diff in opencv classifications
supertick Jun 27, 2023
abf0f44
a hunch
supertick Jun 27, 2023
1cf98f9
cleaned rsource test of bs
supertick Jun 27, 2023
5c4c25c
lower case classification key
supertick Jun 27, 2023
a093272
updated pom template
supertick Jun 27, 2023
0499303
generated pom
supertick Jun 27, 2023
fd4e195
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jun 27, 2023
dee89c4
clean resource update
supertick Jun 27, 2023
5e163dc
small updates
supertick Jun 28, 2023
c802d99
fixing confusion hopefully on "app"
supertick Jun 28, 2023
b70aae3
fixed default save config
supertick Jun 28, 2023
d094556
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jun 28, 2023
83492e0
outbox filters
supertick Jun 29, 2023
b083d1b
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 29, 2023
1e8d060
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jun 29, 2023
99dc60c
Merge branch 'clean-resource' of github.com-myrobotlab:MyRobotLab/myr…
supertick Jun 29, 2023
d68b393
pin controller and other updates
supertick Jun 29, 2023
78977f9
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jun 29, 2023
ef1f19d
bad merge
supertick Jun 29, 2023
186c9c5
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jun 29, 2023
b95cf10
Merge branch 'develop' of https://github.com/MyRobotLab/myrobotlab in…
supertick Jun 29, 2023
3e3e843
removed not ready python module
supertick Jun 29, 2023
0546bf7
Merge branch 'grog' of github.com-myrobotlab:MyRobotLab/myrobotlab in…
supertick Jun 29, 2023
0a68558
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 29, 2023
fd7a56e
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 29, 2023
a1e8807
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 29, 2023
4ff9e16
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 30, 2023
cd0d930
reverting file
supertick Jun 30, 2023
77f3151
revert whitespace change
supertick Jun 30, 2023
a0ee277
reverting whitespace
supertick Jun 30, 2023
f902c7a
removed throws
supertick Jun 30, 2023
e260116
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jun 30, 2023
3c5600b
fixed compilation issues
supertick Jun 30, 2023
88efc9c
stupid mistake for saving filtered cfg predicates
supertick Jun 30, 2023
d85f482
1st level peer events only
supertick Jul 1, 2023
ad63376
Merge branch 'inmoov2-sorted-and-removed-some' of github.com-myrobotl…
supertick Jul 1, 2023
d4f69b8
Merge branch 'state-machine' of github.com-myrobotlab:MyRobotLab/myro…
supertick Jul 1, 2023
8e436bd
fixes
supertick Jul 1, 2023
0912671
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 1, 2023
0dc9a53
wip
supertick Jul 2, 2023
9dcd380
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 2, 2023
76e4ea1
merged develop head in
supertick Jul 2, 2023
00f8096
fixed default topic to be "unknown" vs default :P
supertick Jul 2, 2023
d08dfad
implemented status list
supertick Jul 2, 2023
4e06257
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 2, 2023
839abaa
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 8, 2023
a0402f1
config c fix
supertick Jul 8, 2023
b3164ba
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 8, 2023
554b2f1
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 8, 2023
eabbabf
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 9, 2023
731087d
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 9, 2023
ae609c6
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 9, 2023
46031d7
not worth updating
supertick Jul 9, 2023
0f58389
not worth keeping
supertick Jul 9, 2023
58a3937
config, predicates, and ui sync
supertick Jul 9, 2023
ae7d45d
config start topic and predicate filtering
supertick Jul 9, 2023
d31c470
setting botname
supertick Jul 10, 2023
49b75cc
Merge branch 'program-ab-config' of github.com-myrobotlab:MyRobotLab/…
supertick Jul 10, 2023
45e7e39
audio file logging
supertick Jul 11, 2023
b67bb31
servo improvements
supertick Jul 12, 2023
611a84c
fixed inverted detach
supertick Jul 12, 2023
2a26622
added unit test to verify disabled after autodisable attach
supertick Jul 12, 2023
a5a53c7
fixed unit tests
supertick Jul 12, 2023
8092557
fixed unit test
supertick Jul 12, 2023
3a4b8e5
Merge branch 'servo-improvements' of github.com-myrobotlab:MyRobotLab…
supertick Jul 12, 2023
99003a6
requested updates
supertick Jul 14, 2023
0bc97f4
removed isattached from diyservo
supertick Jul 14, 2023
f012716
Merge branch 'servo-improvements' of github.com-myrobotlab:MyRobotLab…
supertick Jul 14, 2023
f89f826
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 14, 2023
11fd45c
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 14, 2023
12cb722
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 15, 2023
1da2edd
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 16, 2023
d1a1cce
cron commit
supertick Jul 17, 2023
2332822
cron update
supertick Jul 17, 2023
d4ea4a1
cleaned out old boof
supertick Jul 17, 2023
8a759aa
more cleaning
supertick Jul 17, 2023
c9b7ca9
wip
supertick Jul 17, 2023
06783cb
raspi updates
supertick Jul 17, 2023
dad01bc
forgot pindefinition
supertick Jul 17, 2023
4658b20
fixed legacy write and pinmode
supertick Jul 17, 2023
34d76b3
bad merge
supertick Jul 18, 2023
fe19f9f
Merge branch 'cron-update' of github.com-myrobotlab:MyRobotLab/myrobo…
supertick Jul 18, 2023
4440167
in progress
supertick Jul 18, 2023
4443dc0
oscope fixes
supertick Jul 18, 2023
370e128
from grog branch
supertick Jul 18, 2023
22faefb
oscope cron and raspi improvements
supertick Jul 18, 2023
bac8ca9
ipscan image and info down to debug
supertick Jul 19, 2023
ea0ab74
adding .gitignore entries
supertick Jul 19, 2023
94534be
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 19, 2023
00e9611
Merge branch 'cron-update' of github.com-myrobotlab:MyRobotLab/myrobo…
supertick Jul 19, 2023
62ad8b0
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 20, 2023
f1c691c
generated pom
supertick Jul 20, 2023
6cb46b1
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 20, 2023
bae8c3d
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 20, 2023
993669c
rename
supertick Jul 22, 2023
b7ddb43
incremental
supertick Jul 22, 2023
754b978
Improved Cron and Cron history
supertick Jul 22, 2023
177c81d
Merge branch 'cron-enhanced' of github.com-myrobotlab:MyRobotLab/myro…
supertick Jul 22, 2023
a8dc963
forgot one
supertick Jul 22, 2023
c2de6bb
Merge branch 'cron-enhanced' of github.com-myrobotlab:MyRobotLab/myro…
supertick Jul 22, 2023
8791647
Teamwork fix of Hd44780
supertick Jul 23, 2023
66b42fb
Merge branch 'cron-enhanced' of github.com-myrobotlab:MyRobotLab/myro…
supertick Jul 23, 2023
f090e48
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 23, 2023
ccceb78
intermediate
supertick Jul 23, 2023
24cfa91
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 23, 2023
f720240
Merge branch 'vertx-webxr' of github.com-myrobotlab:MyRobotLab/myrobo…
supertick Jul 23, 2023
170b9df
checking link
supertick Jul 24, 2023
5bd8610
beginning of doc
supertick Jul 25, 2023
bbd2988
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 25, 2023
675387b
gateway fix
supertick Jul 25, 2023
4a78be5
Merge branch 'gateway-fix' of github.com-myrobotlab:MyRobotLab/myrobo…
supertick Jul 25, 2023
9c9bc17
fixed runtime test
supertick Jul 25, 2023
30d57d2
fixed unit test
supertick Jul 25, 2023
709a669
Merge branch 'gateway-fix' of github.com-myrobotlab:MyRobotLab/myrobo…
supertick Jul 26, 2023
c03b4f9
corrected adjusted updated
supertick Jul 26, 2023
b81f74a
reverted back to original unit test
supertick Jul 26, 2023
196dc8a
formatting and organized imports
supertick Jul 26, 2023
fab4725
Merge branch 'gateway-fix' of github.com-myrobotlab:MyRobotLab/myrobo…
supertick Jul 26, 2023
3589da5
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 26, 2023
337e455
Merge branch 'network-update' of github.com-myrobotlab:MyRobotLab/myr…
supertick Jul 27, 2023
5a09dc5
pir fix
supertick Jul 29, 2023
9a596de
Merge branch 'pir-fix' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 29, 2023
461322a
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 29, 2023
879bdb6
Merge branch 'network-update' of github.com-myrobotlab:MyRobotLab/myr…
supertick Jul 29, 2023
c179b99
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 29, 2023
19bc4d1
bumping build
supertick Jul 29, 2023
03f01a9
bad entry in gitignore
supertick Jul 29, 2023
f4411f9
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Jul 31, 2023
491347f
fixed path to msg
supertick Jul 31, 2023
bb87450
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 2, 2023
e476293
update
supertick Aug 2, 2023
e94afb6
intermediate
supertick Aug 2, 2023
f7140c9
Merge branch 'path-to-msg' of github.com-myrobotlab:MyRobotLab/myrobo…
supertick Aug 2, 2023
2394b74
terse parsing
supertick Aug 3, 2023
184b81e
terse parsing cherry picked
supertick Aug 3, 2023
0803295
fixed unit tests
supertick Aug 3, 2023
06e0aae
no quote params is not an option
supertick Aug 3, 2023
a4cab93
regenned pom
supertick Aug 3, 2023
08c6ad0
Merge branch 'path-to-msg' of github.com-myrobotlab:MyRobotLab/myrobo…
supertick Aug 3, 2023
1b9a539
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 4, 2023
02b60d0
added service-life-cycle doc
supertick Aug 5, 2023
475338f
proposal
supertick Aug 5, 2023
a75ed66
different implementation
supertick Aug 6, 2023
af3cceb
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 6, 2023
917e064
save readme
supertick Aug 6, 2023
d6beb8c
worky proposal
supertick Aug 9, 2023
e16a3fe
testing and removal of local config member
supertick Aug 9, 2023
8bf7f9b
unit test fixed and audiofile updated
supertick Aug 9, 2023
56c284e
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 9, 2023
cde43b0
Rework config generics so T is propagated through ConfigurableService…
AutonomicPerfectionist Aug 10, 2023
575644d
Merge branch 'config-generics-fix' of github.com-myrobotlab:MyRobotLa…
supertick Aug 10, 2023
342bc2c
stop compiler errors
supertick Aug 10, 2023
acd5409
all service templated with config
supertick Aug 11, 2023
7e74421
Merge branch 'boilerplate-config-changes-2' of github.com-myrobotlab:…
supertick Aug 11, 2023
51474a3
added interface
supertick Aug 11, 2023
2d50d0c
updated
supertick Aug 11, 2023
112f13f
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 12, 2023
db6b36e
Better process stream handling
supertick Aug 12, 2023
41089f8
other parts
supertick Aug 12, 2023
2c3268d
Merge branch 'better-stream-processing' of github.com-myrobotlab:MyRo…
supertick Aug 12, 2023
4757a56
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 13, 2023
0a20c28
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 13, 2023
8ab0689
removed status list
supertick Aug 13, 2023
a8fe839
working boofcv
supertick Aug 13, 2023
ffdb9e5
boofcv updates
supertick Aug 13, 2023
a6298e2
removed boofcv in opencv
supertick Aug 13, 2023
355c906
Merge branch 'boofcv-1' of github.com-myrobotlab:MyRobotLab/myrobotla…
supertick Aug 13, 2023
0fed144
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 13, 2023
c0f8ff7
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 13, 2023
2b373df
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 13, 2023
a4b1b52
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 14, 2023
fbefadd
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 14, 2023
cf31454
synching
supertick Aug 14, 2023
5610a66
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 19, 2023
d8b78a7
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 19, 2023
2c044c6
removed doc readme
supertick Aug 19, 2023
75e42d9
sync with develop
supertick Aug 19, 2023
a3fe1d1
sync with develop
supertick Aug 19, 2023
79bb460
sync with develop
supertick Aug 19, 2023
1160703
Merge branch 'develop' of github.com-myrobotlab:MyRobotLab/myrobotlab…
supertick Aug 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1603,6 +1603,34 @@
</dependency>
<!-- Twitter end -->

<!-- Vertx begin -->
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>4.3.3</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-web</artifactId>
<version>4.3.3</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Duplicate entry for io.netty-netty-all-4.1.82.Final skipping -->
<!-- Vertx end -->

<!-- VoiceRss begin -->
<!-- Duplicate entry for org.myrobotlab.audio-voice-effects-1.0 skipping -->
<dependency>
68 changes: 26 additions & 42 deletions src/main/java/org/myrobotlab/service/Ads1115.java
Original file line number Diff line number Diff line change
@@ -8,12 +8,14 @@
import java.util.Map;
import java.util.Set;

import org.myrobotlab.codec.CodecUtils;
import org.myrobotlab.framework.Registration;
import org.myrobotlab.framework.Service;
import org.myrobotlab.framework.interfaces.Attachable;
import org.myrobotlab.logging.LoggerFactory;
import org.myrobotlab.logging.Logging;
import org.myrobotlab.logging.LoggingFactory;
import org.myrobotlab.service.abstracts.AbstractMicrocontroller.PinListenerFilter;
import org.myrobotlab.service.config.Ads1115Config;
import org.myrobotlab.service.config.ServiceConfig;
import org.myrobotlab.service.data.PinData;
@@ -446,46 +448,12 @@ public void attachPinArrayListener(PinArrayListener listener) {

}

@Override
public void attachPinListener(PinListener listener, int pinAddress) {
attach(listener, String.format("%d", pinAddress));
}

@Override
public void attach(PinListener listener, String pin) {
String name = listener.getName();

if (listener.isLocal()) {
List<PinListener> list = null;
if (pinListeners.containsKey(pin)) {
list = pinListeners.get(pin);
} else {
list = new ArrayList<PinListener>();
}
list.add(listener);
pinListeners.put(pin, list);

} else {
// setup for pub sub
// FIXME - there is an architectual problem here
// locally it works - but remotely - outbox would need to know
// specifics of
// the data its sending
addListener("publishPin", name, "onPin");
}

}

// This section contains all the new attach logic
@Override
public void attach(String service) throws Exception {
attach(Runtime.getService(service));
}

public void attach(String listener, int pinAddress) {
attachPinListener((PinListener) Runtime.getService(listener), pinAddress);
}

public void attach(String controllerName, String deviceBus, String deviceAddress) {
attach((I2CController) Runtime.getService(controllerName), deviceBus, deviceAddress);
}
@@ -589,7 +557,7 @@ public void disablePins() {
}
}

@Override
@Deprecated /* use enablePin(String pin) */
public void enablePin(int address) {
if (controller == null) {
error("must be connected to enable pins");
@@ -608,8 +576,7 @@ public void enablePin(int address) {
}
}

@Override
// TODO Implement individula sample rates per pin
@Deprecated /* sue enablePin(String, int) */
public void enablePin(int address, int rate) {
setSampleRate(rate);
enablePin(address);
@@ -697,7 +664,7 @@ public int getLastConversionResults() {
}
}

@Override
@Deprecated /* use getPin(String) */
public PinDefinition getPin(int address) {
if (pinIndex.containsKey(address)) {
return pinIndex.get(address);
@@ -769,7 +736,7 @@ public void onRegistered(Registration s) {

}

@Override
@Deprecated /* use pinMode(String, String */
public void pinMode(int address, String mode) {
if (mode != null && mode.equalsIgnoreCase("INPUT")) {
} else {
@@ -780,7 +747,10 @@ public void pinMode(int address, String mode) {

@Override
public void pinMode(String pin, String mode) {
pinMode(getPin(pin).getAddress(), mode);
if (mode != null && mode.equalsIgnoreCase("INPUT")) {
} else {
log.error("Ads1115 only supports INPUT mode");
}
}

public Integer pinNameToAddress(String pinName) {
@@ -817,7 +787,7 @@ public PinDefinition publishPinDefinition(PinDefinition pinDef) {
return pinDef;
}

@Override
@Deprecated /* use read(String) */
public int read(int address) {
pinIndex.get(address).setValue(readADC_SingleEnded(address));
return pinIndex.get(address).getValue();
@@ -1110,7 +1080,7 @@ public void startComparator_SingleEnded(int channel, int threshold) {
writeRegister(ADS1015_REG_POINTER_CONFIG, config);
}

@Override
@Deprecated /* use write(String, int value) */
public void write(int address, int value) {
log.error("Ads1115 only supports read, not write");

@@ -1185,5 +1155,19 @@ public Ads1115Config apply(Ads1115Config c) {
return c;
}

@Override
public void attachPinListener(PinListener listener) {
String name = listener.getName();
addListener("publishPin", name);
PinListenerFilter filter = new PinListenerFilter(listener);
outbox.addFilter(name, CodecUtils.getCallbackTopicName("publishPin"), filter);
}

@Override
public void detachPinListener(PinListener listener) {
String name = listener.getName();
removeListener("publishPin", name);
outbox.removeFilter(name, CodecUtils.getCallbackTopicName("publishPin"));
}

}
107 changes: 34 additions & 73 deletions src/main/java/org/myrobotlab/service/Arduino.java
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
@@ -233,13 +232,20 @@ DeviceSummary[] arrayToDeviceSummary(int[] deviceSummary) {
/**
* Routing Attach - routes ServiceInterface.attach(service) to appropriate
* methods for this class
*
* FIXME - each one of these typed functions could simply provide the name of the
* interface that desires to attach. Then routing would be done easily by
* invoke("attach" + InterfaceName, name)
*
* If further refactored, the interface might be able to provide the implementation of
* setting up pub/sub/listeners
*
*/
@Override
public void attach(String name) throws Exception {
ServiceInterface service = Runtime.getService(name);
if (ServoControl.class.isAssignableFrom(service.getClass())) {
attachServoControl((ServoControl) service);
((ServoControl) service).attach(this);
return;
} else if (MotorControl.class.isAssignableFrom(service.getClass())) {
attachMotorControl((MotorControl) service);
@@ -266,20 +272,6 @@ public void attach(ServoControl servo, int pin) throws Exception {
attachServoControl(servo);
}

/**
* String interface - this allows you to easily use url api requests like
* /attach/nameOfListener/3
*
* @param listener
* the listener
* @param address
* the address
*/
@Deprecated /* using single attach parameter attach(String) */
public void attach(String listener, int address) {
attachPinListener((PinListener) Runtime.getService(listener), address);
}

@Override
public void attach(UltrasonicSensorControl sensor, Integer triggerPin, Integer echoPin) throws Exception {
// refer to
@@ -448,7 +440,9 @@ public void attachServoControl(ServoControl servo) {
msg.servoAttach(dm.getId(), pin, uS, (int) speed, servo.getName());
msg.servoAttachPin(dm.getId(), pin);
}
servo.attach(this);
if (!servo.isAttached(getName())) {
send(servo.getName(), "attach", getName());
}
}

/**
@@ -677,6 +671,7 @@ public void detach() {
// > deviceDetach/deviceId
@Override
public void detach(Attachable device) {
super.detach(device);
if (device == null) {
return;
}
@@ -688,13 +683,6 @@ public void detach(Attachable device) {
return;
}

// when a Servo detaches it wants to send a "disable()"
// so the Servo needs to detach first - and send that disable,
// before we detach it from this arduino
if (device instanceof ServoControl && device.isAttached(this)) {
device.detach(this);
}

log.info("detaching device {}", device.getName());
Integer id = getDeviceId(device);
if (id != null && msg != null) {
@@ -786,7 +774,7 @@ public void disablePin(String pinName) {
warn("pin definition %s does not exist", pinName);
return;
}

pinDef.setEnabled(false);
msg.disablePin(pinDef.getAddress());
}
@@ -866,19 +854,24 @@ public void enableBoardInfo(Boolean enabled) {
boardInfoEnabled = enabled;
}

public void enablePin(String pin) {
PinDefinition pinDef = getPin(pin);
enablePin(pinDef.getPin(), 10);
}

@Override
@Deprecated /* use enablePin(String) */
public void enablePin(int address) {
enablePin(address, 0);
PinDefinition pinDef = getPin(address);
enablePin(pinDef.getPin(), 1);
}

// > enablePin/address/type/b16 rate
@Override
@Deprecated /* use enablePin(String, int) */
public void enablePin(int address, int rate) {
PinDefinition pinDef = getPin(address);
msg.enablePin(address, getMrlPinType(pinDef), rate);
pinDef.setEnabled(true);
pinDef.setPollRate(rate);
invoke("publishPinDefinition", pinDef); // broadcast pin change
enablePin(pinDef.getPin(), rate);
}

/**
@@ -888,7 +881,10 @@ public void enablePin(int address, int rate) {
public void enablePin(String pin, int rate) {
if (isConnected()) {
PinDefinition pinDef = getPin(pin);
enablePin(pinDef.getAddress(), rate);
msg.enablePin(pinDef.getAddress(), getMrlPinType(pinDef), rate);
pinDef.setEnabled(true);
pinDef.setPollRate(rate);
invoke("publishPinDefinition", pinDef); // broadcast pin change
}
}

@@ -1535,10 +1531,10 @@ public byte[] getZippedMrlComm() {
return null;
}

@Override
/**
* // > pinMode/pin/mode
*/
@Deprecated /* use pinMode(String, String */
public void pinMode(int address, String modeStr) {
if (modeStr.equalsIgnoreCase("OUTPUT")) {
pinMode(address, Arduino.OUTPUT);
@@ -1752,42 +1748,7 @@ public PinData[] publishPinArray(int[] data) {
// update def with last value
pinDef.setValue(value);
pinArray[i] = pinData;

// handle individual pins
broadcast("publishPin", pinData);

}

// TODO: improve this logic so it doesn't something more effecient.
HashMap<String, PinData> pinDataMap = new HashMap<String, PinData>();
for (int i = 0; i < pinArray.length; i++) {
if (pinArray[i] != null && pinArray[i].pin != null) {
pinDataMap.put(pinArray[i].pin, pinArray[i]);
}
}

// FIXME !!! - simple pub/sub with broadcast like PinListener

for (String name : pinArrayListeners.keySet()) {
// put the pin data into a map for quick lookup
PinArrayListener pal = pinArrayListeners.get(name);
if (pal.getActivePins() != null && pal.getActivePins().length > 0) {
int numActive = pal.getActivePins().length;
PinData[] subArray = new PinData[numActive];
for (int i = 0; i < numActive; i++) {
String key = pal.getActivePins()[i];
if (pinDataMap.containsKey(key)) {
subArray[i] = pinDataMap.get(key);
} else {
subArray[i] = null;
}
}
// only the values that the listener is asking for.
pal.onPinArray(subArray);
} else {
// the full array
pal.onPinArray(pinArray);
}
invoke("publishPin", pinData);
}
return pinArray;
}
@@ -2338,7 +2299,7 @@ public ArduinoConfig apply(ArduinoConfig c) {
serial = (Serial) startPeer("serial");
if (serial == null) {
log.error("serial is null");
}
}
msg.setSerial(serial);
serial.addByteListener(this);
} else {
@@ -2370,11 +2331,11 @@ public static void main(String[] args) {

LoggingFactory.init(Level.INFO);

Runtime runtime = Runtime.getInstance();
runtime.saveAllDefaults();

Runtime.start("arduino", "Arduino");
Runtime.start("webgui", "WebGui");
Runtime.start("python", "Python");
WebGui webgui = (WebGui) Runtime.create("webgui", "WebGui");
webgui.autoStartBrowser(false);
webgui.startService();

boolean isDone = true;

Loading
Oops, something went wrong.