Public Member Functions | Private Attributes
gazebo_test_tools::GazeboCubeSpawner Class Reference

#include <gazebo_cube_spawner.h>

List of all members.

Public Member Functions

 GazeboCubeSpawner (ros::NodeHandle &n)
void spawnCube (const std::string &name, const std::string &frame_id, float x, float y, float z, float qx, float qy, float qz, float qw, float w=0.05, float h=0.05, float d=0.05, float mass=0.05)
void spawnPrimitive (const std::string &name, const bool isCube, const std::string &frame_id, float x, float y, float z, float qx, float qy, float qz, float qw, float w=0.05, float h=0.05, float d=0.05, float mass=0.05)

Private Attributes

ros::NodeHandle nh
ros::ServiceClient spawn_object

Detailed Description

Spawns a cube of given size, position and orientation into Gazebo.

Author:
Jennifer Buehler

Definition at line 14 of file gazebo_cube_spawner.h.


Constructor & Destructor Documentation

Definition at line 17 of file cube_spawner.cpp.


Member Function Documentation

void GazeboCubeSpawner::spawnCube ( const std::string &  name,
const std::string &  frame_id,
float  x,
float  y,
float  z,
float  qx,
float  qy,
float  qz,
float  qw,
float  w = 0.05,
float  h = 0.05,
float  d = 0.05,
float  mass = 0.05 
)

Definition at line 21 of file cube_spawner.cpp.

void GazeboCubeSpawner::spawnPrimitive ( const std::string &  name,
const bool  isCube,
const std::string &  frame_id,
float  x,
float  y,
float  z,
float  qx,
float  qy,
float  qz,
float  qw,
float  w = 0.05,
float  h = 0.05,
float  d = 0.05,
float  mass = 0.05 
)
Parameters:
isCubeif true, spawn a cube. If false, spawn cylinder, where w is the radius and h is the height (d will be ignored).

Definition at line 28 of file cube_spawner.cpp.


Member Data Documentation

Definition at line 33 of file gazebo_cube_spawner.h.

Definition at line 34 of file gazebo_cube_spawner.h.


The documentation for this class was generated from the following files:


gazebo_test_tools
Author(s): Jennifer Buehler
autogenerated on Tue May 7 2019 03:29:23