object_utils.hh
Go to the documentation of this file.
1 
8 #ifndef _OBJECT_UTILS_HH_
9 #define _OBJECT_UTILS_HH_
10 
11 // Gazebo
12 #include <gazebo/gazebo_client.hh>
13 #include <gazebo/gazebo_config.h>
14 #include <gazebo/transport/transport.hh>
15 #include <gazebo/msgs/msgs.hh>
16 
17 // File streams
18 #include <fstream>
19 // Open YAML config files
20 #include "yaml-cpp/yaml.h"
21 
22 // Debug streams
23 #include "debug.hh"
24 
29  gazebo::transport::PublisherPtr pub,
30  const std::string & file);
31 
37  gazebo::transport::PublisherPtr pub,
38  ignition::math::Pose3d & pose,
39  const std::string & filename);
40 
44 void removeModel(
45  gazebo::transport::PublisherPtr pub,
46  const std::string & name);
47 
52 void obtainRestPoses(
53  const std::string & file_name,
54  std::vector<std::string> & targets,
55  std::vector<ignition::math::Pose3d> & poses);
56 
57 #endif
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