18 #ifndef _SONARVISUAL_HH_
19 #define _SONARVISUAL_HH_
25 #include "gazebo/msgs/MessageTypes.hh"
46 const std::string &_topicName);
52 public:
virtual void Load();
55 private:
void Update();
58 private:
void OnMsg(ConstSonarStampedPtr &_msg);
70 private: Ogre::SceneNode *coneNode;
73 private: boost::shared_ptr<msgs::SonarStamped const> sonarMsg;
76 private: std::vector<event::ConnectionPtr> connections;
79 private: boost::mutex mutex;
82 private:
bool receivedMsg;