Skip to content

Commit

Permalink
Encode actuator command as a vocab
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Oct 20, 2017
1 parent 2257ac4 commit a9b6ecd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ bool roboticslab::CartesianControlClient::act(int command)
yarp::os::Bottle cmd, response;

cmd.addVocab(VOCAB_CC_ACT);
cmd.addInt(command);
cmd.addVocab(command);

rpcClient.write(cmd,response);

Expand Down
2 changes: 1 addition & 1 deletion libraries/TeoYarp/CartesianControlServer/RpcResponder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ bool roboticslab::RpcResponder::handleActMsg(const yarp::os::Bottle& in, yarp::o
{
if (in.size() > 1)
{
int commandCode = in.get(1).asInt();
int commandCode = in.get(1).asVocab();

if (iCartesianControl->act(commandCode))
{
Expand Down

0 comments on commit a9b6ecd

Please sign in to comment.