Where could rviz error "Frame [/example] does not exist come from?

asked 2014-06-19 14:22:36 -0500

Eric Schneider gravatar image


I'm a newbie to rviz/ROS and I've been trying to overlay markers on a robot URDF in rviz. I'm getting a curious error where I create a series of 30 markers in a loop, and sometimes the last 10 markers produce an error and sometimes #20-23 do.

The basic setting I'm using is

======= URDF File =========

  // Other urdf origin/mesh things. The link appears fine, so that wouldn't be the problem

<joint name="dist2_tactile_joint" type="fixed">
  <origin xyz="0 0 0" rpy="0 0 0" />
  <parent link="base_link" />
  <child link="example1" />

<link name="example1"/>

======= C++ File =========

visualization_msgs::MarkerArray marker_array;
char fid[20];
for (int i=0; i<3; i++) {
    sprintf(fid, "/example%d", (i+1));
    for (int j = 0; j<10; j++){
        visualization_msgs::Marker marker;
        marker.ns = "contact_markers";
        marker.id = j;            // Goes from 0-9 for each frame_id
        marker.header.frame_id = fid;
        // Set position, color, orientation stuff
pub.publish(marker_array);      // To the topic visualization_marker_array

I'm getting an error in rviz (not in rqt_console) every couple frames or so, saying

example_markers/0 -- For frame [/example3]: Frame [/example3] does not exist

The weird bit to me is that it often throws an error for example3/*, rarely throws an error for example2/8, and doesn't throw any other errors. Because I'm creating the markers in a loop I don't see how they could be different.

Help much appreciated!

edit retag flag offensive close merge delete


Interesting thing I noticed - the /example3 markers (the ones throwing the errors) show up most of the time, and flicker out occasionally. The /example2 and /example1 markers rarely show up, and occasionally flicker in

Eric Schneider gravatar image Eric Schneider  ( 2014-06-19 14:30:12 -0500 )edit