example packages
This commit is contained in:
21
example/example_cpp/example_cpp.cpp
Normal file
21
example/example_cpp/example_cpp.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "common_msgs.hpp"
|
||||
#include <iostream>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
class Example_cpp {
|
||||
public:
|
||||
void run() {
|
||||
while (true) {
|
||||
// TODO: Implement node logic
|
||||
std::cout << "Running example_cpp" << std::endl;
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
Example_cpp node;
|
||||
node.run();
|
||||
return 0;
|
||||
}
|
4
example/example_cpp/package.bellande
Normal file
4
example/example_cpp/package.bellande
Normal file
@@ -0,0 +1,4 @@
|
||||
dependencies:
|
||||
- common_msgs
|
||||
language: cpp
|
||||
name: ../exampleexample_cpp
|
Reference in New Issue
Block a user