object_utils.cc File Reference

Object related utilities. More...

#include "object_utils.hh"

Functions

void spawnModelFromFile (gazebo::transport::PublisherPtr pub, const std::string &file)
 Spawns model from SDF description in file. More...
 
void spawnModelFromFilename (gazebo::transport::PublisherPtr pub, ignition::math::Pose3d &pose, const std::string &filename)
 Spawns model from filename. More...
 
void removeModel (gazebo::transport::PublisherPtr pub, const std::string &name)
 Removes model. More...
 
void obtainRestPoses (const std::string &file_name, std::vector< std::string > &targets, std::vector< ignition::math::Pose3d > &poses)
 Obtains object rest poses from file. More...
 

Detailed Description

Object related utilities.

Author
João Borrego : jsbruglie

Function Documentation

void obtainRestPoses ( const std::string &  file_name,
std::vector< std::string > &  targets,
std::vector< ignition::math::Pose3d > &  poses 
)

Obtains object rest poses from file.

Parameters
file_nameInput file name
targetsList of objects in dataset
posesOutput list of corresponding rest poses
void removeModel ( gazebo::transport::PublisherPtr  pub,
const std::string &  name 
)

Removes model.

Parameters
pubPublisher to requests topic
nameName of model to be removed
void spawnModelFromFile ( gazebo::transport::PublisherPtr  pub,
const std::string &  file 
)

Spawns model from SDF description in file.

Parameters
pubPublisher to factory topic
fileFile with model SDF description
void spawnModelFromFilename ( gazebo::transport::PublisherPtr  pub,
ignition::math::Pose3d &  pose,
const std::string &  filename 
)

Spawns model from filename.

Parameters
pubPublisher to factory topic
poseModel initial pose
filenameName of model file