ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Rviz - Temperature and Relative Humidity topic display

asked 2020-09-20 08:20:39 -0500

Varun gravatar image

updated 2020-09-20 12:15:21 -0500

gvdhoorn gravatar image

Hi

I am new to RVIZ, i can get my robot model, odometry and IMU axes displayed in rviz. I have a DHT22 Temperature and humidity sensor connected to arduino and i am reading the sensor data through rosserial to a raspberry pi under

$ rostopic echo temphum

I was wondering how can i make use of the temperature and relative humidity display in rviz. (It is available in Rviz --> Add --> Temperature or Relative Humidity

The information on those displays are Temperature Displays from sensor_msgs/Temperature message

RelativeHumidity Displays the data from sensor_msgs::RelativeHumidity.

I want to visualize the sensor data on rviz. Please let me know how to proceed.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-16 03:17:22 -0500

Nykri gravatar image

For temperature, you can simply add a Temperature display in rviz interface. This will drop shapes with a color mapped to the temperature value. Be sure to check your temperature_message.header.frame_id to ensure the shapes will be at the correct location (probably your robot position). You can then change the parameters in rviz to choose your desired color range and intensity range.

I've never used it but RelativeHumidity is also available in rviz. It should be similar to Temperature.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-09-20 08:20:39 -0500

Seen: 275 times

Last updated: Sep 20 '20