How to make ros3djs respect the frame_locked marker message parameter?

asked 2021-04-20 04:58:15 -0600

Py gravatar image

updated 2021-04-20 05:08:20 -0600

I can visualise markers in RViz and ros3djs. However, on RViz the markers are plotted along the robot trajectory and remain in place for visualisation when the frame_locked marker parameter is set to False whereas in ros3djs this parameter seems to be ignored as only one marker remains on screen at a given time. Any ideas what might be wrong?

Each markers is defined like this:

    marker = Marker()
    marker.header.stamp = rospy.Time.now()
    marker.id = self.marker_counter + 1
    marker.header.frame_id = "/base_link"
    marker.ns = "markers"
    marker.type = 1
    marker.action = Marker.ADD
    marker.frame_locked = False  # Enables markers to be plotted along trajectory in RViz
    marker.scale.x = 0.5
    marker.scale.y = 0.6
    marker.scale.z = 0.4
    marker.pose.position.x = 1
edit retag flag offensive close merge delete