Commit 3b0953a8 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel

Fix compilation.

parent 97602d95
......@@ -75,7 +75,7 @@ namespace dynamicgraph
typedef dynamicgraph::Signal<T, int> Signal_t;
typedef boost::shared_ptr<Signal_t> SignalPtr_t;
typedef std::vector<T> buffer_t;
typedef buffer_t::size_type size_type;
typedef typename buffer_t::size_type size_type;
BindedSignal(RosQueuedSubscribe* e)
: BindedSignalBase (e)
......
......@@ -63,15 +63,13 @@ namespace dynamicgraph
template <typename R>
void BindedSignal<T, N>::writer (const R& data)
{
T value;
converter (value, data);
// TODO: synchronize with method clear
// qmutex.lock();
converter (buffer[backIdx], data);
if (!init) {
last = value;
last = buffer[backIdx];
init = true;
}
// TODO: synchronize with method clear
// qmutex.lock();
buffer[backIdx].push (value);
// assert(!full());
backIdx = (backIdx+1) % N;
// TODO: synchronize with method clear
......@@ -79,7 +77,7 @@ namespace dynamicgraph
}
template <typename T, int N>
T& BindedSignal<T>::reader (T& data, int time)
T& BindedSignal<T, N>::reader (T& data, int time)
{
if (entity->readQueue_ == -1 || time < entity->readQueue_) {
data = last;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment