8 #ifndef _OBJECT_UTILS_HH_ 9 #define _OBJECT_UTILS_HH_ 12 #include <gazebo/gazebo_client.hh> 13 #include <gazebo/gazebo_config.h> 14 #include <gazebo/transport/transport.hh> 15 #include <gazebo/msgs/msgs.hh> 20 #include "yaml-cpp/yaml.h" 29 gazebo::transport::PublisherPtr pub,
30 const std::string & file);
37 gazebo::transport::PublisherPtr pub,
38 ignition::math::Pose3d & pose,
39 const std::string & filename);
45 gazebo::transport::PublisherPtr pub,
46 const std::string & name);
53 const std::string & file_name,
54 std::vector<std::string> & targets,
55 std::vector<ignition::math::Pose3d> & poses);
void removeModel(gazebo::transport::PublisherPtr pub, const std::string &name)
Removes model.
Definition: object_utils.cc:40
void spawnModelFromFile(gazebo::transport::PublisherPtr pub, const std::string &file)
Spawns model from SDF description in file.
Definition: object_utils.cc:11
void spawnModelFromFilename(gazebo::transport::PublisherPtr pub, ignition::math::Pose3d &pose, const std::string &filename)
Spawns model from filename.
Definition: object_utils.cc:26
void obtainRestPoses(const std::string &file_name, std::vector< std::string > &targets, std::vector< ignition::math::Pose3d > &poses)
Obtains object rest poses from file.
Definition: object_utils.cc:50