swri-robotics / mapviz

Modular ROS visualization tool for 2D data.
BSD 3-Clause "New" or "Revised" License
390 stars 149 forks source link

TEXT_VIEW_FACING markers don't disappear when namespace is hidden #740

Closed DangitBen closed 3 years ago

DangitBen commented 3 years ago

Info

Mapviz Version: 1.4.1-1bionic.20210716.100718

Terminal 1

rostopic pub /markers visualization_msgs/MarkerArray \
"markers: 
  - header: 
      seq: 0
      stamp: 
        secs: 0
        nsecs: 0
      frame_id: 'map'
    ns: 'text'
    id: 0
    type: 9
    action: 0
    pose: 
      position: 
        x: 5.0
        y: 5.0
        z: 0.0
      orientation: 
        x: 0.0
        y: 0.0
        z: 0.0
        w: 0.0
    scale: 
      x: 0.75
      y: 0.0
      z: 0.0
    color: 
      r: 0.75
      g: 0.0
      b: 1.0
      a: 1.0
    lifetime: 
      secs: 0
      nsecs:         0
    frame_locked: False
    points: []
    colors: []
    text: 'you cant hide me! :P'
    mesh_resource: ''
    mesh_use_embedded_materials: false"

Terminal 2

rosrun mapviz mapviz

Instructions

This could also happen with other marker types, but this functionality does work with LINE_STRIP marker types.

matt-attack commented 3 years ago

Does this work when you build mapviz from source? We relatively recently added a patch for specifically this here: https://github.com/swri-robotics/mapviz/blob/master/mapviz_plugins/src/marker_plugin.cpp#L636

DangitBen commented 3 years ago

It does work when built from source! I'll close the issue.

matt-attack commented 3 years ago

We'll try and get a new release pushed out once we figure out the new process.