This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void detectObjects() | |
| { | |
| std::shared_ptr<dai::ImgDetections> detectionsData; | |
| cv::Mat frame; | |
| updateImageData(frame); // function that updates frame with a static image | |
| int sequenceNum = 0; | |
| while (true) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import multiprocessing | |
| import threading | |
| LOOP_LENGTH = 100000000 | |
| def method1(): | |
| for _ in range(1, LOOP_LENGTH): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import threading | |
| LOOP_LENGTH = 100000000 | |
| def method1(): | |
| for _ in range(1, LOOP_LENGTH): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import time | |
| async def counter(): | |
| print("One") | |
| await asyncio.sleep(1) | |
| print("Two") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from time import sleep | |
| from py_trees.behaviour import Behaviour | |
| from py_trees.common import Status | |
| from py_trees.composites import Sequence | |
| from py_trees import ( | |
| display as display_tree, | |
| logging as log_tree | |
| ) | |
| from py_trees.decorators import Inverter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from time import sleep | |
| from py_trees.behaviour import Behaviour | |
| from py_trees.common import Status | |
| from py_trees.composites import Sequence | |
| from py_trees import logging as log_tree | |
| class Action(Behaviour): | |
| def __init__(self, name, max_attempt_count=1): | |
| super(Action, self).__init__(name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from time import sleep | |
| from py_trees.behaviour import Behaviour | |
| from py_trees.common import Status | |
| from py_trees.composites import Sequence | |
| from py_trees import logging as log_tree | |
| class Action(Behaviour): | |
| def __init__(self, name): | |
| super(Action, self).__init__(name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| repositories: | |
| turtlebot3/turtlebot3: | |
| type: git | |
| url: https://github.com/ROBOTIS-GIT/turtlebot3.git | |
| version: galactic-devel | |
| turtlebot3/turtlebot3_msgs: | |
| type: git | |
| url: https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git | |
| version: galactic-devel | |
| turtlebot3/turtlebot3_simulations: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import rclpy | |
| from rclpy.node import Node | |
| from std_msgs.msg import String | |
| from custom_interfaces.srv import ComponentStatus | |
| from rclpy.callback_groups import ReentrantCallbackGroup | |
| from rclpy.executors import MultiThreadedExecutor | |
| class BrainNode(Node): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import rclpy | |
| from rclpy.node import Node | |
| from std_msgs.msg import String | |
| from custom_interfaces.srv import ComponentStatus | |
| class PerceptionNode(Node): | |
| def __init__(self): |
NewerOlder