2 #include <mrpt/core/exceptions.h>     7 #include <mvsim/mvsim-msgs/GenericAnswer.pb.h>     8 #include <mvsim/mvsim-msgs/SrvSetPose.pb.h>     9 #include <mvsim/mvsim-msgs/SrvSetPoseTwist.pb.h>    11 int main(
int argc, 
char** argv)
    18                 for (
int i = 0; i < 20; i++)
    21                         mvsim_msgs::SrvSetPose req;
    23                         req.set_objectid(
"r1");
    24                         req.mutable_pose()->set_x(i * 0.50);
    25                         req.mutable_pose()->set_y(0.0);
    26                         req.mutable_pose()->set_z(0.0);
    27                         req.mutable_pose()->set_yaw(0.0);
    28                         req.mutable_pose()->set_pitch(0.0);
    29                         req.mutable_pose()->set_roll(0.0);
    31                         mvsim_msgs::GenericAnswer ans;
    34                         std::cout << 
"called service. Input:\n"    35                                           << req.DebugString() << 
"Response:\n"    36                                           << ans.DebugString() << std::endl;
    38                         std::this_thread::sleep_for(std::chrono::milliseconds(1000));
    43         catch (
const std::exception& e)
    45                 std::cerr << mrpt::exception_to_str(e);
 int main(int argc, char **argv)
void callService(const std::string &serviceName, const INPUT_MSG_T &input, OUTPUT_MSG_T &output)