fetch_gazebo icon indicating copy to clipboard operation
fetch_gazebo copied to clipboard

About the demo.py in fetch_gazebo_demo

Open weixiang-smart opened this issue 3 years ago • 2 comments

When the simulation environment got ready, we ran the demo.py. And after the robot arriving the first table, errors occurred. It look likes this

`Traceback (most recent call last): File "/home/lwx/fetch_ws/src/fetch_tc/fetch_sim/fetch_gazebo_demo/scripts/demo.py", line 276, in grasping_client.updateScene() File "/home/lwx/fetch_ws/src/fetch_tc/fetch_sim/fetch_gazebo_demo/scripts/demo.py", line 148, in updateScene for obj in find_result.objects: AttributeError: 'NoneType' object has no attribute 'objects'

It seems that the robot could not find the cube. I sincerely hope someone can help us! Thanks a lot!

weixiang-smart avatar Sep 11 '20 09:09 weixiang-smart

Hi @xiangxiang123456 can you clarify what version of gazebo and what version of ROS you are using?

I'm not familiar with this code, but looks like something unexpected in some manner is being returned here, and the traceback results a few lines below when it's used.

erelson avatar Sep 11 '20 16:09 erelson

Thank you for your reply. @erelson We are using ros kinetic and gazebo 7. We also found it's matter with this line of codefind_result = self.find_client.get_result(). After printing out the "find_result", It is NONE.

weixiang-smart avatar Sep 12 '20 02:09 weixiang-smart