[ros] how to draw a marker on rviz (node, link, text)


[ros] how to draw a marker on rviz (node, link, text)

1. 노드 (위 그림의 초록색 원 찍기)node.type = visualization_msgs::Marker::SPHERE; 일때가장 쉽게 사용이 가능하다. ros의 visualization_msgs/Marker를 참고한다.주의할 점- node의 id를 다르게 해줘야함- frame_id 기준의 position 위치 기준- node.color.a 의 값을 꼭 1로 넣어줘야함- node.pose.orientation.w 의 값을 꼭 넣어줘야함- node.scale.x, y값을 꼭 넣어줘야함 ! (type 이 SPHERE일때)2. 노드와 노드 사이의 링크 (위 그림의 초록색 화살표)node_link.type = visualization_msgs::Marker::ARROW 일때주의할 점- node의 id를 다르게 해줘야함- frame_id 기준의 position 위치 기준- node_link...........



원문링크 : [ros] how to draw a marker on rviz (node, link, text)