ros / roscpp_core

ros distribution sandbox
89 stars 116 forks source link

Duration constructor from Rate #30

Closed skasperski closed 9 years ago

skasperski commented 10 years ago

There is supposed to be constructor for ros::Duration taking a ros::Rate as param:

explicit Duration(const Rate&);

I can't see any implementation though and using it gives a linker error.

undefined reference to `ros::Duration::Duration(ros::Rate const&)
dirk-thomas commented 10 years ago

I don't see how this was intended by the original author but the definition of the function is in ros/impl/duration.h. If you include that instead / beside ros/duration.h your undefined reference at link time should be solved.

dirk-thomas commented 9 years ago

Addressed with #32.