Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.14 KB

goalpost.rst

File metadata and controls

57 lines (40 loc) · 1.14 KB

Goalpost

images/goalpost.png

Goalposts are visualized using a white, cylinder marker

Properties

Marker properties are utilized to visualize properties of the incoming message:

Example

In this example, we will manually publish a goalpost and observe it in RViz. Start the visualizer node:

ros2 run soccer_vision_3d_rviz_markers visualizer

Set up a publisher that publishes a Goalpost Array message:

ros2 topic pub /soccer_vision_3d/goalposts soccer_vision_3d_msgs/msg/GoalpostArray "
header:
  frame_id: 'camera'
posts:
  - bb:
      center:
        position:
          x: 2.0
          y: 0.0
          z: 0.2
      size:
        x: 0.05
        y: 0.05
        z: 0.4
    confidence:
      confidence: 0.5
"

Open RViz2 with a demo configuration:

rviz2 -d $(ros2 pkg prefix --share soccer_vision_3d_rviz_markers)/rviz/demo.rviz

You should see a white goalpost with 50% transparency displayed in RViz:

images/goalpost_rviz.png