ipa320 / cob_simulation

The cob_simulation stack includes packages to work with Care-O-bot within simulation environments, e.g. gazebo.
www.care-o-bot.org
Apache License 2.0
73 stars 106 forks source link

[cob_bringup_sim] extend spawn_object: spawn models from database #109

Open fmessmer opened 8 years ago

fmessmer commented 8 years ago

In https://github.com/ros-simulation/gazebo_ros_pkgs/pull/261/files a launch file for spawning an object from the database is proposed: https://github.com/YoheiKakiuchi/gazebo_ros_pkgs/blob/add_spawn_launch_indigo/gazebo_ros/launch/spawn_model_in_database.launch

According to the usage of the gazebo_ros/spawn_model script, it is possible to use it in order to spawn models from the gazebo database. In the end, this scipts calls either gazebo's spawn_sdf_model or spawn_urdf_model via the gazebo_interface module which abstracts away the service calls.

However, in our script, we call the service directly...but only provide a client for the spawn_urdf_model service.

Things that need to be done in order to be able to spawn database models from our script:

This would reduce a lot of code duplications while still allowing us to use our object_locations.yaml parameter scheme!

@ipa-srd-rd Could you take this over? @ipa-nhg @ipa-mig @fmessmer FYI

fmessmer commented 8 years ago

@ipa-nhg or is it already possible to spawn a model from the database with our current script as I see the "model" option here

Could you meet up/assist @ipa-srd-rd give him some more pointers/hints?