Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the demo.py in fetch_gazebo_demo #107

Open
weixiang-smart opened this issue Sep 11, 2020 · 2 comments
Open

About the demo.py in fetch_gazebo_demo #107

weixiang-smart opened this issue Sep 11, 2020 · 2 comments

Comments

@weixiang-smart
Copy link

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!

@erelson
Copy link
Collaborator

erelson commented Sep 11, 2020

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.

@weixiang-smart
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants