Skip to content

Commit b1fddb2

Browse files
Merge branch 'master' of github.com:stack-of-tasks/sot-core
2 parents 0ee01a7 + a1e0c27 commit b1fddb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/device.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ void Device::integrate( const double & dt )
385385

386386
if (controlInputType_==CONTROL_INPUT_POSITION)
387387
{
388-
state_ = control;
388+
assert(state_.size()==control.size()+6);
389+
for( unsigned int i=0;i<control.size();++i )
390+
state_(i+6) = control(i);
389391
return;
390392
}
391393

0 commit comments

Comments
 (0)