softbankrobotics-research / qibullet

Bullet simulation for SoftBank Robotics robots
Apache License 2.0
141 stars 38 forks source link

Complete scene example for obstacle avoidance and machine learning #42

Open wbadry opened 3 years ago

wbadry commented 3 years ago

Hello, I was wondering if it is possible to share some complete scenes like indoor places or any scene for obstacle avoidance and potential machine learning. Is there any way to add objects, textures and so on to the scene? Thanks

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.65. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

mbusy commented 3 years ago

Hi, We might eventually share more complex environments in the future, but that's not a priority.

You can easily create your own environments, a simple way to spawn objects in the simulation is to use the pybullet API and and the objects in pybullet_data (check #36 for more details). You can also check this repository, that uses qibullet for machine learning.

wagenaartje commented 3 years ago

Hi @wbadry, I would like to add that what you want to do is completely possible with this library. We have for example created a scenario where Pepper has to detect and identify objects, and then perform an action based on the object. This is all done with qibullet and tensorflow only. I will ask if it is possible to make this public, and will update you in this thread if so :)

wbadry commented 3 years ago

@wagenaartje hopefully to get it this soon as I badly need such a thing this month. Thank you so much.

mbusy commented 3 years ago

@wbadry, @wagenaartje any updates on that issue ?

wbadry commented 3 years ago

I got no feedback since the last one. That would make it amazing if there is such an example.

mbusy commented 3 years ago

I'll modify the issue, explicitly requesting an example implementing a complex scene. Since we don't want the size of the repo to be too big, we won't store additional meshes, the example will use meshes from the pybullet_data package. We could also cite projects that use qiBullet for machine learning applications in the wiki, giving extra examples and pointers.

wagenaartje commented 3 years ago

Sorry for not getting back to you faster, I have uploaded the example here. There are four files, and I will quickly explain what each of them does:

It is quite basic and I haven't looked at it for a while. It is really important that you have 95% validation accuracy - there is a decently working model in the folder model. If you have any questions let me know, I will get back to you when I can!