Ask Your Question

Setting a frame id

asked 2012-02-16 02:53:01 -0500

alfa_80 gravatar image

updated 2012-02-16 03:06:47 -0500

I have a problem in setting a world frame id. I did as below, but it doesn't work. It that right what I did and where should it actually be set? I've also tried with and without (/), but, it makes no difference at the moment. The error that I suspect is, in the fixed_frame in rviz I couldn't tick for it. What more I have the following warning:

[ WARN] [1329404542.223645698]: Warning: Frame id /world does not exist! Frames (3): Frame /laser exists with parent /base_link.
Frame /base_link exists with parent NO_PARENT.

Code snippet:

    void AssemblerClient::useAssembler(const sensor_msgs::LaserScanConstPtr& scan_ptr)
      ROS_INFO("Assembler service is being used");

      ros::ServiceClient client = n.serviceClient<AssembleScans>("assemble_scans");
      AssembleScans srv;
      srv.request.begin = ros::Time(0,0);
      srv.request.end   = ros::Time::now();
      if (
        ROS_INFO("Got cloud with %u points\n",;

        gathered_cloud =;
        gathered_cloud.header.frame_id = "/world";

        ROS_INFO("Service call failed\n");

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-02-16 04:25:00 -0500

joq gravatar image

updated 2012-02-16 04:27:36 -0500

It looks like something needs to define a transform from /world to /base_link.

REP-0105 explains the usual coordinate conventions for mobile robots.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-02-16 02:53:01 -0500

Seen: 5,171 times

Last updated: Feb 16 '12