This has been ticketed and fixed in trunk.  A release will be coming shortly. https://code.ros.org/trac/ros-pkg/ticket/4183

Tully

2010/6/17 von Wichert, Georg <Georg.Wichert@siemens.com>
Hi,
 
static_transform_publisher on startup complains about the usage of ros::Time before a call to ros::start or the creation of the first node handle. A fix (maybe not the correct one?) that at least seems to solve the startup problem can be found below.
 
Best,
 
Georg
 
 
Index: tf/src/static_transform_publisher.cpp
===================================================================
--- tf/src/static_transform_publisher.cpp       (revision 30325)
+++ tf/src/static_transform_publisher.cpp       (working copy)
@@ -66,7 +66,8 @@
{
   //Initialize ROS
   ros::init(argc, argv,"static_transform_publisher", ros::init_options::AnonymousName);
-
+  ros::start();
+
   if(argc == 11)
   {
     ros::Duration sleeper(atof(argv[10])/1000.0);
 
 
---
 
  Dr. Georg von Wichert
 
  Siemens AG
  Corporate Technology
  Autonomous Systems
 
  80200 Munich
 
  Fon: + 49 89 636 52819
  Fax: + 49 89 636 41423
 
 
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Gerhard Cromme; Vorstand: Peter Löscher, Vorsitzender; Wolfgang Dehen, Heinrich Hiesinger, Joe Kaeser, Barbara Kux, Hermann Requardt, Siegfried Russwurm, Peter Y. Solmssen; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322
 
Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen enthalten firmenvertrauliche Informationen. Sollten Sie diese E-Mail irrtümlich erhalten haben, benachrichtigen Sie uns bitte durch Antwort-Mail und löschen Sie diese E-Mail nebst Anlagen von Ihrem System. Vielen Dank.
 
 
 

_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users




--
Tully Foote
Systems Engineer
Willow Garage, Inc.
tfoote@willowgarage.com
(650) 475-2827