Skip to content

Commit

Permalink
Merge branch 'fix/dont_save_image' into feature/implement_grasp_detec…
Browse files Browse the repository at this point in the history
…tor_in_grab
  • Loading branch information
PetervDooren committed Sep 13, 2022
2 parents 1616d6a + 3903e2f commit 815fe30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions robot_skills/src/robot_skills/world_model_ed.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ def save_image(self, path="", path_suffix="", filename=""):
res = self._ed_get_image_srv(filename=filename)
if res.error_msg:
rospy.logerr("Could not save image: %s" % res.error_msg)
return False

with open(fname + ".rgbd", "wb") as f:
f.write(bytearray(res.rgbd_data))
Expand All @@ -426,6 +427,8 @@ def save_image(self, path="", path_suffix="", filename=""):
# rgbd to png
os.system('rosrun rgbd rgbd_to_png %s' % (fname + ".rgbd")) # ToDo: very very very ugly

return True

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

@deprecated
Expand Down

0 comments on commit 815fe30

Please sign in to comment.