Files
Main/.obsidian/plugins/text-extractor/cache/676bd4c644067c7822cc7096174db36e.json
2024-12-02 15:11:30 +01:00

1 line
1.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"path":"99 Work/0 OneSec/OneSecNotes/Multimedia/Pasted image 20231005135001.png","text":"B s e e e s e e e e AR s o e e e e e e e R e e e - — O N | - MBS, 2 i 6 // standard ROS2 node with BT: public BT::SyncActionNode S 7 class Readinglasen : public BT::SyncActionNode, public rclcpp::Node { “===<= 8 — 9 private: ——— 2] rclepp::Subscription<sensor_msgs::msg: :LaserScan>: :SharedPtr subscri ,i“:— 1 ——— 2 void topic_callback(const sensor_msgs: :msg::LaserScan: :SharedPtr me _ — - _ - e 3 1 e A data2 = msg->ranges[100]; = 5 datal = _msg->ranges[0]; —_— 5} = 7 -T-_,:_ 8 public: e 9 // Node constructor e 1 //See how we define the subscriber. We use lambda function which \"pro\\ Z==__ 2 // to collect data and later reuse data in BT node. 'Sjfi-f': 3 = 4 ReadinglLaser(const std::string &name, const BT::NodeConfiguration & ;E:—_ 5 : BT::SyncActionNode(name, config), Node(“scanner node™) { p——— 3 auto sensor_qos = rclcpp::QoS(rclcpp::SensorDataQos()); k; 8 subscription_ = this->create subscription<sensor msgs::msg::Lasers .'_;;: B ] \"/scan”, sensor_gos, R 2] [&](const sensor_msgs::msg::LaserScan: :SharedPtr msg) { 8","libVersion":"0.3.1","langs":"eng"}