Genesis icon indicating copy to clipboard operation
Genesis copied to clipboard

How to load camera from mjcf?

Open parzival2108 opened this issue 1 year ago • 3 comments

Does the genesis library have function similar to this: scene.add_camera_from_mjcf("drone_camera")?

I added camera to the xml file; but it wont get loaded? My fault, or way to attach a camera onto robot frame here in genesis?

added this to xml file:

parzival2108 avatar Dec 28 '24 18:12 parzival2108

We don't support parsing camera yet. You'll have to create it manually :(

zhouxian avatar Dec 28 '24 18:12 zhouxian

We don't support parsing camera yet. You'll have to create it manually :(

I can add it myself manually; how can I contribute to this repo; I can add the setup for camera parsing, but this is my first time doing this with github. So I am not sure what is the process. Once I develop it, make it ready. Then can be used by others?

parzival2108 avatar Dec 28 '24 19:12 parzival2108

I am not sure if supporting Mujoco camera is something we want to do right now, as logically it’s a bit incompatible with the way we design cameras…

I would suggest you implement a parser and directly call genesis ‘add_camera’ from the parser result

zhouxian avatar Dec 28 '24 19:12 zhouxian

You can follow this guide if you would like to contribute. However, please note that not every proposed feature will be merged into the main branch. Thank you for your interest in contributing to Genesis!

ziyanx02 avatar Dec 29 '24 05:12 ziyanx02