-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Read bindings, draft write, not real export yet * Put TODO * Version bump * Move manipulator and handle system getting stuck * WIP set depth * Better movement code * Fix some linting errors, update aquarium * Switch to local coordinate system * Merged depth binding and position * Update python module launch instructions * Version bump * MPM echoing like other platforms. Need to limit HTTP debug * Restrict debug log level to just ephys link * Switch step mode * Correct movement direction * fixed position update and target coordinates for depth * Progress with duplicated coordinate. * Revert "Progress with duplicated coordinate." This reverts commit 3eed59b. * Dual axis movement does not work * MPM movement working * Apply poll limit to position * Auto format code --------- Co-authored-by: kjy5 <[email protected]>
- Loading branch information
Showing
13 changed files
with
390 additions
and
81 deletions.
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
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
from asyncio import run | ||
|
||
from vbl_aquarium.models.ephys_link import SetPositionRequest | ||
from vbl_aquarium.models.ephys_link import EphysLinkOptions, SetDepthRequest | ||
from vbl_aquarium.models.unity import Vector4 | ||
|
||
from ephys_link.back_end.platform_handler import PlatformHandler | ||
from ephys_link.util.console import Console | ||
|
||
c = Console(enable_debug=True) | ||
p = PlatformHandler("ump-4", c) | ||
target = Vector4() | ||
# target = Vector4(x=10, y=10, z=10, w=10) | ||
p = PlatformHandler(EphysLinkOptions(type="pathfinder-mpm"), c) | ||
# target = Vector4() | ||
target = Vector4(x=7.5, y=7.5, z=7.5, w=7.5) | ||
|
||
print(run(p.set_position(SetPositionRequest(manipulator_id="6", position=target, speed=5))).to_json_string()) | ||
# print(run(p.set_position(SetPositionRequest(manipulator_id="A", position=target, speed=5))).to_json_string()) | ||
print(run(p.set_depth(SetDepthRequest(manipulator_id="A", depth=7.5, speed=0.15))).to_json_string()) | ||
print("Done!") |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "2.0.0b3" | ||
__version__ = "2.0.0b5" |
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
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
Oops, something went wrong.