11 #ifndef __REPLACER_SENDER_H__ 12 #define __REPLACER_SENDER_H__ 15 #include <gazebo_msgs/SetModelState.h> 39 ros::NodeHandlePtr
_nh;
92 #endif // __REPLACER_SENDER_H__
void reconnect_service_client()
Attempts to reconnect gz_service ServiceClient if connection dropped.
bool set_model_state(gazebo_msgs::ModelState model_state)
Set the state of one entity.
bool send_command(simulation_command_t command)
Send command to gazebo.
bool set_models_state(state_vector_t *model_states)
Set state of multiple entities.
std::vector< gazebo_msgs::ModelState > state_vector_t
Helper type to set the states of multiple entites at once.
ros::ServiceClient gz_service
ReplacerSender()
Construct a new Replacer Sender object.
simulation_command_t
All possible commands to send to Gazebo.