Skip to content
Snippets Groups Projects
Unverified Commit 2a865872 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #81 from nim65s/devel

fix shadowing of Entity::name
parents 9ad00d57 5dcedba9
No related branches found
No related tags found
No related merge requests found
...@@ -68,8 +68,8 @@ class RosTfListener : public Entity { ...@@ -68,8 +68,8 @@ class RosTfListener : public Entity {
public: public:
typedef internal::TransformListenerData TransformListenerData; typedef internal::TransformListenerData TransformListenerData;
RosTfListener(const std::string& name) RosTfListener(const std::string& _name)
: Entity(name) : Entity(_name)
, buffer() , buffer()
, listener(buffer, rosInit(), false) , listener(buffer, rosInit(), false)
{ {
......
...@@ -22,8 +22,8 @@ const std::string RosTime::docstring_( ...@@ -22,8 +22,8 @@ const std::string RosTime::docstring_(
" Signal \"time\" provides time as given by ros::time as\n" " Signal \"time\" provides time as given by ros::time as\n"
" boost::posix_time::ptime type.\n"); " boost::posix_time::ptime type.\n");
RosTime::RosTime(const std::string& name) RosTime::RosTime(const std::string& _name)
: Entity(name), now_("RosTime(" + name + ")::output(boost::posix_time::ptime)::time") { : Entity(_name), now_("RosTime(" + _name + ")::output(boost::posix_time::ptime)::time") {
signalRegistration(now_); signalRegistration(now_);
now_.setConstant(rosTimeToPtime(ros::Time::now())); now_.setConstant(rosTimeToPtime(ros::Time::now()));
now_.setFunction(boost::bind(&RosTime::update, this, _1, _2)); now_.setFunction(boost::bind(&RosTime::update, this, _1, _2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment