generated from bit-bots/bitbots_template_repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
47 additions
and
611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
bitbots_template_cpp/config/bitbots_template_cpp_parameters.yaml
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <rclcpp/experimental/executors/events_executor/events_executor.hpp> | ||
#include <rclcpp/rclcpp.hpp> | ||
|
||
namespace bibola { | ||
|
||
class BiBoLa : public rclcpp::Node { | ||
public: | ||
BiBoLa(); | ||
void log_foo_param(); | ||
}; | ||
|
||
} // namespace bibola |
19 changes: 0 additions & 19 deletions
19
bitbots_template_cpp/include/bitbots_template_cpp/template.hpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include <bibola/bibola.hpp> | ||
|
||
namespace bibola { | ||
|
||
BiBoLa::BiBoLa() : Node("bibola_node") { | ||
RCLCPP_INFO(this->get_logger(), "Starting bibola_node..."); | ||
} | ||
|
||
void BiBoLa::log_foo_param() { | ||
RCLCPP_INFO(this->get_logger(), "Hello World!!11elf"); | ||
} | ||
} // namespace bibola | ||
|
||
int main(int argc, char **argv) { | ||
rclcpp::init(argc, argv); | ||
auto node = std::make_shared<bibola::BiBoLa>(); | ||
|
||
rclcpp::Duration timer_duration = rclcpp::Duration::from_seconds(1.0); | ||
rclcpp::TimerBase::SharedPtr timer = | ||
rclcpp::create_timer(node, node->get_clock(), timer_duration, [node]() -> void { node->log_foo_param(); }); | ||
rclcpp::experimental::executors::EventsExecutor exec; | ||
exec.add_node(node); | ||
|
||
exec.spin(); | ||
rclcpp::shutdown(); | ||
} |
Oops, something went wrong.