Skip to content

Commit

Permalink
[knowrob] changed return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Celina1272001 committed Feb 29, 2024
1 parent a4f5a18 commit 8685031
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pycram/external_interfaces/knowrob.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ def get_table_pose(table_name):
Get table pose from knowledge
:param table_name: predefined name for each table
"""

print("waiting for server")
rospy.wait_for_service('pose_server')
try:
service = rospy.ServiceProxy('pose_server', String)
table_pose = service(table_name)
service = rospy.ServiceProxy('pose_server', ObjectPose)
table_pose = service(table_name)#
print(f"table_pose_knowrob: {table_pose}")
return table_pose
except rospy.ServiceException:
print("Service call failed")

0 comments on commit 8685031

Please sign in to comment.