Skip to content

Commit

Permalink
Merge pull request #16 from husarion/ros2-change-estop-qos
Browse files Browse the repository at this point in the history
[ROS 2] Change qos of the estop topic
  • Loading branch information
KmakD authored Dec 18, 2023
2 parents 4c4b1cd + a52c1cd commit 98244ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion joy2twist/src/joy2twist_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Joy2TwistNode::Joy2TwistNode() : Node("joy2twist_node")

if (e_stop_present_) {
e_stop_sub_ = this->create_subscription<MsgBool>(
e_stop_topic_, rclcpp::SystemDefaultsQoS(), std::bind(&Joy2TwistNode::e_stop_cb, this, _1));
e_stop_topic_, rclcpp::QoS(rclcpp::KeepLast(1)).transient_local().reliable(),
std::bind(&Joy2TwistNode::e_stop_cb, this, _1));
e_stop_reset_client_ = this->create_client<SrvTrigger>(e_stop_reset_srv_);
e_stop_trigger_client_ = this->create_client<SrvTrigger>(e_stop_trigger_srv_);
}
Expand Down

0 comments on commit 98244ea

Please sign in to comment.