robotology / wb-toolbox

Simulink toolbox to rapidly prototype robot controllers
https://robotology.github.io/wb-toolbox/
GNU Lesser General Public License v2.1
23 stars 17 forks source link

Add yarp rpc block #177

Open yeshasvitirupachuri opened 5 years ago

yeshasvitirupachuri commented 5 years ago

Currently, the WBToolbox has only yarp read and yarp write blocks which serve the purpose of reading and writing to yarp ports from simulink. It is very useful to have a block that will enable users to communicate with rpc ports from simulink directly. In this issue we handle the details related to adding a YarpRpc block to WBToolbox library.

@diegoferigo

yeshasvitirupachuri commented 5 years ago

YarpRpc block is implemented and a PR is opened https://github.com/robotology/wb-toolbox/pull/178

This block behaves as the command 'yarp rpc'.

It takes two parameters: 1) Rpc server port name to which user wants to send rpc commands. This is a string datatype. 2) Rpc command which is the command user wants to send. This is a string datatype.

This block has an input signal called Trigger. This is intended to be a boolean datatype and when the signal is true the rpc command is sent to the rpc server port.

yeshasvitirupachuri commented 5 years ago

Tests

WholeBodyDynamics Rpc port
Screenshots

Screenshot from 2019-06-05 15-40-39

Screenshot from 2019-06-05 15-40-53

Gif

ezgif com-video-to-gif (6)

GazeboYarp ExternalWrench plugin Rpc port
Screenshots

Screenshot from 2019-06-05 15-41-22

Screenshot from 2019-06-05 15-41-54

Screenshot from 2019-06-05 15-41-39

Gif

ezgif com-video-to-gif (7)