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

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

Comments

Hi @Zhou, please take a lot at this tutorial: http://wiki.ros.org/rviz/Tutorials/Ma...

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

1 Answer

Sort by ยป oldest newest most voted
0

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

osilva gravatar image

Hi @Zhou, please take a lot at this tutorial: http://wiki.ros.org/rviz/Tutorials/Ma...

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;
  71 
  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

Question Tools

Stats

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

Seen: 580 times

Last updated: Dec 29 '21