ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How can I adjust the thickness of the lines in rviz/path

asked 2021-12-26 02:31:11 -0500

Zhou gravatar image

updated 2022-03-25 17:27:25 -0500

lucasw gravatar image

I have tried parameters in .rviz file, but unfortunately failed. Can anyone give me some suggestions? Thanks a lot!

edit retag flag offensive close merge delete


Hi @Zhou, please take a lot at this tutorial:

osilva gravatar image osilva  ( 2021-12-27 12:30:04 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-12-29 07:06:43 -0500

osilva gravatar image

Hi @Zhou, please take a lot at this tutorial:

The scale member means different things for these marker types. The POINTS marker uses the x and y members for width and height respectively, while the LINE_STRIP and LINE_LIST markers only use the x component, which defines the line width. Scale values are in meters.

The marker types to POINTS, LINE_STRIP and LINE_LIST.

  68     // POINTS markers use x and y scale for width/height respectively
  69     points.scale.x = 0.2;
  70     points.scale.y = 0.2;
  72     // LINE_STRIP/LINE_LIST markers use only the x component of scale, for the line width
  73     line_strip.scale.x = 0.1;
  74     line_list.scale.x = 0.1;
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools


Asked: 2021-12-26 02:31:11 -0500

Seen: 227 times

Last updated: Dec 29 '21