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

fix(rtc_interface): fix name space #1976

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ class RTCInterface
CooperateStatusArray registered_status_;
bool is_auto_mode_;

// TEMPORARY: Name space will be changed.
// std::string cooperate_status_namespace_ = "/planning/cooperate_status";
// std::string cooperate_commands_namespace_ = "/planning/cooperate_commands";
std::string cooperate_status_namespace_ = "/planning/cooperate_status";
std::string cooperate_commands_namespace_ = "/planning/cooperate_commands";
std::string enable_auto_mode_namespace_ = "/planning/enable_auto_mode/internal";
};

Expand Down
4 changes: 2 additions & 2 deletions planning/rtc_interface/src/rtc_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ RTCInterface::RTCInterface(rclcpp::Node * node, const std::string & name)

// Publisher
pub_statuses_ =
node->create_publisher<CooperateStatusArray>("~/" + name + "/cooperate_status", 1);
node->create_publisher<CooperateStatusArray>(cooperate_status_namespace_ + "/" + name, 1);

// Service
callback_group_ = node->create_callback_group(rclcpp::CallbackGroupType::MutuallyExclusive);
srv_commands_ = node->create_service<CooperateCommands>(
"~/" + name + "/cooperate_commands",
cooperate_commands_namespace_ + "/" + name,
std::bind(&RTCInterface::onCooperateCommandService, this, _1, _2),
rmw_qos_profile_services_default, callback_group_);
srv_auto_mode_ = node->create_service<AutoMode>(
Expand Down