83 float pose_theta = yaw;
87 painter.setBrush(brush);
109 painter.setBrush(brush_cone);
110 QPen pen(QColor(0,0,0,0));
114 pose_x / ocgd -
msg_.maxRange / ocgd,
116 pose_y / ocgd -
msg_.maxRange / ocgd,
118 msg_.maxRange / ocgd * 2,
119 msg_.maxRange / ocgd * 2,
121 - (pose_theta -
msg_.angleSpan / 2.0)
167 return msg_.frame_id;
176 stdr_msgs::SoundSourceVector env_sound_sources)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
std::string getFrameId(void)
Returns the frame id of the specific sensor.
ros::Subscriber subscriber_
Used to avoid drawing when a new sonar message arives.
std::string tf_frame_
Visualization status of the specific sonar.
char getVisualizationStatus(void)
Returns the visibility status of the specific sensor.
void toggleVisualizationStatus(void)
Toggles the visibility status of the specific sensor.
std::string topic_
< The topic from which the new RFID tags will be got
char visualization_status_
The stdr rfid sensor measurement msg.
void paint(QImage *m, float ocgd, tf::TransformListener *listener)
Paints the rfid measurements in the map image.
bool lock_
The ROS tf frame.
CGuiSound(stdr_msgs::SoundSensorMsg msg, std::string baseTopic)
Default contructor.
stdr_msgs::SoundSensorMeasurementMsg sound_sources_
The tags that exist in the environment.
TFSIMD_FORCE_INLINE const tfScalar & x() const
void callback(const stdr_msgs::SoundSensorMeasurementMsg &msg)
Callback for the rfid measurement message.
void setEnvironmentalSoundSources(stdr_msgs::SoundSourceVector env_sound_sources)
Sets the tags existent in the environment.
void getRPY(tfScalar &roll, tfScalar &pitch, tfScalar &yaw, unsigned int solution_number=1) const
TFSIMD_FORCE_INLINE const tfScalar & y() const
~CGuiSound(void)
Default destructor.
The main namespace for STDR GUI.
stdr_msgs::SoundSensorMsg msg_
A ros subscriber.
stdr_msgs::SoundSourceVector env_sound_sources_
void setVisualizationStatus(char vs)
Sets the visibility status of the specific sensor.