12 #ifndef __VISION_RECEIVER_H__ 13 #define __VISION_RECEIVER_H__ 16 #include <ros/console.h> 17 #include <gazebo_msgs/ModelStates.h> 64 bool receive(gazebo_msgs::ModelStates::ConstPtr* msg);
69 #endif // __VISION_RECEIVER_H__ void receive_callback(const gazebo_msgs::ModelStates::ConstPtr &msg)
Callback function for Gazebo subscriber.
gazebo_msgs::ModelStates::ConstPtr world_state
Cache to save the world state.
Class to receive Gazebo published messages.
VisionReceiver()
Construct a new Vision Receiver object.
bool receive(gazebo_msgs::ModelStates::ConstPtr *msg)
Get last received message.
ros::Subscriber subscriber
Subscriber for Gazebo model_states topic.
bool received_message
Flag to indicate if a message was recieved.