[ros-users] Cturtle (SVN): static_transform_publisher does not start
Josh Faust
jfaust at willowgarage.com
Thu Jun 17 22:15:50 UTC 2010
There were some roscpp changes that are exposing gaps in test coverage,
especially wrt command-line tools.
The specific change is that ros::Time::now() now throws an exception if it's
used before roscpp knows if simulated time is in use (to do so it needs to
contact the master and check the /use_sim_time parameter). This makes what
were difficult to track down bugs (caused by Time::now() initially returning
wall time and then jumping to simulation time) into easy ones, but has
broken some things in the process.
Josh
2010/6/17 Dejan Pangercic <dejan.pangercic at gmail.com>
> Dear all,
>
> I've noticed this very same case in multiple places (e.g. pcl, tf) in
> ros latest install.
> Could anyone maybe please explain what is it going on?
>
> thx, D.
>
> 2010/6/17 von Wichert, Georg <Georg.Wichert at 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
> >
> > http://www.ct.siemens.de
> >
> > 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 at code.ros.org
> > https://code.ros.org/mailman/listinfo/ros-users
> >
> >
>
>
>
> --
> MSc. Dejan Pangercic
> PhD Student/Researcher
> Intelligent Autonomous Systems Group
> Technische Universität München
> Telephone: +49 (89) 289-26908
> E-Mail: dejan.pangercic at cs.tum.edu
> WWW: http://ias.cs.tum.edu/people/pangercic
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100617/b592aae8/attachment-0003.html>
More information about the ros-users
mailing list