FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
microcontroller/src/main.cpp 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
/
src
/
main.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (23 loc) · 606 Bytes
Breadcrumbs
microcontroller
/
src
/
main.cpp
Copy path
File metadata and controls
28 lines (23 loc) · 606 Bytes
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
/*
* OpenVMP, 2023
*
* Author: Roman Kuzmenko
* Created: 2023-03-26
*
* Licensed under Apache License, Version 2.0.
*/
#
include
"
rclcpp/rclcpp.hpp
"
#
include
"
remote_microcontroller/node.hpp
"
int
main
(
int
argc,
char
**argv) {
rclcpp::init
(argc, argv);
auto
exec = std::make_shared<rclcpp::executors::MultiThreadedExecutor>();
std::shared_ptr<remote_microcontroller::Node> node;
auto
thread =
std::thread
([exec, &node]() {
node = std::make_shared<remote_microcontroller::Node>(exec);
exec->
add_node
(node);
});
exec->
spin
();
exec.
reset
();
rclcpp::shutdown
();
return
0
;
}
Back
|
FazBrowse Home
|
New Git URL