Skip to content

Commit

Permalink
update python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Oct 12, 2024
1 parent 8dc9d30 commit 7405935
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 10 additions & 4 deletions actuator/rust/bindings/bindings.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class PyRobstrideMotors:


class PyRobstrideMotorsSupervisor:
def __new__(cls,port_name,motor_infos,verbose = ...): ...
def __new__(cls,port_name,motor_infos,verbose = ...,min_update_rate = ...,target_update_rate = ...): ...
def set_position(self, motor_id:int, position:float) -> None:
...

Expand All @@ -69,9 +69,6 @@ class PyRobstrideMotorsSupervisor:
def set_torque(self, motor_id:int, torque:float) -> None:
...

def set_sleep_duration(self, sleep_duration:float) -> None:
...

def add_motor_to_zero(self, motor_id:int) -> None:
...

Expand Down Expand Up @@ -99,4 +96,13 @@ class PyRobstrideMotorsSupervisor:
def reset_command_counters(self) -> None:
...

def set_min_update_rate(self, rate:float) -> None:
...

def set_target_update_rate(self, rate:float) -> None:
...

def get_actual_update_rate(self) -> float:
...


1 change: 0 additions & 1 deletion actuator/rust/bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use robstride::{
MotorsSupervisor as RobstrideMotorsSupervisor,
};
use std::collections::HashMap;
use std::time::Duration;

#[gen_stub_pyclass]
#[pyclass]
Expand Down

0 comments on commit 7405935

Please sign in to comment.