File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636#include " robotkernel/rk_type.h"
3737
3838typedef void (*get_sd_t )(std::list<std::string>& sd_list);
39-
4039namespace robotkernel {
41- #ifdef EMACS
42- }
43- #endif
4440
4541typedef std::vector<rk_type> service_arglist_t ;
4642typedef std::function<int (const service_arglist_t &, service_arglist_t &)> service_callback_t ;
4743
44+ /* *
45+ * @struct service_t
46+ * @brief A struct representing a service.
47+ */
4848typedef struct service {
49+ /* *
50+ * @var owner
51+ * @brief The owner of the service.
52+ */
4953 std::string owner;
54+
55+ /* *
56+ * @var name
57+ * @brief The name of the service.
58+ */
5059 std::string name;
60+
61+ /* *
62+ * @var service_definition
63+ * @brief A description of the service.
64+ */
5165 std::string service_definition;
66+
67+ /* *
68+ * @var callback
69+ * @brief A callback function associated with the service.
70+ */
5271 service_callback_t callback;
5372} service_t ;
5473
74+
5575typedef std::map<std::pair<std::string, std::string>, service_t *> service_map_t ;
5676
57- #ifdef EMACS
58- {
59- #endif
6077} // namespace robotkernel
6178
6279#endif // ROBOTKERNEL__SERVICE_H
You can’t perform that action at this time.
0 commit comments