Skip to content

Commit 9ebaf0c

Browse files
viambotnjooma
andauthored
AI update based on proto changes (#984)
Co-authored-by: Naveed Jooma <[email protected]>
1 parent d3d19dd commit 9ebaf0c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ lint:
99
.PHONY: format
1010
format:
1111
ruff format ./src ./tests
12-
ruff check --select I --fix ./src ./tests
12+
ruff check --extend-select I --fix ./src ./tests
1313

1414
.PHONY: buf
1515
buf: clean

src/viam/services/motion/motion.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,15 @@ async def move(
7575
world_state (viam.proto.common.WorldState): When supplied, the motion service will create a plan that obeys any constraints
7676
expressed in the WorldState message.
7777
constraints (viam.proto.service.motion.Constraints): When supplied, the motion service will create a plan that obeys any
78-
specified constraints.
78+
specified constraints. These can include:
79+
- LinearConstraint: Specifies that the component being moved should move linearly relative to its goal.
80+
- OrientationConstraint: Specifies that the component being moved will not deviate its orientation beyond some threshold
81+
relative to the goal.
82+
- CollisionSpecification: Used to selectively apply obstacle avoidance to specific parts of the robot.
83+
- PseudolinearConstraint: Specifies that the component being moved should not deviate from the straight-line path to their
84+
goal by more than a factor proportional to the distance from start to goal. For example, if a component is moving 100mm,
85+
then a LineToleranceFactor of 1.0 means that the component will remain within a 100mm radius of the straight-line
86+
start-goal path.
7987
8088
Returns:
8189
bool: Whether the move was successful.

0 commit comments

Comments
 (0)