Skip to content

Commit

Permalink
[resolver] fixed querying from occupancy costmap
Browse files Browse the repository at this point in the history
  • Loading branch information
davidprueser committed Feb 23, 2024
1 parent 8386501 commit 92d7bea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pycram/resolver/location/database_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def create_query_from_occupancy_costmap(self) -> Select:

# query all relative robot positions in regard to an objects position
# make sure to order the joins() correctly
query = (select(PickUpAction.arm, PickUpAction.grasp, RobotState.torso_height, Position.x, Position.y)
query = (select(PickUpAction.arm, PickUpAction.grasp, RobotState.torso_height, robot_pos.x, robot_pos.y)
.join(TaskTreeNode.code)
.join(Code.designator.of_type(PickUpAction))
.join(PickUpAction.robot_state)
.join(RobotState.pose)
.join(orm.base.Pose.position)
.join(robot_pos)
.join(PickUpAction.object).where(Object.type == self.target.type)
.where(TaskTreeNode.status == "SUCCEEDED"))

Expand Down

0 comments on commit 92d7bea

Please sign in to comment.