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

RSDK-6907 StreamTicks API #590

Merged
merged 25 commits into from
Apr 22, 2024
Merged

Conversation

oliviamiller
Copy link
Member

Generalizes the MediaStream and moved to streams.py to use for digital interrupt streaming.

Copy link
Contributor

Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!

component function
base is_moving
board gpio_pin_by_name
camera get_image
encoder get_position
motor is_moving
sensor get_readings
servo get_position
arm get_end_position
gantry get_lengths
gripper is_moving
movement_sensor get_linear_acceleration
input_controller get_controls
audio get_properties
pose_tracker get_poses
power_sensor get_power
motion get_pose
vision get_classifications_from_camera

@oliviamiller oliviamiller marked this pull request as ready for review April 18, 2024 21:46
@oliviamiller oliviamiller requested a review from a team as a code owner April 18, 2024 21:46
src/viam/components/board/board.py Outdated Show resolved Hide resolved
Copy link
Member

@stuqdog stuqdog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple small things that shouldn't necessitate an extra round of review, otherwise LGTM!

@abc.abstractmethod
async def stream_ticks(
self, interrupts: List[DigitalInterrupt], *, timeout: Optional[float] = None, **kwargs
) -> Stream[Tick]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(minor) since we defined TickStream above, should we not use it here in the return?

src/viam/components/board/board.py Show resolved Hide resolved
src/viam/components/board/client.py Outdated Show resolved Hide resolved
src/viam/components/input/client.py Outdated Show resolved Hide resolved
@oliviamiller oliviamiller merged commit 69cddd2 into viamrobotics:main Apr 22, 2024
12 checks passed
njooma pushed a commit to njooma/viam-python-sdk that referenced this pull request Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants