Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added tf_prefix param and namespace support #9

Closed
wants to merge 2 commits into from
Closed

Conversation

delihus
Copy link
Contributor

@delihus delihus commented Nov 13, 2023

No description provided.

Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
@@ -12,7 +12,7 @@ namespace rosbot_hardware_interfaces
{
CallbackReturn RosbotSystem::on_init(const hardware_interface::HardwareInfo& hardware_info)
{
RCLCPP_INFO(rclcpp::get_logger("RosbotSystem"), "Initializing");
RCLCPP_INFO(rclcpp::get_logger("rosbot_system"), "Initializing");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not like this?

Suggested change
RCLCPP_INFO(rclcpp::get_logger("rosbot_system"), "Initializing");
RCLCPP_INFO(node_->get_logger(), "Initializing");

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest also change node name from "rosbot_system_node" to simply "rosbot_system"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The node_ is created at the end of the on_init function. This would cause segmentation fault.

@rafal-gorecki rafal-gorecki self-requested a review November 15, 2023 12:26
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
@delihus delihus closed this Nov 29, 2023
@delihus delihus deleted the add-namespace branch November 29, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants