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

How to draw a personalized path line in rviz (for example 30cm wide) [closed]

asked 2013-09-12 01:28:40 -0600

FlashErase gravatar image

updated 2014-04-20 14:09:33 -0600

ngrennan gravatar image

Is there a possibility to draw the path in a hector-map in rviz with a userdefined wide? The reason is I'm tracking a VR100 vacuum cleaning robot (aka neato) cleaning my house. Because the wide of it's brushes is 30cm I want to draw the path in the map in the same wide to see, which areas were cleaned and which areas ware skipped due to obstacles to remove them. Nice to have were also a configurable alpha value of its color, which will be increased when a path is drawn more then once to see overlapping cleaned areas.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by FlashErase
close date 2013-09-23 01:34:34

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-09-12 14:24:22 -0600

jorge gravatar image

This tutorial explains how to publish markers that RViz can visualize. What you need is a LINE_STRIP with scale.x=0.3, I think.

edit flag offensive delete link more

Comments

Thank you. I inspected display_path.cpp to find out how to get the path data to draw the line_set (in the example the data was generated by the marker itself). This is so tricky, that I'll better use the time to get a consistent map out of my lidar data.

FlashErase gravatar image FlashErase  ( 2013-09-13 05:47:12 -0600 )edit

I'm not sure what you mean... the tutorial I propose shows quite straightforwardly how to show a path. Anyway, can you mar the question as solved if that is the case? Maybe can help others in your same case.

jorge gravatar image jorge  ( 2013-09-22 20:16:00 -0600 )edit

I couldn't find any hints how to get the data for drawing these line-strips out of the slam system and not by calculating demo data by sin/cos-functions. But because neither gmapping nor hector_mapping are able to process my lidar data into a usable map and path this question anyway is obsolete.

FlashErase gravatar image FlashErase  ( 2013-09-23 01:01:34 -0600 )edit

I tried to mark this question as "Solved" but I'm problably blind and can't find a button or link for it: http://imageshack.us/a/img856/3130/i5z5.png And there were no informations in the help or the FAQ how to mark a question as "Solved". So I'll mark this question as "Closed".

FlashErase gravatar image FlashErase  ( 2013-09-23 01:32:45 -0600 )edit

Just click the "check" symbol below the answer's votes counter. It gets green.

jorge gravatar image jorge  ( 2013-09-23 01:43:16 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-09-12 01:28:40 -0600

Seen: 6,997 times

Last updated: Sep 12 '13