YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarpdataplayer_console_IDL.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6// Autogenerated by Thrift Compiler (0.14.1-yarped)
7//
8// This is an automatically generated file.
9// It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
10
11#ifndef YARP_THRIFT_GENERATOR_SERVICE_YARPDATAPLAYER_CONSOLE_IDL_H
12#define YARP_THRIFT_GENERATOR_SERVICE_YARPDATAPLAYER_CONSOLE_IDL_H
13
14#include <yarp/os/Wire.h>
17
23 public yarp::os::Wire
24{
25public:
26 //ProtocolVersion
29 virtual bool checkProtocolVersion();
30
31 // Constructor
33
34 //Service methods
40 virtual bool step();
41
48 virtual bool setFrame(const std::int32_t frameNum);
49
56 virtual std::int32_t getFrame(const std::string& name);
57
62 virtual bool load(const std::string& path);
63
68 virtual bool play();
69
74 virtual bool pause();
75
80 virtual bool stop();
81
87 virtual bool enable(const std::string& part);
88
94 virtual bool disable(const std::string& part);
95
100 virtual std::vector<std::string> getAllParts();
101
107 virtual std::string getPortName(const std::string& part);
108
115 virtual bool setPortName(const std::string& part, const std::string& new_name);
116
122 virtual bool setSpeed(const double speed);
123
128 virtual double getSpeed();
129
135 virtual bool repeat(const bool val = false);
136
142 virtual bool setStrict(const bool val = false);
143
149 virtual bool forward(const std::int32_t steps = 5);
150
156 virtual bool backward(const std::int32_t steps = 5);
157
162 virtual double getProgress();
163
168 virtual std::string getStatus();
169
174 virtual bool resume();
175
180 virtual bool quit();
181
182 // help method
183 virtual std::vector<std::string> help(const std::string& functionName = "--all");
184
185 // read from ConnectionReader
186 bool read(yarp::os::ConnectionReader& connection) override;
187};
188
189#endif // YARP_THRIFT_GENERATOR_SERVICE_YARPDATAPLAYER_CONSOLE_IDL_H
An interface for reading from a network connection.
Base class for IDL client/server.
Definition Wire.h:18
yarpdataplayer_console_IDL Interface.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual yarp::os::ApplicationNetworkProtocolVersion getRemoteProtocolVersion()
virtual bool pause()
Pauses the dataSets.
virtual bool quit()
Quit the module.
virtual bool load(const std::string &path)
Loads a dataset from a path.
virtual std::string getPortName(const std::string &part)
Gets the name of the port associated to the specified part.
virtual bool stop()
Stops the dataSets.
virtual double getSpeed()
Gets the player speed.
virtual std::string getStatus()
Get the status of playing.
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual bool step()
Steps the player once.
virtual bool repeat(const bool val=false)
Sets repeat mode.
virtual bool setPortName(const std::string &part, const std::string &new_name)
Sets the name of the port associated to the specified part.
virtual std::vector< std::string > getAllParts()
Gets the names of all parts loaded.
virtual bool setStrict(const bool val=false)
Sets strict mode.
virtual bool play()
Plays the dataSets.
virtual bool disable(const std::string &part)
Disable the specified part.
virtual bool enable(const std::string &part)
Enables the specified part.
virtual double getProgress()
Get the progress of the parts.
virtual bool resume()
Resume dataset from where it was paused.
virtual std::int32_t getFrame(const std::string &name)
Gets the frame number the user is requesting.
virtual bool setSpeed(const double speed)
Sets the player speed.
virtual yarp::os::ApplicationNetworkProtocolVersion getLocalProtocolVersion()
virtual bool forward(const std::int32_t steps=5)
Steps forward.
virtual bool setFrame(const std::int32_t frameNum)
Sets the frame number to the user desired frame.
virtual bool backward(const std::int32_t steps=5)
Steps backward.