[ros-users] How can I show the laser data in rviz???

Tully Foote tfoote at willowgarage.com
Thu Oct 28 17:04:49 UTC 2010


Hi Aaron,
If you are not publishing tf messages you need to make sure the fixed_frame
and target_frame in rviz are set to the frame in which you are publishing
thes scans.  In the case of the 2nd tutorial you linked to it should be
"laser_frame"

Also in the LaserScan display there is an error field with information if it
cannot display anything.  This should tell you why rviz cannot update the
display.  If you're still having trouble please send that message in your
reply.

Tully

On Thu, Oct 28, 2010 at 7:21 AM, Aaron Martinez Romero <
aaronmartinezromero at gmail.com> wrote:

> but...  can I display directly in rviz a "sensor_msgs/LaserScan" message
> ??  or I need too the "/tf [tf/tfMessage]"
>
> because in the tutorial of
> *
>
> http://www.ros.org/wiki/laser_pipeline/Tutorials/IntroductionToWorkingWithLaserScannerData#Visualizing_Your_Laser_Scan,
> *
>
> I can display the data in rviz without problem (using laser.bag -->
> http://vault.willowgarage.com/wgdata1/vol1/wiki_docs/laser_pipeline/laser.bag).
>
> But with the code of this example
>    "*
> http://www.ros.org/wiki/navigation/Tutorials/RobotSetup/Sensors#Writing_Code_to_Publish_a_LaserScan_Message
> *",
>
> I have problems to display the fake data generated by this code.
>
> Why????
>
> Best regards.
>
>
> 2010/10/27 Dan Lazewatsky <lazewatskyd at cse.wustl.edu>
>
>> There's a section in the tutorial "Introduction to Working With Laser
>> Scanner Data" that covers this:
>> http://www.ros.org/wiki/laser_pipeline/Tutorials/IntroductionToWorkingWithLaserScannerData#Visualizing_Your_Laser_Scan
>>
>> -Dan
>>
>> On Wed, Oct 27, 2010 at 9:51 AM, Aaron Martinez Romero <
>> aaronmartinezromero at gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I am with this example, and I want to show the fake data in rviz, but I
>>> don't know how can do it.
>>>
>>> http://www.ros.org/wiki/navigation/Tutorials/RobotSetu<a href="p/S<http://www.ros.org/wiki/navigation/Tutorials/RobotSetup/Sensors>
>>> ensors <http://www.ros.org/wiki/navigation/Tutorials/RobotSetup/Sensors>
>>> <a href="
>>>
>>> I am trying display the data, because later I will try to write a new
>>> driver for a old Laser hardware (PLS200-214)
>>>
>>> Thanks.
>>> Best regards...
>>> --
>>> Atentamente,
>>> Aarón Martínez Romero
>>> Ingeniero en Informática
>>> Tlf: 600 283 349
>>> http://www.AaronMR.com
>>>
>>> _______________________________________________
>>> ros-users mailing list
>>> ros-users at code.ros.org
>>> https://code.ros.org/mailman/listinfo/ros-users
>>>
>>>
>>
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>>
>>
>
>
> --
> Atentamente,
> Aarón Martínez Romero
> Ingeniero en Informática
> Tlf: 600 283 349
> http://www.AaronMR.com
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>


-- 
Tully Foote
Systems Engineer
Willow Garage, Inc.
tfoote at willowgarage.com
(650) 475-2827
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20101028/6645c65e/attachment-0003.html>


More information about the ros-users mailing list