Ask Your Question
0

Is re-compilation of rviz, after adding a module necessary?

asked 2011-07-31 20:15:35 -0500

SAK gravatar image

updated 2011-07-31 21:44:14 -0500

Hi everyone,

I added a module in gazebo, it is working properly and not giving any error. Also i can see the rostopic but i am not able to see it in rviz. My question is that is it necessary to re compile the rviz. if yes, then how to compile it.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-08-01 00:08:34 -0500

dornhege gravatar image

updated 2011-08-01 03:16:35 -0500

Gazebo and RViz are independent from each other, so no.

Apart from that, if you have some custom module that requires custom visualization, you would need to add that to rviz. Perhaps you can say a bit more explicit what you are doing?

For displaying sonars/IRs, check this question:

http://answers.ros.org/question/1138/how-to-display-sonar-readings-in-rviz

edit flag offensive delete link more

Comments

Thanks for the reply,, i created a module that would for ir sensor, the topic is advertised (sensor_msgs::Range) but i am not able to see/load the topic (like the one LaserScan) in rviz. So i have to do some extra coding for that or i need to add something in xacro files.
SAK gravatar imageSAK ( 2011-08-01 03:00:23 -0500 )edit
Onething more,, i need to know whether after creating the gazebo.xacro and urdf.xacro files and added it to base.gazebo.xacro, except that is it necessary to add it somewhere or compile it or only creation is enough.
SAK gravatar imageSAK ( 2011-08-01 03:13:24 -0500 )edit
If I understand that correctly there is no real compiling, but the description is usually run through xacro and loaded in the param server. You can check how the pr2 does that.
dornhege gravatar imagedornhege ( 2011-08-01 03:17:28 -0500 )edit
i am doing this,, studying the laser sensor which is already implemented in simulation (As i am too developing only in simulation) but i have two problems, rviz display and other my module is not able to get the value of the GetIRCount() function implemented in IRSensor.
SAK gravatar imageSAK ( 2011-08-01 03:36:02 -0500 )edit
I've never used the Range display mentioned in the linked post, but I'd guess you are doing something wrong. rviz communcates by messages, so your simulation should send out sensor_msgs/Range message and the rviz display should display them. You can test both independently with rostopic echo and pub
dornhege gravatar imagedornhege ( 2011-08-01 05:32:10 -0500 )edit
The Sonar display is now present in Electric version of Ros. and also if one wants to display something in rviz, re compilation is necessary.
SAK gravatar imageSAK ( 2011-09-04 21:55:52 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-07-31 20:15:35 -0500

Seen: 177 times

Last updated: Aug 01 '11