-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: handle https, add some convenience methods #15
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -44,6 +44,32 @@ def current_motion(self) -> str: | |||
# raise ValueError("No MotionId attached. There is no planned motion available.") | |||
return self._current_motion | |||
|
|||
async def plan(self, actions: list[Action], tcp: str) -> wb.models.JointTrajectory: | |||
current_joints = await self.joints(tcp=tcp) | |||
robot_setup = await self._get_optimizer_setup(tcp=tcp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be cached?
nova/core/motion_group.py
Outdated
@@ -176,3 +162,36 @@ async def stop(self): | |||
logger.debug(f"Motion {self.current_motion} stopped.") | |||
except ValueError as e: | |||
logger.debug(f"No motion to stop for {self}: {e}") | |||
|
|||
async def get_state(self, tcp: str | None) -> wb.models.MotionGroupStateResponse: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there also the option for a state fetching via websocket?
tcps()
andtcp_names()
methodcontrollers()
methodget_state()
optional -> returns flange pose