diff --git a/include/Accessor.h b/include/Accessor.h index 25db1d9735efc1234560885bac0510f6d004bb48..6092624795cb91f4a98b7eea849a14011ef84593 100644 --- a/include/Accessor.h +++ b/include/Accessor.h @@ -131,7 +131,6 @@ namespace ChimeraTK { template< typename UserType > template< typename UserType_o > void Accessor<UserType>::connectTo(Accessor<UserType_o> &targetAccessor) { - assert( _direction != targetAccessor._direction ); Application::getInstance().connectAccessors(*this, targetAccessor); } @@ -139,7 +138,6 @@ namespace ChimeraTK { template< typename UserType > void Accessor<UserType>::feedToControlSystem(const std::string& name) { - assert( _direction == VariableDirection::feeding ); VariableNetwork &network = Application::getInstance().findOrCreateNetwork(this); network.addAppNode(*this); network.addConsumingPublication(name); @@ -149,7 +147,6 @@ namespace ChimeraTK { template< typename UserType > void Accessor<UserType>::consumeFromControlSystem(const std::string& name) { - assert( _direction == VariableDirection::consuming ); VariableNetwork &network = Application::getInstance().findOrCreateNetwork(this); network.addAppNode(*this); network.addFeedingPublication(*this,name); @@ -167,7 +164,6 @@ namespace ChimeraTK { template< typename UserType > void Accessor<UserType>::consumeFromDevice(const std::string &deviceAlias, const std::string ®isterName, UpdateMode mode) { - assert( _direction == VariableDirection::consuming ); VariableNetwork &network = Application::getInstance().findOrCreateNetwork(this); network.addAppNode(*this); network.addFeedingDeviceRegister(*this, deviceAlias, registerName, mode); @@ -177,7 +173,6 @@ namespace ChimeraTK { template< typename UserType > void Accessor<UserType>::feedToDevice(const std::string &deviceAlias, const std::string ®isterName) { - assert( _direction == VariableDirection::feeding ); VariableNetwork &network = Application::getInstance().findOrCreateNetwork(this); network.addAppNode(*this); network.addConsumingDeviceRegister(deviceAlias, registerName);