we initialize node name "basic_shapes" and make publisher with topic name "visualization_marker"
we set our frame id == "/my_frame"
set namespace(ns) to "basic_shapes" and id to 0 == if a marker message is received with the same ns and id, the new marker will replace the old one.
first starting shape is CUBE
inside switch we keep change the shape variable to something else
roslaunch using_makers marker_tutorial.launch
Shape keeps changing every 1 second
'자율주행 > ROS tutorial C++' 카테고리의 다른 글
Interactive Markers: Getting Started (0) | 2021.02.07 |
---|---|
Markers:Points and Lines (0) | 2021.02.07 |
Writing a Simple Service and Client (0) | 2020.12.30 |
Writing a Simple Publisher and Subscriber (0) | 2020.12.30 |