Skip to content

Commit

Permalink
(moveit_py) fix pyi files (#2526)
Browse files Browse the repository at this point in the history
* (moveit_py) fix planning.pyi

* (moveit_py) add missing functions to robot_trajectory.pyi

* (moveit_py) fix command to generate stubs
  • Loading branch information
MatthijsBurgh authored Nov 13, 2023
1 parent 76a488b commit 4b73edb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion moveit_py/moveit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ For this project we leverage (stubgen)[https://mypy.readthedocs.io/en/stable/stu
Python package to autogenerate stub files. To do so we simply build the moveit_py Python library and run the following command from an environment containing the built package:

```
stubgen -p moveit_py
stubgen -p moveit
```

This outputs the outgenerated stub files to an `out` directory. These are the stub files we use.
Expand Down
2 changes: 2 additions & 0 deletions moveit_py/moveit/core/robot_trajectory.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ from typing import Any
class RobotTrajectory:
joint_model_group_name: Any
def __init__(self, *args, **kwargs) -> None: ...
def apply_totg_time_parameterization(self, *args, **kwargs) -> Any: ...
def apply_ruckig_smoothing(self, *args, **kwargs) -> Any: ...
def get_robot_trajectory_msg(self, *args, **kwargs) -> Any: ...
def get_waypoint_durations(self, *args, **kwargs) -> Any: ...
def set_robot_trajectory_msg(self, *args, **kwargs) -> Any: ...
Expand Down
30 changes: 15 additions & 15 deletions moveit_py/moveit/planning.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,20 @@ class PlanningSceneMonitor:

class TrajectoryExecutionManager:
def __init__(self, *args, **kwargs) -> None: ...
def areControllersActive(self, *args, **kwargs) -> Any: ...
def are_controllers_active(self, *args, **kwargs) -> Any: ...
def clear(self, *args, **kwargs) -> Any: ...
def enableExecutionDurationMonitoring(self, *args, **kwargs) -> Any: ...
def ensureActiveController(self, *args, **kwargs) -> Any: ...
def ensureActiveControllers(self, *args, **kwargs) -> Any: ...
def ensureActiveControllersForGroup(self, *args, **kwargs) -> Any: ...
def ensureActiveControllersForJoints(self, *args, **kwargs) -> Any: ...
def isControllerActive(self, *args, **kwargs) -> Any: ...
def isManagingControllers(self, *args, **kwargs) -> Any: ...
def processEvent(self, *args, **kwargs) -> Any: ...
def enable_execution_duration_monitoring(self, *args, **kwargs) -> Any: ...
def ensure_active_controller(self, *args, **kwargs) -> Any: ...
def ensure_active_controllers(self, *args, **kwargs) -> Any: ...
def ensure_active_controllers_for_group(self, *args, **kwargs) -> Any: ...
def ensure_active_controllers_for_joints(self, *args, **kwargs) -> Any: ...
def is_controller_active(self, *args, **kwargs) -> Any: ...
def is_managing_controllers(self, *args, **kwargs) -> Any: ...
def process_event(self, *args, **kwargs) -> Any: ...
def push(self, *args, **kwargs) -> Any: ...
def setAllowedExecutionDurationScaling(self, *args, **kwargs) -> Any: ...
def setAllowedGoalDurationMargin(self, *args, **kwargs) -> Any: ...
def setAllowedStartTolerance(self, *args, **kwargs) -> Any: ...
def setExecutionVelocityScaling(self, *args, **kwargs) -> Any: ...
def setWaitForTrajectoryCompletion(self, *args, **kwargs) -> Any: ...
def stopExecution(self, *args, **kwargs) -> Any: ...
def set_allowed_execution_duration_scaling(self, *args, **kwargs) -> Any: ...
def set_allowed_goal_duration_margin(self, *args, **kwargs) -> Any: ...
def set_allowed_start_tolerance(self, *args, **kwargs) -> Any: ...
def set_execution_velocity_scaling(self, *args, **kwargs) -> Any: ...
def set_wait_for_trajectory_completion(self, *args, **kwargs) -> Any: ...
def stop_execution(self, *args, **kwargs) -> Any: ...

0 comments on commit 4b73edb

Please sign in to comment.