FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
microcontroller/include/remote_microcontroller/interface.hpp at main · openvmp/microcontroller · GitHub
openvmp
/
microcontroller
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
14
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
microcontroller
/
include
/
remote_microcontroller
/
interface.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (35 loc) · 1.05 KB
Breadcrumbs
microcontroller
/
include
/
remote_microcontroller
/
interface.hpp
Copy path
File metadata and controls
47 lines (35 loc) · 1.05 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* OpenVMP, 2023
*
* Author: Roman Kuzmenko
* Created: 2023-03-26
*
* Licensed under Apache License, Version 2.0.
*/
#
ifndef
OPENVMP_REMOTE_MICROCONTROLLER_INTERFACE_H
#
define
OPENVMP_REMOTE_MICROCONTROLLER_INTERFACE_H
#
include
<
memory
>
#
include
<
string
>
#
include
"
rclcpp/rclcpp.hpp
"
#
include
"
remote_actuator/interface.hpp
"
#
include
"
remote_microcontroller/srv/reset.hpp
"
#
include
"
remote_serial/interface.hpp
"
namespace
remote_microcontroller
{
class
Interface
{
public:
Interface
(rclcpp::Node *node);
virtual
~Interface
() {}
protected:
rclcpp::Node *node_;
rclcpp::CallbackGroup::SharedPtr callback_group_;
rclcpp::Parameter interface_prefix_;
std::string
get_prefix_
();
virtual
bool
reset_
(
bool
hard,
bool
reflash) = 0;
private:
rclcpp::Service<srv::Reset>::SharedPtr srv_reset_;
rclcpp::FutureReturnCode
reset_handler_
(
const
std::shared_ptr<srv::Reset::Request> request,
std::shared_ptr<srv::Reset::Response> response);
};
}
//
namespace remote_microcontroller
#
endif
//
OPENVMP_REMOTE_MICROCONTROLLER_INTERFACE_H
Back
|
FazBrowse Home
|
New Git URL