mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-03-18 21:50:36 +01:00
pcbs interfaces
This commit is contained in:
@@ -74,17 +74,6 @@ namespace Modelec
|
||||
RCLCPP_ERROR(this->get_logger(), "Service call failed");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* TODO : def
|
||||
* action/x/y/...
|
||||
*
|
||||
* x -> asc | servo | relay
|
||||
* y -> get | set | move
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
asc_get_sub_ = this->create_subscription<modelec_interfaces::msg::ActionAscPos>(
|
||||
"action/asc/get", 10,
|
||||
[this](const modelec_interfaces::msg::ActionAscPos::SharedPtr)
|
||||
|
||||
@@ -555,9 +555,12 @@ namespace Modelec
|
||||
|
||||
void PCBOdoInterface::SendToPCB(const std::string& data) const
|
||||
{
|
||||
auto message = std_msgs::msg::String();
|
||||
message.data = data;
|
||||
pcb_publisher_->publish(message);
|
||||
if (pcb_publisher_)
|
||||
{
|
||||
auto message = std_msgs::msg::String();
|
||||
message.data = data;
|
||||
pcb_publisher_->publish(message);
|
||||
}
|
||||
}
|
||||
|
||||
void PCBOdoInterface::SendToPCB(const std::string& order, const std::string& elem,
|
||||
|
||||
Reference in New Issue
Block a user