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

nxt_rviz_plugin with Rosjava

asked 2012-08-08 06:04:20 -0600

camilla gravatar image

Hi!
I'm using the nxt_lejos_proxy package and rviz.
I would like to use the nxt_rviz_plugin, which displays data from a nxt_msgs::Range message as a cone. I've set the topic to /ultrasonic_sensor, but when i run the simulation I got:

Status:Warning
   Topic No messages received

Using rostopic echo /ultrasonic_sensor I can see that the ranges detected by the ultrasonic sensor are published on the /ultrasonic_sensor topic. But looking in the class ROSProxy.java I've seen that the message published on that topic is a sensor_msgs/Range and not a nxt_msgs/Range.
Could this be the cause of the problem?And how can i solve it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-08-08 22:45:06 -0600

camilla gravatar image

I solved publishing a message of type nxt_msgs/Range on a custom defined topic called /custom_ultrasonic_sensor and passing this topic to nxt_rviz_plugin.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-08-08 06:04:20 -0600

Seen: 103 times

Last updated: Aug 08 '12