This file contains 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 | |
import functools | |
def cache_result(seconds): | |
""" | |
Caches result of an async function, depending on its arguments | |
No support for maxsize, only TTL for now |
This file contains 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 ubuntu:jammy | |
ARG GH_USER=ros2 | |
ARG GH_BRANCH=rolling | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN \ | |
# apt-get -y install --no-install-recommends software-properties-common \ | |
apt-get update \ | |
&& apt-get -y install --no-install-recommends \ |
This file contains 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
#!/usr/bin/env python | |
""" | |
convert topic with payload to a service. The topic does not have to exist yet for this to run. | |
Usage: | |
rosrun [some_pkg] relay_topic2service.py /input_topic topic_type /service_address srv_type python_expression | |
e.g. | |
rosrun [some_pkg] relay_topic2service.py /my_trigger_topic std_msgs/Empty /trigger_this std_srvs/Empty '' | |
or |
This file contains 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
#!/usr/bin/env python | |
import rospy | |
import copy | |
import numpy as np | |
from interactive_markers.interactive_marker_server import * | |
from visualization_msgs.msg import * | |
from dual_quaternions_ros import DualQuaternion | |
from geometry_msgs.msg import Vector3, Point, Pose |