diff --git a/build/.built_by b/build/.built_by
new file mode 100644
index 0000000..06e74ac
--- /dev/null
+++ b/build/.built_by
@@ -0,0 +1 @@
+colcon
diff --git a/rmp220_middleware/__init__.py b/build/COLCON_IGNORE
similarity index 100%
rename from rmp220_middleware/__init__.py
rename to build/COLCON_IGNORE
diff --git a/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so b/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so
new file mode 100755
index 0000000..39892ea
Binary files /dev/null and b/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so differ
diff --git a/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so b/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so
new file mode 100755
index 0000000..39892ea
Binary files /dev/null and b/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so differ
diff --git a/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.py b/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.py
new file mode 100644
index 0000000..854f071
--- /dev/null
+++ b/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.py
@@ -0,0 +1,19 @@
+# main.py
+
+import rclpy
+from rmp220_middleware import StateMachineNode
+
+def main(args=None):
+ rclpy.init(args=args)
+ node = StateMachineNode()
+ try:
+ rclpy.spin(node)
+ except KeyboardInterrupt:
+ pass
+ finally:
+ node.disable_chassis()
+ node.destroy_node()
+ rclpy.shutdown()
+
+if __name__ == '__main__':
+ main()
diff --git a/build/rmp220_middleware/build/lib/rmp220_middleware/__init__.py b/build/rmp220_middleware/build/lib/rmp220_middleware/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/rmp220_middleware/rmp220_middleware copy.py b/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.bak.py
similarity index 55%
rename from rmp220_middleware/rmp220_middleware copy.py
rename to build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.bak.py
index 7f0d883..fff87c5 100644
--- a/rmp220_middleware/rmp220_middleware copy.py
+++ b/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.bak.py
@@ -1,13 +1,18 @@
#!/usr/bin/env python3
import rclpy
-from enum import Enum
from rclpy.node import Node
from std_msgs.msg import Bool
from geometry_msgs.msg import Twist
-#from sensor_msgs.msg import Joy
+from sensor_msgs.msg import Joy
+from enum import Enum
from segway_msgs.srv import RosSetChassisEnableCmd
+
+import atexit
+import signal
+import sys
+
class State(Enum):
DISABLED = 0
ENABLED = 1
@@ -18,68 +23,73 @@ class StateMachineNode(Node):
# Initialize state and other variables
self.state = State.DISABLED
- self.timeout = 2.0 # Timeout in seconds
+ self.timeout = 20.0 # Timeout in seconds
+ #self.limit = 0.5 # Limit for linear and angular velocity
- # Create publishers, subscribers, timers, and service clients here
+ # Create publishers, subscribers, timers, and service clients
self.cmd_vel_pub = self.create_publisher(Twist, '/cmd_vel_out', 10)
self.cmd_vel_sub = self.create_subscription(Twist, '/cmd_vel_mux', self.cmd_vel_callback, 10)
- #self.joy_sub = self.create_subscription(Joy, '/joy', self.joy_callback, 10)
- self.timer = self.create_timer(0.1, self.timer_callback)
+ self.joy_sub = self.create_subscription(Joy, '/joy', self.joy_callback, 10)
+ self.timer = self.create_timer(0.01, self.timer_callback)
+
+ # Create twist class for publishing velocities
+ self.twist = Twist()
+
+ self.latest_cmd_vel = Twist()
# Create service clients for chassis enable and disable
self.chassis_enable_client = self.create_client(RosSetChassisEnableCmd, 'set_chassis_enable')
while not self.chassis_enable_client.wait_for_service(timeout_sec=1.0):
self.get_logger().info('Service not available, waiting for chassis enable service...')
- self.chassis_disable_client = self.create_client(RosSetChassisEnableCmd, 'set_chassis_enable')
- while not self.chassis_disable_client.wait_for_service(timeout_sec=1.0):
- self.get_logger().info('Service not available, waiting for chassis disable service...')
-
- def joy_callback(self, msg):
- # Implement logic to detect joystick button presses (start/select) and update state
- # ...
- if msg.buttons[7] == 1: # Joystick button 'start'
- self.state = State.ENABLED
- self.get_logger().info("State: ENABLED (Button 'start')")
- self.enable_chassis()
- if msg.buttons[6] == 1: # Joystick button 'select'
- self.state = State.DISABLED
- self.get_logger().info("State: DISABLED (Button 'select')")
- self.disable_chassis()
+ self.get_logger().info('Chassis enable service available.')
def enable_chassis(self):
req = RosSetChassisEnableCmd.Request()
req.ros_set_chassis_enable_cmd = True
self.chassis_enable_client.call_async(req)
+ self.get_logger().info('Enabling chassis...')
def disable_chassis(self):
req = RosSetChassisEnableCmd.Request()
req.ros_set_chassis_enable_cmd = False
- self.chassis_disable_client.call_async(req)
+ self.chassis_enable_client.call_async(req)
+ self.get_logger().info('Disabling chassis...')
+
+ def joy_callback(self, msg):
+ start_button = msg.buttons[7] # Joystick button 'start'
+ select_button = msg.buttons[6] # Joystick button 'select'
+
+ if start_button == 1:
+ self.state = State.ENABLED
+ self.get_logger().info("State: ENABLED (Button 'start')")
+ self.enable_chassis()
+ elif select_button == 1:
+ self.state = State.DISABLED
+ self.get_logger().info("State: DISABLED (Button 'select')")
+ self.disable_chassis()
def cmd_vel_callback(self, msg):
- # Update state to ENABLED upon receiving a command on /cmd_vel_mux
- # ...
- if self.state == State.ENABLED:
- self.cmd_vel_pub.publish(msg)
- self.timeout = 2.0 # Reset timeout when receiving commands
+ # This method shall only update the latest_cmd_vel attribute so it can be republished by the timer_callback with 100 HZ. Should have a look at performance though.
+ self.latest_cmd_vel = msg
+ self.linear_abs = abs(self.latest_cmd_vel.linear)
+ self.angular_abs = abs(self.latest_cmd_vel.angular)
+ self.timeout = 20.0 # Reset timeout when receiving commands
def timer_callback(self):
- # Republish the cmd_vel_mux command to cmd_vel_out topic
- # ...
-
- # Reset the timeout counter
- # ...
-
- # Check if the timeout has been exceeded, and if so, switch to DISABLED
- # ...
-
if self.state == State.ENABLED:
if self.timeout <= 0:
self.state = State.DISABLED
self.get_logger().info("State: DISABLED (Timeout)")
self.disable_chassis()
else:
- self.timeout -= 0.1
+ self.timeout -= 0.01
+ self.cmd_vel_pub.publish(self.latest_cmd_vel)
+ if self.state == State.DISABLED and (self.linear_abs > 0.1 or self.angular_abs > 0.1): # This is a hack to enable the chassis when receiving commands e.g. from Nav2
+ self.state = State.ENABLED
+ self.get_logger().info("State: ENABLED (cmd_vel)")
+ self.enable_chassis()
+ else:
+ self.cmd_vel_pub.publish(self.twist)
def main(args=None):
rclpy.init(args=args)
@@ -89,6 +99,7 @@ def main(args=None):
except KeyboardInterrupt:
pass
finally:
+ node.disable_chassis()
node.destroy_node()
rclpy.shutdown()
diff --git a/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py b/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py
new file mode 100644
index 0000000..854f071
--- /dev/null
+++ b/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py
@@ -0,0 +1,19 @@
+# main.py
+
+import rclpy
+from rmp220_middleware import StateMachineNode
+
+def main(args=None):
+ rclpy.init(args=args)
+ node = StateMachineNode()
+ try:
+ rclpy.spin(node)
+ except KeyboardInterrupt:
+ pass
+ finally:
+ node.disable_chassis()
+ node.destroy_node()
+ rclpy.shutdown()
+
+if __name__ == '__main__':
+ main()
diff --git a/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o b/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o
new file mode 100644
index 0000000..d52ab05
Binary files /dev/null and b/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o differ
diff --git a/build/rmp220_middleware/colcon_build.rc b/build/rmp220_middleware/colcon_build.rc
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/build/rmp220_middleware/colcon_build.rc
@@ -0,0 +1 @@
+0
diff --git a/build/rmp220_middleware/colcon_command_prefix_setup_py.sh b/build/rmp220_middleware/colcon_command_prefix_setup_py.sh
new file mode 100644
index 0000000..f9867d5
--- /dev/null
+++ b/build/rmp220_middleware/colcon_command_prefix_setup_py.sh
@@ -0,0 +1 @@
+# generated from colcon_core/shell/template/command_prefix.sh.em
diff --git a/build/rmp220_middleware/colcon_command_prefix_setup_py.sh.env b/build/rmp220_middleware/colcon_command_prefix_setup_py.sh.env
new file mode 100644
index 0000000..8830d97
--- /dev/null
+++ b/build/rmp220_middleware/colcon_command_prefix_setup_py.sh.env
@@ -0,0 +1,88 @@
+AMENT_PREFIX_PATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware:/opt/ros/humble
+BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/code_code.desktop
+CHROME_DESKTOP=code-url-handler.desktop
+COLCON=1
+COLCON_PREFIX_PATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/install
+COLORTERM=truecolor
+DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1003/bus
+DESKTOP_SESSION=ubuntu
+DISPLAY=:1
+GDK_BACKEND=x11
+GDK_BACKEND_VSCODE_SNAP_ORIG=
+GDMSESSION=ubuntu
+GIO_LAUNCHED_DESKTOP_FILE=/var/lib/snapd/desktop/applications/code_code.desktop
+GIO_LAUNCHED_DESKTOP_FILE_PID=8368
+GIO_MODULE_DIR=/home/bjorn/snap/code/common/.cache/gio-modules
+GIO_MODULE_DIR_VSCODE_SNAP_ORIG=
+GIT_ASKPASS=/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass.sh
+GJS_DEBUG_OUTPUT=stderr
+GJS_DEBUG_TOPICS=JS ERROR;JS LOG
+GNOME_DESKTOP_SESSION_ID=this-is-deprecated
+GNOME_SHELL_SESSION_MODE=ubuntu
+GPG_AGENT_INFO=/run/user/1003/gnupg/S.gpg-agent:0:1
+GSETTINGS_SCHEMA_DIR=/home/bjorn/snap/code/137/.local/share/glib-2.0/schemas
+GSETTINGS_SCHEMA_DIR_VSCODE_SNAP_ORIG=
+GTK_EXE_PREFIX=/snap/code/137/usr
+GTK_EXE_PREFIX_VSCODE_SNAP_ORIG=
+GTK_IM_MODULE=ibus
+GTK_IM_MODULE_FILE=/home/bjorn/snap/code/common/.cache/immodules/immodules.cache
+GTK_IM_MODULE_FILE_VSCODE_SNAP_ORIG=
+GTK_MODULES=gail:atk-bridge
+GTK_PATH=/snap/code/137/usr/lib/x86_64-linux-gnu/gtk-3.0
+GTK_PATH_VSCODE_SNAP_ORIG=
+HOME=/home/bjorn
+IM_CONFIG_PHASE=1
+INVOCATION_ID=fb79c4fd3c1d4f7d9652c6b79482739c
+JOURNAL_STREAM=8:32520
+LANG=en_US.UTF-8
+LC_ALL=en_US.UTF-8
+LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/humble/opt/rviz_ogre_vendor/lib:/opt/ros/humble/lib/x86_64-linux-gnu:/opt/ros/humble/lib
+LESSCLOSE=/usr/bin/lesspipe %s %s
+LESSOPEN=| /usr/bin/lesspipe %s
+LOCPATH=/snap/code/137/usr/lib/locale
+LOCPATH_VSCODE_SNAP_ORIG=
+LOGNAME=bjorn
+LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
+MANAGERPID=2405
+ONSHAPE_ACCESS_KEY=twfpigMHe11VE7ZCq2NOANj7
+ONSHAPE_API=https://cad.onshape.com
+ONSHAPE_SECRET_KEY=XpUhDOxw7Gp7LV3wT3xDFGXeOGmk2nQmeLlysM7cQU7zv6Bz
+ORIGINAL_XDG_CURRENT_DESKTOP=ubuntu:GNOME
+PATH=/home/bjorn/.local/bin:/opt/ros/humble/bin:/home/bjorn/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
+PWD=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware
+PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:/opt/ros/humble/lib/python3.10/site-packages:/opt/ros/humble/local/lib/python3.10/dist-packages
+QT_ACCESSIBILITY=1
+QT_IM_MODULE=ibus
+ROS_DISTRO=humble
+ROS_LOCALHOST_ONLY=0
+ROS_PYTHON_VERSION=3
+ROS_VERSION=2
+SESSION_MANAGER=local/NUC01:@/tmp/.ICE-unix/2719,unix/NUC01:/tmp/.ICE-unix/2719
+SHELL=/bin/bash
+SHLVL=1
+SSH_AGENT_LAUNCHER=gnome-keyring
+SSH_AUTH_SOCK=/run/user/1003/keyring/ssh
+SYSTEMD_EXEC_PID=2742
+TERM=xterm-256color
+TERM_PROGRAM=vscode
+TERM_PROGRAM_VERSION=1.81.1
+USER=bjorn
+USERNAME=bjorn
+VSCODE_GIT_ASKPASS_EXTRA_ARGS=--ms-enable-electron-run-as-node
+VSCODE_GIT_ASKPASS_MAIN=/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass-main.js
+VSCODE_GIT_ASKPASS_NODE=/snap/code/137/usr/share/code/code
+VSCODE_GIT_IPC_HANDLE=/run/user/1003/vscode-git-c5b06e67ef.sock
+WINDOWPATH=2
+XAUTHORITY=/run/user/1003/gdm/Xauthority
+XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
+XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG=/etc/xdg/xdg-ubuntu:/etc/xdg
+XDG_CURRENT_DESKTOP=Unity
+XDG_DATA_DIRS=/home/bjorn/snap/code/137/.local/share:/home/bjorn/snap/code/137:/snap/code/137/usr/share:/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
+XDG_DATA_DIRS_VSCODE_SNAP_ORIG=/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
+XDG_MENU_PREFIX=gnome-
+XDG_RUNTIME_DIR=/run/user/1003
+XDG_SESSION_CLASS=user
+XDG_SESSION_DESKTOP=ubuntu
+XDG_SESSION_TYPE=x11
+XMODIFIERS=@im=ibus
+_=/usr/bin/colcon
diff --git a/build/rmp220_middleware/install.log b/build/rmp220_middleware/install.log
new file mode 100644
index 0000000..97e333e
--- /dev/null
+++ b/build/rmp220_middleware/install.log
@@ -0,0 +1,13 @@
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__pycache__/rmp220_middleware.cpython-310.pyc
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware.cpython-310-x86_64-linux-gnu.so
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index/packages/rmp220_middleware
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.xml
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/PKG-INFO
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/SOURCES.txt
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/zip-safe
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/dependency_links.txt
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/requires.txt
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/entry_points.txt
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/top_level.txt
+/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware/rmp220_middleware
diff --git a/build/rmp220_middleware/prefix_override/__pycache__/sitecustomize.cpython-310.pyc b/build/rmp220_middleware/prefix_override/__pycache__/sitecustomize.cpython-310.pyc
new file mode 100644
index 0000000..96ac4b1
Binary files /dev/null and b/build/rmp220_middleware/prefix_override/__pycache__/sitecustomize.cpython-310.pyc differ
diff --git a/build/rmp220_middleware/prefix_override/sitecustomize.py b/build/rmp220_middleware/prefix_override/sitecustomize.py
new file mode 100644
index 0000000..66a7aa2
--- /dev/null
+++ b/build/rmp220_middleware/prefix_override/sitecustomize.py
@@ -0,0 +1,3 @@
+import sys
+sys.real_prefix = sys.prefix
+sys.prefix = sys.exec_prefix = '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware'
diff --git a/build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO b/build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO
new file mode 100644
index 0000000..9d00f97
--- /dev/null
+++ b/build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO
@@ -0,0 +1,12 @@
+Metadata-Version: 2.1
+Name: rmp220-middleware
+Version: 0.0.0
+Summary: TODO: Package description
+Home-page: UNKNOWN
+Maintainer: bjorn
+Maintainer-email: bjoern.ellensohn@gmail.com
+License: TODO: License declaration
+Platform: UNKNOWN
+
+UNKNOWN
+
diff --git a/build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt b/build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt
new file mode 100644
index 0000000..5d04694
--- /dev/null
+++ b/build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt
@@ -0,0 +1,16 @@
+package.xml
+setup.cfg
+setup.py
+build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO
+build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt
+build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt
+build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt
+build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt
+build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt
+build/rmp220_middleware/rmp220_middleware.egg-info/zip-safe
+resource/rmp220_middleware
+rmp220_middleware/rmp220_middleware.c
+rmp220_middleware/rmp220_middleware.py
+test/test_copyright.py
+test/test_flake8.py
+test/test_pep257.py
\ No newline at end of file
diff --git a/build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt b/build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt b/build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt
new file mode 100644
index 0000000..aa75c7b
--- /dev/null
+++ b/build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt
@@ -0,0 +1,3 @@
+[console_scripts]
+rmp220_middleware = rmp220_middleware.rmp220_middleware:main
+
diff --git a/build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt b/build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt
new file mode 100644
index 0000000..05e8e65
--- /dev/null
+++ b/build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt
@@ -0,0 +1,3 @@
+setuptools
+wheel
+Cython
diff --git a/build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt b/build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt
new file mode 100644
index 0000000..35d8524
--- /dev/null
+++ b/build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt
@@ -0,0 +1 @@
+rmp220_middleware
diff --git a/build/rmp220_middleware/rmp220_middleware.egg-info/zip-safe b/build/rmp220_middleware/rmp220_middleware.egg-info/zip-safe
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/build/rmp220_middleware/rmp220_middleware.egg-info/zip-safe
@@ -0,0 +1 @@
+
diff --git a/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o b/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o
new file mode 100644
index 0000000..d52ab05
Binary files /dev/null and b/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o differ
diff --git a/install/.colcon_install_layout b/install/.colcon_install_layout
new file mode 100644
index 0000000..3aad533
--- /dev/null
+++ b/install/.colcon_install_layout
@@ -0,0 +1 @@
+isolated
diff --git a/install/COLCON_IGNORE b/install/COLCON_IGNORE
new file mode 100644
index 0000000..e69de29
diff --git a/install/_local_setup_util_ps1.py b/install/_local_setup_util_ps1.py
new file mode 100644
index 0000000..98348ee
--- /dev/null
+++ b/install/_local_setup_util_ps1.py
@@ -0,0 +1,404 @@
+# Copyright 2016-2019 Dirk Thomas
+# Licensed under the Apache License, Version 2.0
+
+import argparse
+from collections import OrderedDict
+import os
+from pathlib import Path
+import sys
+
+
+FORMAT_STR_COMMENT_LINE = '# {comment}'
+FORMAT_STR_SET_ENV_VAR = 'Set-Item -Path "Env:{name}" -Value "{value}"'
+FORMAT_STR_USE_ENV_VAR = '$env:{name}'
+FORMAT_STR_INVOKE_SCRIPT = '_colcon_prefix_powershell_source_script "{script_path}"'
+FORMAT_STR_REMOVE_LEADING_SEPARATOR = ''
+FORMAT_STR_REMOVE_TRAILING_SEPARATOR = ''
+
+DSV_TYPE_APPEND_NON_DUPLICATE = 'append-non-duplicate'
+DSV_TYPE_PREPEND_NON_DUPLICATE = 'prepend-non-duplicate'
+DSV_TYPE_PREPEND_NON_DUPLICATE_IF_EXISTS = 'prepend-non-duplicate-if-exists'
+DSV_TYPE_SET = 'set'
+DSV_TYPE_SET_IF_UNSET = 'set-if-unset'
+DSV_TYPE_SOURCE = 'source'
+
+
+def main(argv=sys.argv[1:]): # noqa: D103
+ parser = argparse.ArgumentParser(
+ description='Output shell commands for the packages in topological '
+ 'order')
+ parser.add_argument(
+ 'primary_extension',
+ help='The file extension of the primary shell')
+ parser.add_argument(
+ 'additional_extension', nargs='?',
+ help='The additional file extension to be considered')
+ parser.add_argument(
+ '--merged-install', action='store_true',
+ help='All install prefixes are merged into a single location')
+ args = parser.parse_args(argv)
+
+ packages = get_packages(Path(__file__).parent, args.merged_install)
+
+ ordered_packages = order_packages(packages)
+ for pkg_name in ordered_packages:
+ if _include_comments():
+ print(
+ FORMAT_STR_COMMENT_LINE.format_map(
+ {'comment': 'Package: ' + pkg_name}))
+ prefix = os.path.abspath(os.path.dirname(__file__))
+ if not args.merged_install:
+ prefix = os.path.join(prefix, pkg_name)
+ for line in get_commands(
+ pkg_name, prefix, args.primary_extension,
+ args.additional_extension
+ ):
+ print(line)
+
+ for line in _remove_ending_separators():
+ print(line)
+
+
+def get_packages(prefix_path, merged_install):
+ """
+ Find packages based on colcon-specific files created during installation.
+
+ :param Path prefix_path: The install prefix path of all packages
+ :param bool merged_install: The flag if the packages are all installed
+ directly in the prefix or if each package is installed in a subdirectory
+ named after the package
+ :returns: A mapping from the package name to the set of runtime
+ dependencies
+ :rtype: dict
+ """
+ packages = {}
+ # since importing colcon_core isn't feasible here the following constant
+ # must match colcon_core.location.get_relative_package_index_path()
+ subdirectory = 'share/colcon-core/packages'
+ if merged_install:
+ # return if workspace is empty
+ if not (prefix_path / subdirectory).is_dir():
+ return packages
+ # find all files in the subdirectory
+ for p in (prefix_path / subdirectory).iterdir():
+ if not p.is_file():
+ continue
+ if p.name.startswith('.'):
+ continue
+ add_package_runtime_dependencies(p, packages)
+ else:
+ # for each subdirectory look for the package specific file
+ for p in prefix_path.iterdir():
+ if not p.is_dir():
+ continue
+ if p.name.startswith('.'):
+ continue
+ p = p / subdirectory / p.name
+ if p.is_file():
+ add_package_runtime_dependencies(p, packages)
+
+ # remove unknown dependencies
+ pkg_names = set(packages.keys())
+ for k in packages.keys():
+ packages[k] = {d for d in packages[k] if d in pkg_names}
+
+ return packages
+
+
+def add_package_runtime_dependencies(path, packages):
+ """
+ Check the path and if it exists extract the packages runtime dependencies.
+
+ :param Path path: The resource file containing the runtime dependencies
+ :param dict packages: A mapping from package names to the sets of runtime
+ dependencies to add to
+ """
+ content = path.read_text()
+ dependencies = set(content.split(os.pathsep) if content else [])
+ packages[path.name] = dependencies
+
+
+def order_packages(packages):
+ """
+ Order packages topologically.
+
+ :param dict packages: A mapping from package name to the set of runtime
+ dependencies
+ :returns: The package names
+ :rtype: list
+ """
+ # select packages with no dependencies in alphabetical order
+ to_be_ordered = list(packages.keys())
+ ordered = []
+ while to_be_ordered:
+ pkg_names_without_deps = [
+ name for name in to_be_ordered if not packages[name]]
+ if not pkg_names_without_deps:
+ reduce_cycle_set(packages)
+ raise RuntimeError(
+ 'Circular dependency between: ' + ', '.join(sorted(packages)))
+ pkg_names_without_deps.sort()
+ pkg_name = pkg_names_without_deps[0]
+ to_be_ordered.remove(pkg_name)
+ ordered.append(pkg_name)
+ # remove item from dependency lists
+ for k in list(packages.keys()):
+ if pkg_name in packages[k]:
+ packages[k].remove(pkg_name)
+ return ordered
+
+
+def reduce_cycle_set(packages):
+ """
+ Reduce the set of packages to the ones part of the circular dependency.
+
+ :param dict packages: A mapping from package name to the set of runtime
+ dependencies which is modified in place
+ """
+ last_depended = None
+ while len(packages) > 0:
+ # get all remaining dependencies
+ depended = set()
+ for pkg_name, dependencies in packages.items():
+ depended = depended.union(dependencies)
+ # remove all packages which are not dependent on
+ for name in list(packages.keys()):
+ if name not in depended:
+ del packages[name]
+ if last_depended:
+ # if remaining packages haven't changed return them
+ if last_depended == depended:
+ return packages.keys()
+ # otherwise reduce again
+ last_depended = depended
+
+
+def _include_comments():
+ # skipping comment lines when COLCON_TRACE is not set speeds up the
+ # processing especially on Windows
+ return bool(os.environ.get('COLCON_TRACE'))
+
+
+def get_commands(pkg_name, prefix, primary_extension, additional_extension):
+ commands = []
+ package_dsv_path = os.path.join(prefix, 'share', pkg_name, 'package.dsv')
+ if os.path.exists(package_dsv_path):
+ commands += process_dsv_file(
+ package_dsv_path, prefix, primary_extension, additional_extension)
+ return commands
+
+
+def process_dsv_file(
+ dsv_path, prefix, primary_extension=None, additional_extension=None
+):
+ commands = []
+ if _include_comments():
+ commands.append(FORMAT_STR_COMMENT_LINE.format_map({'comment': dsv_path}))
+ with open(dsv_path, 'r') as h:
+ content = h.read()
+ lines = content.splitlines()
+
+ basenames = OrderedDict()
+ for i, line in enumerate(lines):
+ # skip over empty or whitespace-only lines
+ if not line.strip():
+ continue
+ try:
+ type_, remainder = line.split(';', 1)
+ except ValueError:
+ raise RuntimeError(
+ "Line %d in '%s' doesn't contain a semicolon separating the "
+ 'type from the arguments' % (i + 1, dsv_path))
+ if type_ != DSV_TYPE_SOURCE:
+ # handle non-source lines
+ try:
+ commands += handle_dsv_types_except_source(
+ type_, remainder, prefix)
+ except RuntimeError as e:
+ raise RuntimeError(
+ "Line %d in '%s' %s" % (i + 1, dsv_path, e)) from e
+ else:
+ # group remaining source lines by basename
+ path_without_ext, ext = os.path.splitext(remainder)
+ if path_without_ext not in basenames:
+ basenames[path_without_ext] = set()
+ assert ext.startswith('.')
+ ext = ext[1:]
+ if ext in (primary_extension, additional_extension):
+ basenames[path_without_ext].add(ext)
+
+ # add the dsv extension to each basename if the file exists
+ for basename, extensions in basenames.items():
+ if not os.path.isabs(basename):
+ basename = os.path.join(prefix, basename)
+ if os.path.exists(basename + '.dsv'):
+ extensions.add('dsv')
+
+ for basename, extensions in basenames.items():
+ if not os.path.isabs(basename):
+ basename = os.path.join(prefix, basename)
+ if 'dsv' in extensions:
+ # process dsv files recursively
+ commands += process_dsv_file(
+ basename + '.dsv', prefix, primary_extension=primary_extension,
+ additional_extension=additional_extension)
+ elif primary_extension in extensions and len(extensions) == 1:
+ # source primary-only files
+ commands += [
+ FORMAT_STR_INVOKE_SCRIPT.format_map({
+ 'prefix': prefix,
+ 'script_path': basename + '.' + primary_extension})]
+ elif additional_extension in extensions:
+ # source non-primary files
+ commands += [
+ FORMAT_STR_INVOKE_SCRIPT.format_map({
+ 'prefix': prefix,
+ 'script_path': basename + '.' + additional_extension})]
+
+ return commands
+
+
+def handle_dsv_types_except_source(type_, remainder, prefix):
+ commands = []
+ if type_ in (DSV_TYPE_SET, DSV_TYPE_SET_IF_UNSET):
+ try:
+ env_name, value = remainder.split(';', 1)
+ except ValueError:
+ raise RuntimeError(
+ "doesn't contain a semicolon separating the environment name "
+ 'from the value')
+ try_prefixed_value = os.path.join(prefix, value) if value else prefix
+ if os.path.exists(try_prefixed_value):
+ value = try_prefixed_value
+ if type_ == DSV_TYPE_SET:
+ commands += _set(env_name, value)
+ elif type_ == DSV_TYPE_SET_IF_UNSET:
+ commands += _set_if_unset(env_name, value)
+ else:
+ assert False
+ elif type_ in (
+ DSV_TYPE_APPEND_NON_DUPLICATE,
+ DSV_TYPE_PREPEND_NON_DUPLICATE,
+ DSV_TYPE_PREPEND_NON_DUPLICATE_IF_EXISTS
+ ):
+ try:
+ env_name_and_values = remainder.split(';')
+ except ValueError:
+ raise RuntimeError(
+ "doesn't contain a semicolon separating the environment name "
+ 'from the values')
+ env_name = env_name_and_values[0]
+ values = env_name_and_values[1:]
+ for value in values:
+ if not value:
+ value = prefix
+ elif not os.path.isabs(value):
+ value = os.path.join(prefix, value)
+ if (
+ type_ == DSV_TYPE_PREPEND_NON_DUPLICATE_IF_EXISTS and
+ not os.path.exists(value)
+ ):
+ comment = f'skip extending {env_name} with not existing ' \
+ f'path: {value}'
+ if _include_comments():
+ commands.append(
+ FORMAT_STR_COMMENT_LINE.format_map({'comment': comment}))
+ elif type_ == DSV_TYPE_APPEND_NON_DUPLICATE:
+ commands += _append_unique_value(env_name, value)
+ else:
+ commands += _prepend_unique_value(env_name, value)
+ else:
+ raise RuntimeError(
+ 'contains an unknown environment hook type: ' + type_)
+ return commands
+
+
+env_state = {}
+
+
+def _append_unique_value(name, value):
+ global env_state
+ if name not in env_state:
+ if os.environ.get(name):
+ env_state[name] = set(os.environ[name].split(os.pathsep))
+ else:
+ env_state[name] = set()
+ # append even if the variable has not been set yet, in case a shell script sets the
+ # same variable without the knowledge of this Python script.
+ # later _remove_ending_separators() will cleanup any unintentional leading separator
+ extend = FORMAT_STR_USE_ENV_VAR.format_map({'name': name}) + os.pathsep
+ line = FORMAT_STR_SET_ENV_VAR.format_map(
+ {'name': name, 'value': extend + value})
+ if value not in env_state[name]:
+ env_state[name].add(value)
+ else:
+ if not _include_comments():
+ return []
+ line = FORMAT_STR_COMMENT_LINE.format_map({'comment': line})
+ return [line]
+
+
+def _prepend_unique_value(name, value):
+ global env_state
+ if name not in env_state:
+ if os.environ.get(name):
+ env_state[name] = set(os.environ[name].split(os.pathsep))
+ else:
+ env_state[name] = set()
+ # prepend even if the variable has not been set yet, in case a shell script sets the
+ # same variable without the knowledge of this Python script.
+ # later _remove_ending_separators() will cleanup any unintentional trailing separator
+ extend = os.pathsep + FORMAT_STR_USE_ENV_VAR.format_map({'name': name})
+ line = FORMAT_STR_SET_ENV_VAR.format_map(
+ {'name': name, 'value': value + extend})
+ if value not in env_state[name]:
+ env_state[name].add(value)
+ else:
+ if not _include_comments():
+ return []
+ line = FORMAT_STR_COMMENT_LINE.format_map({'comment': line})
+ return [line]
+
+
+# generate commands for removing prepended underscores
+def _remove_ending_separators():
+ # do nothing if the shell extension does not implement the logic
+ if FORMAT_STR_REMOVE_TRAILING_SEPARATOR is None:
+ return []
+
+ global env_state
+ commands = []
+ for name in env_state:
+ # skip variables that already had values before this script started prepending
+ if name in os.environ:
+ continue
+ commands += [
+ FORMAT_STR_REMOVE_LEADING_SEPARATOR.format_map({'name': name}),
+ FORMAT_STR_REMOVE_TRAILING_SEPARATOR.format_map({'name': name})]
+ return commands
+
+
+def _set(name, value):
+ global env_state
+ env_state[name] = value
+ line = FORMAT_STR_SET_ENV_VAR.format_map(
+ {'name': name, 'value': value})
+ return [line]
+
+
+def _set_if_unset(name, value):
+ global env_state
+ line = FORMAT_STR_SET_ENV_VAR.format_map(
+ {'name': name, 'value': value})
+ if env_state.get(name, os.environ.get(name)):
+ line = FORMAT_STR_COMMENT_LINE.format_map({'comment': line})
+ return [line]
+
+
+if __name__ == '__main__': # pragma: no cover
+ try:
+ rc = main()
+ except RuntimeError as e:
+ print(str(e), file=sys.stderr)
+ rc = 1
+ sys.exit(rc)
diff --git a/install/_local_setup_util_sh.py b/install/_local_setup_util_sh.py
new file mode 100644
index 0000000..35c017b
--- /dev/null
+++ b/install/_local_setup_util_sh.py
@@ -0,0 +1,404 @@
+# Copyright 2016-2019 Dirk Thomas
+# Licensed under the Apache License, Version 2.0
+
+import argparse
+from collections import OrderedDict
+import os
+from pathlib import Path
+import sys
+
+
+FORMAT_STR_COMMENT_LINE = '# {comment}'
+FORMAT_STR_SET_ENV_VAR = 'export {name}="{value}"'
+FORMAT_STR_USE_ENV_VAR = '${name}'
+FORMAT_STR_INVOKE_SCRIPT = 'COLCON_CURRENT_PREFIX="{prefix}" _colcon_prefix_sh_source_script "{script_path}"'
+FORMAT_STR_REMOVE_LEADING_SEPARATOR = 'if [ "$(echo -n ${name} | head -c 1)" = ":" ]; then export {name}=${{{name}#?}} ; fi'
+FORMAT_STR_REMOVE_TRAILING_SEPARATOR = 'if [ "$(echo -n ${name} | tail -c 1)" = ":" ]; then export {name}=${{{name}%?}} ; fi'
+
+DSV_TYPE_APPEND_NON_DUPLICATE = 'append-non-duplicate'
+DSV_TYPE_PREPEND_NON_DUPLICATE = 'prepend-non-duplicate'
+DSV_TYPE_PREPEND_NON_DUPLICATE_IF_EXISTS = 'prepend-non-duplicate-if-exists'
+DSV_TYPE_SET = 'set'
+DSV_TYPE_SET_IF_UNSET = 'set-if-unset'
+DSV_TYPE_SOURCE = 'source'
+
+
+def main(argv=sys.argv[1:]): # noqa: D103
+ parser = argparse.ArgumentParser(
+ description='Output shell commands for the packages in topological '
+ 'order')
+ parser.add_argument(
+ 'primary_extension',
+ help='The file extension of the primary shell')
+ parser.add_argument(
+ 'additional_extension', nargs='?',
+ help='The additional file extension to be considered')
+ parser.add_argument(
+ '--merged-install', action='store_true',
+ help='All install prefixes are merged into a single location')
+ args = parser.parse_args(argv)
+
+ packages = get_packages(Path(__file__).parent, args.merged_install)
+
+ ordered_packages = order_packages(packages)
+ for pkg_name in ordered_packages:
+ if _include_comments():
+ print(
+ FORMAT_STR_COMMENT_LINE.format_map(
+ {'comment': 'Package: ' + pkg_name}))
+ prefix = os.path.abspath(os.path.dirname(__file__))
+ if not args.merged_install:
+ prefix = os.path.join(prefix, pkg_name)
+ for line in get_commands(
+ pkg_name, prefix, args.primary_extension,
+ args.additional_extension
+ ):
+ print(line)
+
+ for line in _remove_ending_separators():
+ print(line)
+
+
+def get_packages(prefix_path, merged_install):
+ """
+ Find packages based on colcon-specific files created during installation.
+
+ :param Path prefix_path: The install prefix path of all packages
+ :param bool merged_install: The flag if the packages are all installed
+ directly in the prefix or if each package is installed in a subdirectory
+ named after the package
+ :returns: A mapping from the package name to the set of runtime
+ dependencies
+ :rtype: dict
+ """
+ packages = {}
+ # since importing colcon_core isn't feasible here the following constant
+ # must match colcon_core.location.get_relative_package_index_path()
+ subdirectory = 'share/colcon-core/packages'
+ if merged_install:
+ # return if workspace is empty
+ if not (prefix_path / subdirectory).is_dir():
+ return packages
+ # find all files in the subdirectory
+ for p in (prefix_path / subdirectory).iterdir():
+ if not p.is_file():
+ continue
+ if p.name.startswith('.'):
+ continue
+ add_package_runtime_dependencies(p, packages)
+ else:
+ # for each subdirectory look for the package specific file
+ for p in prefix_path.iterdir():
+ if not p.is_dir():
+ continue
+ if p.name.startswith('.'):
+ continue
+ p = p / subdirectory / p.name
+ if p.is_file():
+ add_package_runtime_dependencies(p, packages)
+
+ # remove unknown dependencies
+ pkg_names = set(packages.keys())
+ for k in packages.keys():
+ packages[k] = {d for d in packages[k] if d in pkg_names}
+
+ return packages
+
+
+def add_package_runtime_dependencies(path, packages):
+ """
+ Check the path and if it exists extract the packages runtime dependencies.
+
+ :param Path path: The resource file containing the runtime dependencies
+ :param dict packages: A mapping from package names to the sets of runtime
+ dependencies to add to
+ """
+ content = path.read_text()
+ dependencies = set(content.split(os.pathsep) if content else [])
+ packages[path.name] = dependencies
+
+
+def order_packages(packages):
+ """
+ Order packages topologically.
+
+ :param dict packages: A mapping from package name to the set of runtime
+ dependencies
+ :returns: The package names
+ :rtype: list
+ """
+ # select packages with no dependencies in alphabetical order
+ to_be_ordered = list(packages.keys())
+ ordered = []
+ while to_be_ordered:
+ pkg_names_without_deps = [
+ name for name in to_be_ordered if not packages[name]]
+ if not pkg_names_without_deps:
+ reduce_cycle_set(packages)
+ raise RuntimeError(
+ 'Circular dependency between: ' + ', '.join(sorted(packages)))
+ pkg_names_without_deps.sort()
+ pkg_name = pkg_names_without_deps[0]
+ to_be_ordered.remove(pkg_name)
+ ordered.append(pkg_name)
+ # remove item from dependency lists
+ for k in list(packages.keys()):
+ if pkg_name in packages[k]:
+ packages[k].remove(pkg_name)
+ return ordered
+
+
+def reduce_cycle_set(packages):
+ """
+ Reduce the set of packages to the ones part of the circular dependency.
+
+ :param dict packages: A mapping from package name to the set of runtime
+ dependencies which is modified in place
+ """
+ last_depended = None
+ while len(packages) > 0:
+ # get all remaining dependencies
+ depended = set()
+ for pkg_name, dependencies in packages.items():
+ depended = depended.union(dependencies)
+ # remove all packages which are not dependent on
+ for name in list(packages.keys()):
+ if name not in depended:
+ del packages[name]
+ if last_depended:
+ # if remaining packages haven't changed return them
+ if last_depended == depended:
+ return packages.keys()
+ # otherwise reduce again
+ last_depended = depended
+
+
+def _include_comments():
+ # skipping comment lines when COLCON_TRACE is not set speeds up the
+ # processing especially on Windows
+ return bool(os.environ.get('COLCON_TRACE'))
+
+
+def get_commands(pkg_name, prefix, primary_extension, additional_extension):
+ commands = []
+ package_dsv_path = os.path.join(prefix, 'share', pkg_name, 'package.dsv')
+ if os.path.exists(package_dsv_path):
+ commands += process_dsv_file(
+ package_dsv_path, prefix, primary_extension, additional_extension)
+ return commands
+
+
+def process_dsv_file(
+ dsv_path, prefix, primary_extension=None, additional_extension=None
+):
+ commands = []
+ if _include_comments():
+ commands.append(FORMAT_STR_COMMENT_LINE.format_map({'comment': dsv_path}))
+ with open(dsv_path, 'r') as h:
+ content = h.read()
+ lines = content.splitlines()
+
+ basenames = OrderedDict()
+ for i, line in enumerate(lines):
+ # skip over empty or whitespace-only lines
+ if not line.strip():
+ continue
+ try:
+ type_, remainder = line.split(';', 1)
+ except ValueError:
+ raise RuntimeError(
+ "Line %d in '%s' doesn't contain a semicolon separating the "
+ 'type from the arguments' % (i + 1, dsv_path))
+ if type_ != DSV_TYPE_SOURCE:
+ # handle non-source lines
+ try:
+ commands += handle_dsv_types_except_source(
+ type_, remainder, prefix)
+ except RuntimeError as e:
+ raise RuntimeError(
+ "Line %d in '%s' %s" % (i + 1, dsv_path, e)) from e
+ else:
+ # group remaining source lines by basename
+ path_without_ext, ext = os.path.splitext(remainder)
+ if path_without_ext not in basenames:
+ basenames[path_without_ext] = set()
+ assert ext.startswith('.')
+ ext = ext[1:]
+ if ext in (primary_extension, additional_extension):
+ basenames[path_without_ext].add(ext)
+
+ # add the dsv extension to each basename if the file exists
+ for basename, extensions in basenames.items():
+ if not os.path.isabs(basename):
+ basename = os.path.join(prefix, basename)
+ if os.path.exists(basename + '.dsv'):
+ extensions.add('dsv')
+
+ for basename, extensions in basenames.items():
+ if not os.path.isabs(basename):
+ basename = os.path.join(prefix, basename)
+ if 'dsv' in extensions:
+ # process dsv files recursively
+ commands += process_dsv_file(
+ basename + '.dsv', prefix, primary_extension=primary_extension,
+ additional_extension=additional_extension)
+ elif primary_extension in extensions and len(extensions) == 1:
+ # source primary-only files
+ commands += [
+ FORMAT_STR_INVOKE_SCRIPT.format_map({
+ 'prefix': prefix,
+ 'script_path': basename + '.' + primary_extension})]
+ elif additional_extension in extensions:
+ # source non-primary files
+ commands += [
+ FORMAT_STR_INVOKE_SCRIPT.format_map({
+ 'prefix': prefix,
+ 'script_path': basename + '.' + additional_extension})]
+
+ return commands
+
+
+def handle_dsv_types_except_source(type_, remainder, prefix):
+ commands = []
+ if type_ in (DSV_TYPE_SET, DSV_TYPE_SET_IF_UNSET):
+ try:
+ env_name, value = remainder.split(';', 1)
+ except ValueError:
+ raise RuntimeError(
+ "doesn't contain a semicolon separating the environment name "
+ 'from the value')
+ try_prefixed_value = os.path.join(prefix, value) if value else prefix
+ if os.path.exists(try_prefixed_value):
+ value = try_prefixed_value
+ if type_ == DSV_TYPE_SET:
+ commands += _set(env_name, value)
+ elif type_ == DSV_TYPE_SET_IF_UNSET:
+ commands += _set_if_unset(env_name, value)
+ else:
+ assert False
+ elif type_ in (
+ DSV_TYPE_APPEND_NON_DUPLICATE,
+ DSV_TYPE_PREPEND_NON_DUPLICATE,
+ DSV_TYPE_PREPEND_NON_DUPLICATE_IF_EXISTS
+ ):
+ try:
+ env_name_and_values = remainder.split(';')
+ except ValueError:
+ raise RuntimeError(
+ "doesn't contain a semicolon separating the environment name "
+ 'from the values')
+ env_name = env_name_and_values[0]
+ values = env_name_and_values[1:]
+ for value in values:
+ if not value:
+ value = prefix
+ elif not os.path.isabs(value):
+ value = os.path.join(prefix, value)
+ if (
+ type_ == DSV_TYPE_PREPEND_NON_DUPLICATE_IF_EXISTS and
+ not os.path.exists(value)
+ ):
+ comment = f'skip extending {env_name} with not existing ' \
+ f'path: {value}'
+ if _include_comments():
+ commands.append(
+ FORMAT_STR_COMMENT_LINE.format_map({'comment': comment}))
+ elif type_ == DSV_TYPE_APPEND_NON_DUPLICATE:
+ commands += _append_unique_value(env_name, value)
+ else:
+ commands += _prepend_unique_value(env_name, value)
+ else:
+ raise RuntimeError(
+ 'contains an unknown environment hook type: ' + type_)
+ return commands
+
+
+env_state = {}
+
+
+def _append_unique_value(name, value):
+ global env_state
+ if name not in env_state:
+ if os.environ.get(name):
+ env_state[name] = set(os.environ[name].split(os.pathsep))
+ else:
+ env_state[name] = set()
+ # append even if the variable has not been set yet, in case a shell script sets the
+ # same variable without the knowledge of this Python script.
+ # later _remove_ending_separators() will cleanup any unintentional leading separator
+ extend = FORMAT_STR_USE_ENV_VAR.format_map({'name': name}) + os.pathsep
+ line = FORMAT_STR_SET_ENV_VAR.format_map(
+ {'name': name, 'value': extend + value})
+ if value not in env_state[name]:
+ env_state[name].add(value)
+ else:
+ if not _include_comments():
+ return []
+ line = FORMAT_STR_COMMENT_LINE.format_map({'comment': line})
+ return [line]
+
+
+def _prepend_unique_value(name, value):
+ global env_state
+ if name not in env_state:
+ if os.environ.get(name):
+ env_state[name] = set(os.environ[name].split(os.pathsep))
+ else:
+ env_state[name] = set()
+ # prepend even if the variable has not been set yet, in case a shell script sets the
+ # same variable without the knowledge of this Python script.
+ # later _remove_ending_separators() will cleanup any unintentional trailing separator
+ extend = os.pathsep + FORMAT_STR_USE_ENV_VAR.format_map({'name': name})
+ line = FORMAT_STR_SET_ENV_VAR.format_map(
+ {'name': name, 'value': value + extend})
+ if value not in env_state[name]:
+ env_state[name].add(value)
+ else:
+ if not _include_comments():
+ return []
+ line = FORMAT_STR_COMMENT_LINE.format_map({'comment': line})
+ return [line]
+
+
+# generate commands for removing prepended underscores
+def _remove_ending_separators():
+ # do nothing if the shell extension does not implement the logic
+ if FORMAT_STR_REMOVE_TRAILING_SEPARATOR is None:
+ return []
+
+ global env_state
+ commands = []
+ for name in env_state:
+ # skip variables that already had values before this script started prepending
+ if name in os.environ:
+ continue
+ commands += [
+ FORMAT_STR_REMOVE_LEADING_SEPARATOR.format_map({'name': name}),
+ FORMAT_STR_REMOVE_TRAILING_SEPARATOR.format_map({'name': name})]
+ return commands
+
+
+def _set(name, value):
+ global env_state
+ env_state[name] = value
+ line = FORMAT_STR_SET_ENV_VAR.format_map(
+ {'name': name, 'value': value})
+ return [line]
+
+
+def _set_if_unset(name, value):
+ global env_state
+ line = FORMAT_STR_SET_ENV_VAR.format_map(
+ {'name': name, 'value': value})
+ if env_state.get(name, os.environ.get(name)):
+ line = FORMAT_STR_COMMENT_LINE.format_map({'comment': line})
+ return [line]
+
+
+if __name__ == '__main__': # pragma: no cover
+ try:
+ rc = main()
+ except RuntimeError as e:
+ print(str(e), file=sys.stderr)
+ rc = 1
+ sys.exit(rc)
diff --git a/install/local_setup.bash b/install/local_setup.bash
new file mode 100644
index 0000000..efd5f8c
--- /dev/null
+++ b/install/local_setup.bash
@@ -0,0 +1,107 @@
+# generated from colcon_bash/shell/template/prefix.bash.em
+
+# This script extends the environment with all packages contained in this
+# prefix path.
+
+# a bash script is able to determine its own path if necessary
+if [ -z "$COLCON_CURRENT_PREFIX" ]; then
+ _colcon_prefix_bash_COLCON_CURRENT_PREFIX="$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)"
+else
+ _colcon_prefix_bash_COLCON_CURRENT_PREFIX="$COLCON_CURRENT_PREFIX"
+fi
+
+# function to prepend a value to a variable
+# which uses colons as separators
+# duplicates as well as trailing separators are avoided
+# first argument: the name of the result variable
+# second argument: the value to be prepended
+_colcon_prefix_bash_prepend_unique_value() {
+ # arguments
+ _listname="$1"
+ _value="$2"
+
+ # get values from variable
+ eval _values=\"\$$_listname\"
+ # backup the field separator
+ _colcon_prefix_bash_prepend_unique_value_IFS="$IFS"
+ IFS=":"
+ # start with the new value
+ _all_values="$_value"
+ # iterate over existing values in the variable
+ for _item in $_values; do
+ # ignore empty strings
+ if [ -z "$_item" ]; then
+ continue
+ fi
+ # ignore duplicates of _value
+ if [ "$_item" = "$_value" ]; then
+ continue
+ fi
+ # keep non-duplicate values
+ _all_values="$_all_values:$_item"
+ done
+ unset _item
+ # restore the field separator
+ IFS="$_colcon_prefix_bash_prepend_unique_value_IFS"
+ unset _colcon_prefix_bash_prepend_unique_value_IFS
+ # export the updated variable
+ eval export $_listname=\"$_all_values\"
+ unset _all_values
+ unset _values
+
+ unset _value
+ unset _listname
+}
+
+# add this prefix to the COLCON_PREFIX_PATH
+_colcon_prefix_bash_prepend_unique_value COLCON_PREFIX_PATH "$_colcon_prefix_bash_COLCON_CURRENT_PREFIX"
+unset _colcon_prefix_bash_prepend_unique_value
+
+# check environment variable for custom Python executable
+if [ -n "$COLCON_PYTHON_EXECUTABLE" ]; then
+ if [ ! -f "$COLCON_PYTHON_EXECUTABLE" ]; then
+ echo "error: COLCON_PYTHON_EXECUTABLE '$COLCON_PYTHON_EXECUTABLE' doesn't exist"
+ return 1
+ fi
+ _colcon_python_executable="$COLCON_PYTHON_EXECUTABLE"
+else
+ # try the Python executable known at configure time
+ _colcon_python_executable="/usr/bin/python3"
+ # if it doesn't exist try a fall back
+ if [ ! -f "$_colcon_python_executable" ]; then
+ if ! /usr/bin/env python3 --version > /dev/null 2> /dev/null; then
+ echo "error: unable to find python3 executable"
+ return 1
+ fi
+ _colcon_python_executable=`/usr/bin/env python3 -c "import sys; print(sys.executable)"`
+ fi
+fi
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+_colcon_prefix_sh_source_script() {
+ if [ -f "$1" ]; then
+ if [ -n "$COLCON_TRACE" ]; then
+ echo ". \"$1\""
+ fi
+ . "$1"
+ else
+ echo "not found: \"$1\"" 1>&2
+ fi
+}
+
+# get all commands in topological order
+_colcon_ordered_commands="$($_colcon_python_executable "$_colcon_prefix_bash_COLCON_CURRENT_PREFIX/_local_setup_util_sh.py" sh bash)"
+unset _colcon_python_executable
+if [ -n "$COLCON_TRACE" ]; then
+ echo "Execute generated script:"
+ echo "<<<"
+ echo "${_colcon_ordered_commands}"
+ echo ">>>"
+fi
+eval "${_colcon_ordered_commands}"
+unset _colcon_ordered_commands
+
+unset _colcon_prefix_sh_source_script
+
+unset _colcon_prefix_bash_COLCON_CURRENT_PREFIX
diff --git a/install/local_setup.ps1 b/install/local_setup.ps1
new file mode 100644
index 0000000..6f68c8d
--- /dev/null
+++ b/install/local_setup.ps1
@@ -0,0 +1,55 @@
+# generated from colcon_powershell/shell/template/prefix.ps1.em
+
+# This script extends the environment with all packages contained in this
+# prefix path.
+
+# check environment variable for custom Python executable
+if ($env:COLCON_PYTHON_EXECUTABLE) {
+ if (!(Test-Path "$env:COLCON_PYTHON_EXECUTABLE" -PathType Leaf)) {
+ echo "error: COLCON_PYTHON_EXECUTABLE '$env:COLCON_PYTHON_EXECUTABLE' doesn't exist"
+ exit 1
+ }
+ $_colcon_python_executable="$env:COLCON_PYTHON_EXECUTABLE"
+} else {
+ # use the Python executable known at configure time
+ $_colcon_python_executable="/usr/bin/python3"
+ # if it doesn't exist try a fall back
+ if (!(Test-Path "$_colcon_python_executable" -PathType Leaf)) {
+ if (!(Get-Command "python3" -ErrorAction SilentlyContinue)) {
+ echo "error: unable to find python3 executable"
+ exit 1
+ }
+ $_colcon_python_executable="python3"
+ }
+}
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+function _colcon_prefix_powershell_source_script {
+ param (
+ $_colcon_prefix_powershell_source_script_param
+ )
+ # source script with conditional trace output
+ if (Test-Path $_colcon_prefix_powershell_source_script_param) {
+ if ($env:COLCON_TRACE) {
+ echo ". '$_colcon_prefix_powershell_source_script_param'"
+ }
+ . "$_colcon_prefix_powershell_source_script_param"
+ } else {
+ Write-Error "not found: '$_colcon_prefix_powershell_source_script_param'"
+ }
+}
+
+# get all commands in topological order
+$_colcon_ordered_commands = & "$_colcon_python_executable" "$(Split-Path $PSCommandPath -Parent)/_local_setup_util_ps1.py" ps1
+
+# execute all commands in topological order
+if ($env:COLCON_TRACE) {
+ echo "Execute generated script:"
+ echo "<<<"
+ $_colcon_ordered_commands.Split([Environment]::NewLine, [StringSplitOptions]::RemoveEmptyEntries) | Write-Output
+ echo ">>>"
+}
+if ($_colcon_ordered_commands) {
+ $_colcon_ordered_commands.Split([Environment]::NewLine, [StringSplitOptions]::RemoveEmptyEntries) | Invoke-Expression
+}
diff --git a/install/local_setup.sh b/install/local_setup.sh
new file mode 100644
index 0000000..0dde41c
--- /dev/null
+++ b/install/local_setup.sh
@@ -0,0 +1,137 @@
+# generated from colcon_core/shell/template/prefix.sh.em
+
+# This script extends the environment with all packages contained in this
+# prefix path.
+
+# since a plain shell script can't determine its own path when being sourced
+# either use the provided COLCON_CURRENT_PREFIX
+# or fall back to the build time prefix (if it exists)
+_colcon_prefix_sh_COLCON_CURRENT_PREFIX="/home/bjorn/Documents/ros_projects/rmp220_middleware/install"
+if [ -z "$COLCON_CURRENT_PREFIX" ]; then
+ if [ ! -d "$_colcon_prefix_sh_COLCON_CURRENT_PREFIX" ]; then
+ echo "The build time path \"$_colcon_prefix_sh_COLCON_CURRENT_PREFIX\" doesn't exist. Either source a script for a different shell or set the environment variable \"COLCON_CURRENT_PREFIX\" explicitly." 1>&2
+ unset _colcon_prefix_sh_COLCON_CURRENT_PREFIX
+ return 1
+ fi
+else
+ _colcon_prefix_sh_COLCON_CURRENT_PREFIX="$COLCON_CURRENT_PREFIX"
+fi
+
+# function to prepend a value to a variable
+# which uses colons as separators
+# duplicates as well as trailing separators are avoided
+# first argument: the name of the result variable
+# second argument: the value to be prepended
+_colcon_prefix_sh_prepend_unique_value() {
+ # arguments
+ _listname="$1"
+ _value="$2"
+
+ # get values from variable
+ eval _values=\"\$$_listname\"
+ # backup the field separator
+ _colcon_prefix_sh_prepend_unique_value_IFS="$IFS"
+ IFS=":"
+ # start with the new value
+ _all_values="$_value"
+ _contained_value=""
+ # iterate over existing values in the variable
+ for _item in $_values; do
+ # ignore empty strings
+ if [ -z "$_item" ]; then
+ continue
+ fi
+ # ignore duplicates of _value
+ if [ "$_item" = "$_value" ]; then
+ _contained_value=1
+ continue
+ fi
+ # keep non-duplicate values
+ _all_values="$_all_values:$_item"
+ done
+ unset _item
+ if [ -z "$_contained_value" ]; then
+ if [ -n "$COLCON_TRACE" ]; then
+ if [ "$_all_values" = "$_value" ]; then
+ echo "export $_listname=$_value"
+ else
+ echo "export $_listname=$_value:\$$_listname"
+ fi
+ fi
+ fi
+ unset _contained_value
+ # restore the field separator
+ IFS="$_colcon_prefix_sh_prepend_unique_value_IFS"
+ unset _colcon_prefix_sh_prepend_unique_value_IFS
+ # export the updated variable
+ eval export $_listname=\"$_all_values\"
+ unset _all_values
+ unset _values
+
+ unset _value
+ unset _listname
+}
+
+# add this prefix to the COLCON_PREFIX_PATH
+_colcon_prefix_sh_prepend_unique_value COLCON_PREFIX_PATH "$_colcon_prefix_sh_COLCON_CURRENT_PREFIX"
+unset _colcon_prefix_sh_prepend_unique_value
+
+# check environment variable for custom Python executable
+if [ -n "$COLCON_PYTHON_EXECUTABLE" ]; then
+ if [ ! -f "$COLCON_PYTHON_EXECUTABLE" ]; then
+ echo "error: COLCON_PYTHON_EXECUTABLE '$COLCON_PYTHON_EXECUTABLE' doesn't exist"
+ return 1
+ fi
+ _colcon_python_executable="$COLCON_PYTHON_EXECUTABLE"
+else
+ # try the Python executable known at configure time
+ _colcon_python_executable="/usr/bin/python3"
+ # if it doesn't exist try a fall back
+ if [ ! -f "$_colcon_python_executable" ]; then
+ if ! /usr/bin/env python3 --version > /dev/null 2> /dev/null; then
+ echo "error: unable to find python3 executable"
+ return 1
+ fi
+ _colcon_python_executable=`/usr/bin/env python3 -c "import sys; print(sys.executable)"`
+ fi
+fi
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+_colcon_prefix_sh_source_script() {
+ if [ -f "$1" ]; then
+ if [ -n "$COLCON_TRACE" ]; then
+ echo "# . \"$1\""
+ fi
+ . "$1"
+ else
+ echo "not found: \"$1\"" 1>&2
+ fi
+}
+
+# get all commands in topological order
+_colcon_ordered_commands="$($_colcon_python_executable "$_colcon_prefix_sh_COLCON_CURRENT_PREFIX/_local_setup_util_sh.py" sh)"
+unset _colcon_python_executable
+if [ -n "$COLCON_TRACE" ]; then
+ echo "_colcon_prefix_sh_source_script() {
+ if [ -f \"\$1\" ]; then
+ if [ -n \"\$COLCON_TRACE\" ]; then
+ echo \"# . \\\"\$1\\\"\"
+ fi
+ . \"\$1\"
+ else
+ echo \"not found: \\\"\$1\\\"\" 1>&2
+ fi
+ }"
+ echo "# Execute generated script:"
+ echo "# <<<"
+ echo "${_colcon_ordered_commands}"
+ echo "# >>>"
+ echo "unset _colcon_prefix_sh_source_script"
+fi
+eval "${_colcon_ordered_commands}"
+unset _colcon_ordered_commands
+
+unset _colcon_prefix_sh_source_script
+
+unset _colcon_prefix_sh_COLCON_CURRENT_PREFIX
diff --git a/install/local_setup.zsh b/install/local_setup.zsh
new file mode 100644
index 0000000..f7a8d90
--- /dev/null
+++ b/install/local_setup.zsh
@@ -0,0 +1,120 @@
+# generated from colcon_zsh/shell/template/prefix.zsh.em
+
+# This script extends the environment with all packages contained in this
+# prefix path.
+
+# a zsh script is able to determine its own path if necessary
+if [ -z "$COLCON_CURRENT_PREFIX" ]; then
+ _colcon_prefix_zsh_COLCON_CURRENT_PREFIX="$(builtin cd -q "`dirname "${(%):-%N}"`" > /dev/null && pwd)"
+else
+ _colcon_prefix_zsh_COLCON_CURRENT_PREFIX="$COLCON_CURRENT_PREFIX"
+fi
+
+# function to convert array-like strings into arrays
+# to workaround SH_WORD_SPLIT not being set
+_colcon_prefix_zsh_convert_to_array() {
+ local _listname=$1
+ local _dollar="$"
+ local _split="{="
+ local _to_array="(\"$_dollar$_split$_listname}\")"
+ eval $_listname=$_to_array
+}
+
+# function to prepend a value to a variable
+# which uses colons as separators
+# duplicates as well as trailing separators are avoided
+# first argument: the name of the result variable
+# second argument: the value to be prepended
+_colcon_prefix_zsh_prepend_unique_value() {
+ # arguments
+ _listname="$1"
+ _value="$2"
+
+ # get values from variable
+ eval _values=\"\$$_listname\"
+ # backup the field separator
+ _colcon_prefix_zsh_prepend_unique_value_IFS="$IFS"
+ IFS=":"
+ # start with the new value
+ _all_values="$_value"
+ # workaround SH_WORD_SPLIT not being set
+ _colcon_prefix_zsh_convert_to_array _values
+ # iterate over existing values in the variable
+ for _item in $_values; do
+ # ignore empty strings
+ if [ -z "$_item" ]; then
+ continue
+ fi
+ # ignore duplicates of _value
+ if [ "$_item" = "$_value" ]; then
+ continue
+ fi
+ # keep non-duplicate values
+ _all_values="$_all_values:$_item"
+ done
+ unset _item
+ # restore the field separator
+ IFS="$_colcon_prefix_zsh_prepend_unique_value_IFS"
+ unset _colcon_prefix_zsh_prepend_unique_value_IFS
+ # export the updated variable
+ eval export $_listname=\"$_all_values\"
+ unset _all_values
+ unset _values
+
+ unset _value
+ unset _listname
+}
+
+# add this prefix to the COLCON_PREFIX_PATH
+_colcon_prefix_zsh_prepend_unique_value COLCON_PREFIX_PATH "$_colcon_prefix_zsh_COLCON_CURRENT_PREFIX"
+unset _colcon_prefix_zsh_prepend_unique_value
+unset _colcon_prefix_zsh_convert_to_array
+
+# check environment variable for custom Python executable
+if [ -n "$COLCON_PYTHON_EXECUTABLE" ]; then
+ if [ ! -f "$COLCON_PYTHON_EXECUTABLE" ]; then
+ echo "error: COLCON_PYTHON_EXECUTABLE '$COLCON_PYTHON_EXECUTABLE' doesn't exist"
+ return 1
+ fi
+ _colcon_python_executable="$COLCON_PYTHON_EXECUTABLE"
+else
+ # try the Python executable known at configure time
+ _colcon_python_executable="/usr/bin/python3"
+ # if it doesn't exist try a fall back
+ if [ ! -f "$_colcon_python_executable" ]; then
+ if ! /usr/bin/env python3 --version > /dev/null 2> /dev/null; then
+ echo "error: unable to find python3 executable"
+ return 1
+ fi
+ _colcon_python_executable=`/usr/bin/env python3 -c "import sys; print(sys.executable)"`
+ fi
+fi
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+_colcon_prefix_sh_source_script() {
+ if [ -f "$1" ]; then
+ if [ -n "$COLCON_TRACE" ]; then
+ echo ". \"$1\""
+ fi
+ . "$1"
+ else
+ echo "not found: \"$1\"" 1>&2
+ fi
+}
+
+# get all commands in topological order
+_colcon_ordered_commands="$($_colcon_python_executable "$_colcon_prefix_zsh_COLCON_CURRENT_PREFIX/_local_setup_util_sh.py" sh zsh)"
+unset _colcon_python_executable
+if [ -n "$COLCON_TRACE" ]; then
+ echo "Execute generated script:"
+ echo "<<<"
+ echo "${_colcon_ordered_commands}"
+ echo ">>>"
+fi
+eval "${_colcon_ordered_commands}"
+unset _colcon_ordered_commands
+
+unset _colcon_prefix_sh_source_script
+
+unset _colcon_prefix_zsh_COLCON_CURRENT_PREFIX
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/PKG-INFO b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/PKG-INFO
new file mode 100644
index 0000000..9d00f97
--- /dev/null
+++ b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/PKG-INFO
@@ -0,0 +1,12 @@
+Metadata-Version: 2.1
+Name: rmp220-middleware
+Version: 0.0.0
+Summary: TODO: Package description
+Home-page: UNKNOWN
+Maintainer: bjorn
+Maintainer-email: bjoern.ellensohn@gmail.com
+License: TODO: License declaration
+Platform: UNKNOWN
+
+UNKNOWN
+
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/SOURCES.txt b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/SOURCES.txt
new file mode 100644
index 0000000..5d04694
--- /dev/null
+++ b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/SOURCES.txt
@@ -0,0 +1,16 @@
+package.xml
+setup.cfg
+setup.py
+build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO
+build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt
+build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt
+build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt
+build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt
+build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt
+build/rmp220_middleware/rmp220_middleware.egg-info/zip-safe
+resource/rmp220_middleware
+rmp220_middleware/rmp220_middleware.c
+rmp220_middleware/rmp220_middleware.py
+test/test_copyright.py
+test/test_flake8.py
+test/test_pep257.py
\ No newline at end of file
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/dependency_links.txt b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/entry_points.txt b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/entry_points.txt
new file mode 100644
index 0000000..aa75c7b
--- /dev/null
+++ b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/entry_points.txt
@@ -0,0 +1,3 @@
+[console_scripts]
+rmp220_middleware = rmp220_middleware.rmp220_middleware:main
+
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/requires.txt b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/requires.txt
new file mode 100644
index 0000000..05e8e65
--- /dev/null
+++ b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/requires.txt
@@ -0,0 +1,3 @@
+setuptools
+wheel
+Cython
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/top_level.txt b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/top_level.txt
new file mode 100644
index 0000000..35d8524
--- /dev/null
+++ b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/top_level.txt
@@ -0,0 +1 @@
+rmp220_middleware
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/zip-safe b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/zip-safe
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info/zip-safe
@@ -0,0 +1 @@
+
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware.cpython-310-x86_64-linux-gnu.so b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware.cpython-310-x86_64-linux-gnu.so
new file mode 100755
index 0000000..39892ea
Binary files /dev/null and b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware.cpython-310-x86_64-linux-gnu.so differ
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__init__.py b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__pycache__/__init__.cpython-310.pyc b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__pycache__/__init__.cpython-310.pyc
new file mode 100644
index 0000000..ed2761d
Binary files /dev/null and b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__pycache__/__init__.cpython-310.pyc differ
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__pycache__/rmp220_middleware.bak.cpython-310.pyc b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__pycache__/rmp220_middleware.bak.cpython-310.pyc
new file mode 100644
index 0000000..0c480a5
Binary files /dev/null and b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__pycache__/rmp220_middleware.bak.cpython-310.pyc differ
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__pycache__/rmp220_middleware.cpython-310.pyc b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__pycache__/rmp220_middleware.cpython-310.pyc
new file mode 100644
index 0000000..143d47c
Binary files /dev/null and b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__pycache__/rmp220_middleware.cpython-310.pyc differ
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.bak.py b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.bak.py
new file mode 100644
index 0000000..fff87c5
--- /dev/null
+++ b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.bak.py
@@ -0,0 +1,107 @@
+#!/usr/bin/env python3
+
+import rclpy
+from rclpy.node import Node
+from std_msgs.msg import Bool
+from geometry_msgs.msg import Twist
+from sensor_msgs.msg import Joy
+from enum import Enum
+from segway_msgs.srv import RosSetChassisEnableCmd
+
+
+import atexit
+import signal
+import sys
+
+class State(Enum):
+ DISABLED = 0
+ ENABLED = 1
+
+class StateMachineNode(Node):
+ def __init__(self):
+ super().__init__('state_machine_node')
+
+ # Initialize state and other variables
+ self.state = State.DISABLED
+ self.timeout = 20.0 # Timeout in seconds
+ #self.limit = 0.5 # Limit for linear and angular velocity
+
+ # Create publishers, subscribers, timers, and service clients
+ self.cmd_vel_pub = self.create_publisher(Twist, '/cmd_vel_out', 10)
+ self.cmd_vel_sub = self.create_subscription(Twist, '/cmd_vel_mux', self.cmd_vel_callback, 10)
+ self.joy_sub = self.create_subscription(Joy, '/joy', self.joy_callback, 10)
+ self.timer = self.create_timer(0.01, self.timer_callback)
+
+ # Create twist class for publishing velocities
+ self.twist = Twist()
+
+ self.latest_cmd_vel = Twist()
+
+ # Create service clients for chassis enable and disable
+ self.chassis_enable_client = self.create_client(RosSetChassisEnableCmd, 'set_chassis_enable')
+ while not self.chassis_enable_client.wait_for_service(timeout_sec=1.0):
+ self.get_logger().info('Service not available, waiting for chassis enable service...')
+ self.get_logger().info('Chassis enable service available.')
+
+ def enable_chassis(self):
+ req = RosSetChassisEnableCmd.Request()
+ req.ros_set_chassis_enable_cmd = True
+ self.chassis_enable_client.call_async(req)
+ self.get_logger().info('Enabling chassis...')
+
+ def disable_chassis(self):
+ req = RosSetChassisEnableCmd.Request()
+ req.ros_set_chassis_enable_cmd = False
+ self.chassis_enable_client.call_async(req)
+ self.get_logger().info('Disabling chassis...')
+
+ def joy_callback(self, msg):
+ start_button = msg.buttons[7] # Joystick button 'start'
+ select_button = msg.buttons[6] # Joystick button 'select'
+
+ if start_button == 1:
+ self.state = State.ENABLED
+ self.get_logger().info("State: ENABLED (Button 'start')")
+ self.enable_chassis()
+ elif select_button == 1:
+ self.state = State.DISABLED
+ self.get_logger().info("State: DISABLED (Button 'select')")
+ self.disable_chassis()
+
+ def cmd_vel_callback(self, msg):
+ # This method shall only update the latest_cmd_vel attribute so it can be republished by the timer_callback with 100 HZ. Should have a look at performance though.
+ self.latest_cmd_vel = msg
+ self.linear_abs = abs(self.latest_cmd_vel.linear)
+ self.angular_abs = abs(self.latest_cmd_vel.angular)
+ self.timeout = 20.0 # Reset timeout when receiving commands
+
+ def timer_callback(self):
+ if self.state == State.ENABLED:
+ if self.timeout <= 0:
+ self.state = State.DISABLED
+ self.get_logger().info("State: DISABLED (Timeout)")
+ self.disable_chassis()
+ else:
+ self.timeout -= 0.01
+ self.cmd_vel_pub.publish(self.latest_cmd_vel)
+ if self.state == State.DISABLED and (self.linear_abs > 0.1 or self.angular_abs > 0.1): # This is a hack to enable the chassis when receiving commands e.g. from Nav2
+ self.state = State.ENABLED
+ self.get_logger().info("State: ENABLED (cmd_vel)")
+ self.enable_chassis()
+ else:
+ self.cmd_vel_pub.publish(self.twist)
+
+def main(args=None):
+ rclpy.init(args=args)
+ node = StateMachineNode()
+ try:
+ rclpy.spin(node)
+ except KeyboardInterrupt:
+ pass
+ finally:
+ node.disable_chassis()
+ node.destroy_node()
+ rclpy.shutdown()
+
+if __name__ == '__main__':
+ main()
diff --git a/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py
new file mode 100644
index 0000000..854f071
--- /dev/null
+++ b/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py
@@ -0,0 +1,19 @@
+# main.py
+
+import rclpy
+from rmp220_middleware import StateMachineNode
+
+def main(args=None):
+ rclpy.init(args=args)
+ node = StateMachineNode()
+ try:
+ rclpy.spin(node)
+ except KeyboardInterrupt:
+ pass
+ finally:
+ node.disable_chassis()
+ node.destroy_node()
+ rclpy.shutdown()
+
+if __name__ == '__main__':
+ main()
diff --git a/install/rmp220_middleware/lib/rmp220_middleware/rmp220_middleware b/install/rmp220_middleware/lib/rmp220_middleware/rmp220_middleware
new file mode 100755
index 0000000..c437e70
--- /dev/null
+++ b/install/rmp220_middleware/lib/rmp220_middleware/rmp220_middleware
@@ -0,0 +1,33 @@
+#!/usr/bin/python3
+# EASY-INSTALL-ENTRY-SCRIPT: 'rmp220-middleware==0.0.0','console_scripts','rmp220_middleware'
+import re
+import sys
+
+# for compatibility with easy_install; see #2198
+__requires__ = 'rmp220-middleware==0.0.0'
+
+try:
+ from importlib.metadata import distribution
+except ImportError:
+ try:
+ from importlib_metadata import distribution
+ except ImportError:
+ from pkg_resources import load_entry_point
+
+
+def importlib_load_entry_point(spec, group, name):
+ dist_name, _, _ = spec.partition('==')
+ matches = (
+ entry_point
+ for entry_point in distribution(dist_name).entry_points
+ if entry_point.group == group and entry_point.name == name
+ )
+ return next(matches).load()
+
+
+globals().setdefault('load_entry_point', importlib_load_entry_point)
+
+
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
+ sys.exit(load_entry_point('rmp220-middleware==0.0.0', 'console_scripts', 'rmp220_middleware')())
diff --git a/install/rmp220_middleware/share/ament_index/resource_index/packages/rmp220_middleware b/install/rmp220_middleware/share/ament_index/resource_index/packages/rmp220_middleware
new file mode 100644
index 0000000..e69de29
diff --git a/install/rmp220_middleware/share/colcon-core/packages/rmp220_middleware b/install/rmp220_middleware/share/colcon-core/packages/rmp220_middleware
new file mode 100644
index 0000000..e69de29
diff --git a/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.dsv b/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.dsv
new file mode 100644
index 0000000..79d4c95
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.dsv
@@ -0,0 +1 @@
+prepend-non-duplicate;AMENT_PREFIX_PATH;
diff --git a/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.ps1 b/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.ps1
new file mode 100644
index 0000000..26b9997
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.ps1
@@ -0,0 +1,3 @@
+# generated from colcon_powershell/shell/template/hook_prepend_value.ps1.em
+
+colcon_prepend_unique_value AMENT_PREFIX_PATH "$env:COLCON_CURRENT_PREFIX"
diff --git a/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.sh b/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.sh
new file mode 100644
index 0000000..f3041f6
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.sh
@@ -0,0 +1,3 @@
+# generated from colcon_core/shell/template/hook_prepend_value.sh.em
+
+_colcon_prepend_unique_value AMENT_PREFIX_PATH "$COLCON_CURRENT_PREFIX"
diff --git a/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.dsv b/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.dsv
new file mode 100644
index 0000000..257067d
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.dsv
@@ -0,0 +1 @@
+prepend-non-duplicate;PYTHONPATH;lib/python3.10/site-packages
diff --git a/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.ps1 b/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.ps1
new file mode 100644
index 0000000..caffe83
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.ps1
@@ -0,0 +1,3 @@
+# generated from colcon_powershell/shell/template/hook_prepend_value.ps1.em
+
+colcon_prepend_unique_value PYTHONPATH "$env:COLCON_CURRENT_PREFIX\lib/python3.10/site-packages"
diff --git a/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.sh b/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.sh
new file mode 100644
index 0000000..660c348
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.sh
@@ -0,0 +1,3 @@
+# generated from colcon_core/shell/template/hook_prepend_value.sh.em
+
+_colcon_prepend_unique_value PYTHONPATH "$COLCON_CURRENT_PREFIX/lib/python3.10/site-packages"
diff --git a/install/rmp220_middleware/share/rmp220_middleware/package.bash b/install/rmp220_middleware/share/rmp220_middleware/package.bash
new file mode 100644
index 0000000..8baa858
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/package.bash
@@ -0,0 +1,31 @@
+# generated from colcon_bash/shell/template/package.bash.em
+
+# This script extends the environment for this package.
+
+# a bash script is able to determine its own path if necessary
+if [ -z "$COLCON_CURRENT_PREFIX" ]; then
+ # the prefix is two levels up from the package specific share directory
+ _colcon_package_bash_COLCON_CURRENT_PREFIX="$(builtin cd "`dirname "${BASH_SOURCE[0]}"`/../.." > /dev/null && pwd)"
+else
+ _colcon_package_bash_COLCON_CURRENT_PREFIX="$COLCON_CURRENT_PREFIX"
+fi
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+# additional arguments: arguments to the script
+_colcon_package_bash_source_script() {
+ if [ -f "$1" ]; then
+ if [ -n "$COLCON_TRACE" ]; then
+ echo ". \"$1\""
+ fi
+ . "$@"
+ else
+ echo "not found: \"$1\"" 1>&2
+ fi
+}
+
+# source sh script of this package
+_colcon_package_bash_source_script "$_colcon_package_bash_COLCON_CURRENT_PREFIX/share/rmp220_middleware/package.sh"
+
+unset _colcon_package_bash_source_script
+unset _colcon_package_bash_COLCON_CURRENT_PREFIX
diff --git a/install/rmp220_middleware/share/rmp220_middleware/package.dsv b/install/rmp220_middleware/share/rmp220_middleware/package.dsv
new file mode 100644
index 0000000..b5bba22
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/package.dsv
@@ -0,0 +1,6 @@
+source;share/rmp220_middleware/hook/pythonpath.ps1
+source;share/rmp220_middleware/hook/pythonpath.dsv
+source;share/rmp220_middleware/hook/pythonpath.sh
+source;share/rmp220_middleware/hook/ament_prefix_path.ps1
+source;share/rmp220_middleware/hook/ament_prefix_path.dsv
+source;share/rmp220_middleware/hook/ament_prefix_path.sh
diff --git a/install/rmp220_middleware/share/rmp220_middleware/package.ps1 b/install/rmp220_middleware/share/rmp220_middleware/package.ps1
new file mode 100644
index 0000000..448ea59
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/package.ps1
@@ -0,0 +1,116 @@
+# generated from colcon_powershell/shell/template/package.ps1.em
+
+# function to append a value to a variable
+# which uses colons as separators
+# duplicates as well as leading separators are avoided
+# first argument: the name of the result variable
+# second argument: the value to be prepended
+function colcon_append_unique_value {
+ param (
+ $_listname,
+ $_value
+ )
+
+ # get values from variable
+ if (Test-Path Env:$_listname) {
+ $_values=(Get-Item env:$_listname).Value
+ } else {
+ $_values=""
+ }
+ $_duplicate=""
+ # start with no values
+ $_all_values=""
+ # iterate over existing values in the variable
+ if ($_values) {
+ $_values.Split(";") | ForEach {
+ # not an empty string
+ if ($_) {
+ # not a duplicate of _value
+ if ($_ -eq $_value) {
+ $_duplicate="1"
+ }
+ if ($_all_values) {
+ $_all_values="${_all_values};$_"
+ } else {
+ $_all_values="$_"
+ }
+ }
+ }
+ }
+ # append only non-duplicates
+ if (!$_duplicate) {
+ # avoid leading separator
+ if ($_all_values) {
+ $_all_values="${_all_values};${_value}"
+ } else {
+ $_all_values="${_value}"
+ }
+ }
+
+ # export the updated variable
+ Set-Item env:\$_listname -Value "$_all_values"
+}
+
+# function to prepend a value to a variable
+# which uses colons as separators
+# duplicates as well as trailing separators are avoided
+# first argument: the name of the result variable
+# second argument: the value to be prepended
+function colcon_prepend_unique_value {
+ param (
+ $_listname,
+ $_value
+ )
+
+ # get values from variable
+ if (Test-Path Env:$_listname) {
+ $_values=(Get-Item env:$_listname).Value
+ } else {
+ $_values=""
+ }
+ # start with the new value
+ $_all_values="$_value"
+ # iterate over existing values in the variable
+ if ($_values) {
+ $_values.Split(";") | ForEach {
+ # not an empty string
+ if ($_) {
+ # not a duplicate of _value
+ if ($_ -ne $_value) {
+ # keep non-duplicate values
+ $_all_values="${_all_values};$_"
+ }
+ }
+ }
+ }
+ # export the updated variable
+ Set-Item env:\$_listname -Value "$_all_values"
+}
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+# additional arguments: arguments to the script
+function colcon_package_source_powershell_script {
+ param (
+ $_colcon_package_source_powershell_script
+ )
+ # source script with conditional trace output
+ if (Test-Path $_colcon_package_source_powershell_script) {
+ if ($env:COLCON_TRACE) {
+ echo ". '$_colcon_package_source_powershell_script'"
+ }
+ . "$_colcon_package_source_powershell_script"
+ } else {
+ Write-Error "not found: '$_colcon_package_source_powershell_script'"
+ }
+}
+
+
+# a powershell script is able to determine its own path
+# the prefix is two levels up from the package specific share directory
+$env:COLCON_CURRENT_PREFIX=(Get-Item $PSCommandPath).Directory.Parent.Parent.FullName
+
+colcon_package_source_powershell_script "$env:COLCON_CURRENT_PREFIX\share/rmp220_middleware/hook/pythonpath.ps1"
+colcon_package_source_powershell_script "$env:COLCON_CURRENT_PREFIX\share/rmp220_middleware/hook/ament_prefix_path.ps1"
+
+Remove-Item Env:\COLCON_CURRENT_PREFIX
diff --git a/install/rmp220_middleware/share/rmp220_middleware/package.sh b/install/rmp220_middleware/share/rmp220_middleware/package.sh
new file mode 100644
index 0000000..535338d
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/package.sh
@@ -0,0 +1,87 @@
+# generated from colcon_core/shell/template/package.sh.em
+
+# This script extends the environment for this package.
+
+# function to prepend a value to a variable
+# which uses colons as separators
+# duplicates as well as trailing separators are avoided
+# first argument: the name of the result variable
+# second argument: the value to be prepended
+_colcon_prepend_unique_value() {
+ # arguments
+ _listname="$1"
+ _value="$2"
+
+ # get values from variable
+ eval _values=\"\$$_listname\"
+ # backup the field separator
+ _colcon_prepend_unique_value_IFS=$IFS
+ IFS=":"
+ # start with the new value
+ _all_values="$_value"
+ # workaround SH_WORD_SPLIT not being set in zsh
+ if [ "$(command -v colcon_zsh_convert_to_array)" ]; then
+ colcon_zsh_convert_to_array _values
+ fi
+ # iterate over existing values in the variable
+ for _item in $_values; do
+ # ignore empty strings
+ if [ -z "$_item" ]; then
+ continue
+ fi
+ # ignore duplicates of _value
+ if [ "$_item" = "$_value" ]; then
+ continue
+ fi
+ # keep non-duplicate values
+ _all_values="$_all_values:$_item"
+ done
+ unset _item
+ # restore the field separator
+ IFS=$_colcon_prepend_unique_value_IFS
+ unset _colcon_prepend_unique_value_IFS
+ # export the updated variable
+ eval export $_listname=\"$_all_values\"
+ unset _all_values
+ unset _values
+
+ unset _value
+ unset _listname
+}
+
+# since a plain shell script can't determine its own path when being sourced
+# either use the provided COLCON_CURRENT_PREFIX
+# or fall back to the build time prefix (if it exists)
+_colcon_package_sh_COLCON_CURRENT_PREFIX="/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware"
+if [ -z "$COLCON_CURRENT_PREFIX" ]; then
+ if [ ! -d "$_colcon_package_sh_COLCON_CURRENT_PREFIX" ]; then
+ echo "The build time path \"$_colcon_package_sh_COLCON_CURRENT_PREFIX\" doesn't exist. Either source a script for a different shell or set the environment variable \"COLCON_CURRENT_PREFIX\" explicitly." 1>&2
+ unset _colcon_package_sh_COLCON_CURRENT_PREFIX
+ return 1
+ fi
+ COLCON_CURRENT_PREFIX="$_colcon_package_sh_COLCON_CURRENT_PREFIX"
+fi
+unset _colcon_package_sh_COLCON_CURRENT_PREFIX
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+# additional arguments: arguments to the script
+_colcon_package_sh_source_script() {
+ if [ -f "$1" ]; then
+ if [ -n "$COLCON_TRACE" ]; then
+ echo "# . \"$1\""
+ fi
+ . "$@"
+ else
+ echo "not found: \"$1\"" 1>&2
+ fi
+}
+
+# source sh hooks
+_colcon_package_sh_source_script "$COLCON_CURRENT_PREFIX/share/rmp220_middleware/hook/pythonpath.sh"
+_colcon_package_sh_source_script "$COLCON_CURRENT_PREFIX/share/rmp220_middleware/hook/ament_prefix_path.sh"
+
+unset _colcon_package_sh_source_script
+unset COLCON_CURRENT_PREFIX
+
+# do not unset _colcon_prepend_unique_value since it might be used by non-primary shell hooks
diff --git a/install/rmp220_middleware/share/rmp220_middleware/package.xml b/install/rmp220_middleware/share/rmp220_middleware/package.xml
new file mode 100644
index 0000000..cb21106
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/package.xml
@@ -0,0 +1,18 @@
+
+
+
+ rmp220_middleware
+ 0.0.0
+ TODO: Package description
+ bjorn
+ TODO: License declaration
+
+ ament_copyright
+ ament_flake8
+ ament_pep257
+ python3-pytest
+
+
+ ament_python
+
+
diff --git a/install/rmp220_middleware/share/rmp220_middleware/package.zsh b/install/rmp220_middleware/share/rmp220_middleware/package.zsh
new file mode 100644
index 0000000..16e1bc6
--- /dev/null
+++ b/install/rmp220_middleware/share/rmp220_middleware/package.zsh
@@ -0,0 +1,42 @@
+# generated from colcon_zsh/shell/template/package.zsh.em
+
+# This script extends the environment for this package.
+
+# a zsh script is able to determine its own path if necessary
+if [ -z "$COLCON_CURRENT_PREFIX" ]; then
+ # the prefix is two levels up from the package specific share directory
+ _colcon_package_zsh_COLCON_CURRENT_PREFIX="$(builtin cd -q "`dirname "${(%):-%N}"`/../.." > /dev/null && pwd)"
+else
+ _colcon_package_zsh_COLCON_CURRENT_PREFIX="$COLCON_CURRENT_PREFIX"
+fi
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+# additional arguments: arguments to the script
+_colcon_package_zsh_source_script() {
+ if [ -f "$1" ]; then
+ if [ -n "$COLCON_TRACE" ]; then
+ echo ". \"$1\""
+ fi
+ . "$@"
+ else
+ echo "not found: \"$1\"" 1>&2
+ fi
+}
+
+# function to convert array-like strings into arrays
+# to workaround SH_WORD_SPLIT not being set
+colcon_zsh_convert_to_array() {
+ local _listname=$1
+ local _dollar="$"
+ local _split="{="
+ local _to_array="(\"$_dollar$_split$_listname}\")"
+ eval $_listname=$_to_array
+}
+
+# source sh script of this package
+_colcon_package_zsh_source_script "$_colcon_package_zsh_COLCON_CURRENT_PREFIX/share/rmp220_middleware/package.sh"
+unset convert_zsh_to_array
+
+unset _colcon_package_zsh_source_script
+unset _colcon_package_zsh_COLCON_CURRENT_PREFIX
diff --git a/install/setup.bash b/install/setup.bash
new file mode 100644
index 0000000..4c55244
--- /dev/null
+++ b/install/setup.bash
@@ -0,0 +1,31 @@
+# generated from colcon_bash/shell/template/prefix_chain.bash.em
+
+# This script extends the environment with the environment of other prefix
+# paths which were sourced when this file was generated as well as all packages
+# contained in this prefix path.
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+_colcon_prefix_chain_bash_source_script() {
+ if [ -f "$1" ]; then
+ if [ -n "$COLCON_TRACE" ]; then
+ echo ". \"$1\""
+ fi
+ . "$1"
+ else
+ echo "not found: \"$1\"" 1>&2
+ fi
+}
+
+# source chained prefixes
+# setting COLCON_CURRENT_PREFIX avoids determining the prefix in the sourced script
+COLCON_CURRENT_PREFIX="/opt/ros/humble"
+_colcon_prefix_chain_bash_source_script "$COLCON_CURRENT_PREFIX/local_setup.bash"
+
+# source this prefix
+# setting COLCON_CURRENT_PREFIX avoids determining the prefix in the sourced script
+COLCON_CURRENT_PREFIX="$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)"
+_colcon_prefix_chain_bash_source_script "$COLCON_CURRENT_PREFIX/local_setup.bash"
+
+unset COLCON_CURRENT_PREFIX
+unset _colcon_prefix_chain_bash_source_script
diff --git a/install/setup.ps1 b/install/setup.ps1
new file mode 100644
index 0000000..558e9b9
--- /dev/null
+++ b/install/setup.ps1
@@ -0,0 +1,29 @@
+# generated from colcon_powershell/shell/template/prefix_chain.ps1.em
+
+# This script extends the environment with the environment of other prefix
+# paths which were sourced when this file was generated as well as all packages
+# contained in this prefix path.
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+function _colcon_prefix_chain_powershell_source_script {
+ param (
+ $_colcon_prefix_chain_powershell_source_script_param
+ )
+ # source script with conditional trace output
+ if (Test-Path $_colcon_prefix_chain_powershell_source_script_param) {
+ if ($env:COLCON_TRACE) {
+ echo ". '$_colcon_prefix_chain_powershell_source_script_param'"
+ }
+ . "$_colcon_prefix_chain_powershell_source_script_param"
+ } else {
+ Write-Error "not found: '$_colcon_prefix_chain_powershell_source_script_param'"
+ }
+}
+
+# source chained prefixes
+_colcon_prefix_chain_powershell_source_script "/opt/ros/humble\local_setup.ps1"
+
+# source this prefix
+$env:COLCON_CURRENT_PREFIX=(Split-Path $PSCommandPath -Parent)
+_colcon_prefix_chain_powershell_source_script "$env:COLCON_CURRENT_PREFIX\local_setup.ps1"
diff --git a/install/setup.sh b/install/setup.sh
new file mode 100644
index 0000000..f4ccb41
--- /dev/null
+++ b/install/setup.sh
@@ -0,0 +1,45 @@
+# generated from colcon_core/shell/template/prefix_chain.sh.em
+
+# This script extends the environment with the environment of other prefix
+# paths which were sourced when this file was generated as well as all packages
+# contained in this prefix path.
+
+# since a plain shell script can't determine its own path when being sourced
+# either use the provided COLCON_CURRENT_PREFIX
+# or fall back to the build time prefix (if it exists)
+_colcon_prefix_chain_sh_COLCON_CURRENT_PREFIX=/home/bjorn/Documents/ros_projects/rmp220_middleware/install
+if [ ! -z "$COLCON_CURRENT_PREFIX" ]; then
+ _colcon_prefix_chain_sh_COLCON_CURRENT_PREFIX="$COLCON_CURRENT_PREFIX"
+elif [ ! -d "$_colcon_prefix_chain_sh_COLCON_CURRENT_PREFIX" ]; then
+ echo "The build time path \"$_colcon_prefix_chain_sh_COLCON_CURRENT_PREFIX\" doesn't exist. Either source a script for a different shell or set the environment variable \"COLCON_CURRENT_PREFIX\" explicitly." 1>&2
+ unset _colcon_prefix_chain_sh_COLCON_CURRENT_PREFIX
+ return 1
+fi
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+_colcon_prefix_chain_sh_source_script() {
+ if [ -f "$1" ]; then
+ if [ -n "$COLCON_TRACE" ]; then
+ echo "# . \"$1\""
+ fi
+ . "$1"
+ else
+ echo "not found: \"$1\"" 1>&2
+ fi
+}
+
+# source chained prefixes
+# setting COLCON_CURRENT_PREFIX avoids relying on the build time prefix of the sourced script
+COLCON_CURRENT_PREFIX="/opt/ros/humble"
+_colcon_prefix_chain_sh_source_script "$COLCON_CURRENT_PREFIX/local_setup.sh"
+
+
+# source this prefix
+# setting COLCON_CURRENT_PREFIX avoids relying on the build time prefix of the sourced script
+COLCON_CURRENT_PREFIX="$_colcon_prefix_chain_sh_COLCON_CURRENT_PREFIX"
+_colcon_prefix_chain_sh_source_script "$COLCON_CURRENT_PREFIX/local_setup.sh"
+
+unset _colcon_prefix_chain_sh_COLCON_CURRENT_PREFIX
+unset _colcon_prefix_chain_sh_source_script
+unset COLCON_CURRENT_PREFIX
diff --git a/install/setup.zsh b/install/setup.zsh
new file mode 100644
index 0000000..990d171
--- /dev/null
+++ b/install/setup.zsh
@@ -0,0 +1,31 @@
+# generated from colcon_zsh/shell/template/prefix_chain.zsh.em
+
+# This script extends the environment with the environment of other prefix
+# paths which were sourced when this file was generated as well as all packages
+# contained in this prefix path.
+
+# function to source another script with conditional trace output
+# first argument: the path of the script
+_colcon_prefix_chain_zsh_source_script() {
+ if [ -f "$1" ]; then
+ if [ -n "$COLCON_TRACE" ]; then
+ echo ". \"$1\""
+ fi
+ . "$1"
+ else
+ echo "not found: \"$1\"" 1>&2
+ fi
+}
+
+# source chained prefixes
+# setting COLCON_CURRENT_PREFIX avoids determining the prefix in the sourced script
+COLCON_CURRENT_PREFIX="/opt/ros/humble"
+_colcon_prefix_chain_zsh_source_script "$COLCON_CURRENT_PREFIX/local_setup.zsh"
+
+# source this prefix
+# setting COLCON_CURRENT_PREFIX avoids determining the prefix in the sourced script
+COLCON_CURRENT_PREFIX="$(builtin cd -q "`dirname "${(%):-%N}"`" > /dev/null && pwd)"
+_colcon_prefix_chain_zsh_source_script "$COLCON_CURRENT_PREFIX/local_setup.zsh"
+
+unset COLCON_CURRENT_PREFIX
+unset _colcon_prefix_chain_zsh_source_script
diff --git a/install/spawn_shell.bash b/install/spawn_shell.bash
new file mode 100644
index 0000000..32a153e
--- /dev/null
+++ b/install/spawn_shell.bash
@@ -0,0 +1,82 @@
+#!/bin/bash
+# Copyright 2018 Shane Loretz
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+if [ "${COLCON_SPAWN_SHELL_GET_WORKSPACE_INFO}" = "workspace_name" ] ;
+then
+ # script is being sourced to get info and should not spawn a shell
+ COLCON_SPAWN_SHELL_WORKSPACE_NAME='rmp220_middleware'
+ unset COLCON_SPAWN_SHELL_GET_WORKSPACE_INFO
+ return
+fi
+
+# Get absolute path to install root ( directory this script is in)
+_CCSSB_dir=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)
+# Append workspace to list of workspaces (for chaining workspaces)
+_CCSSB_workspaces=$COLCON_SPAWN_SHELL_BASH:$_CCSSB_dir
+
+# Need to source user's rcfiles first because --rcfile causes them to be ignored
+if [ -f /etc/bash.bashrc ]
+then
+ _CCSSB_rcfile="$_CCSSB_rcfile . /etc/bash.bashrc ;"
+fi
+if [ -f ~/.bashrc ]
+then
+ _CCSSB_rcfile="$_CCSSB_rcfile . ~/.bashrc ;"
+fi
+
+# Build a prompt prefix showing the order workspaces have been chained
+_CCSSB_ps1_prefix=""
+
+# Make code to source all colcon workspaces
+while read -d ':' _CCSSB_ws_dir; do
+ if [ -z "$_CCSSB_ws_dir" ]
+ then
+ # No text before first ':' so ignore it
+ continue
+ fi
+ # make sure shell sources the workspace on startup
+ _CCSSB_rcfile="$_CCSSB_rcfile . $_CCSSB_ws_dir/local_setup.bash ;"
+
+ # Source the workspace here to get the workspace name
+ COLCON_SPAWN_SHELL_GET_WORKSPACE_INFO=workspace_name
+ . $_CCSSB_ws_dir/spawn_shell.bash
+ unset COLCON_SPAWN_SHELL_GET_WORKSPACE_INFO
+
+ if [ -z "$_CCSSB_ps1_prefix" ]
+ then
+ # First workspace is separated from PS1 by "|"
+ _CCSSB_ps1_prefix="${COLCON_SPAWN_SHELL_WORKSPACE_NAME}|"
+ else
+ # Chained workspaces are separated with "<-"
+ _CCSSB_ps1_prefix="${COLCON_SPAWN_SHELL_WORKSPACE_NAME}<-$_CCSSB_ps1_prefix"
+ fi
+ unset COLCON_SPAWN_SHELL_WORKSPACE_NAME
+done <<< "$_CCSSB_workspaces:"
+
+# Support chaining by setting a variable with the list of spawned workspaces
+_CCSSB_rcfile="$_CCSSB_rcfile COLCON_SPAWN_SHELL_BASH=\"$_CCSSB_workspaces\" ;"
+
+# Set prompt to indicate sourced workspaces
+_CCSSB_rcfile="$_CCSSB_rcfile export PS1=\"$_CCSSB_ps1_prefix\$PS1\" ;"
+
+# Spawn a child shell using custom startup commands
+$SHELL --rcfile <(echo "$_CCSSB_rcfile")
+
+# Cleanup the variables used
+unset _CCSSB_workspaces
+unset _CCSSB_rcfile
+unset _CCSSB_ps1_prefix
+unset _CCSSB_ws_dir
+unset _CCSSB_dir
diff --git a/log/COLCON_IGNORE b/log/COLCON_IGNORE
new file mode 100644
index 0000000..e69de29
diff --git a/log/build_2023-08-18_08-51-11/events.log b/log/build_2023-08-18_08-51-11/events.log
new file mode 100644
index 0000000..7f4b6b7
--- /dev/null
+++ b/log/build_2023-08-18_08-51-11/events.log
@@ -0,0 +1,8 @@
+[0.000000] (-) TimerEvent: {}
+[0.000467] (rmp220_middleware) JobQueued: {'identifier': 'rmp220_middleware', 'dependencies': OrderedDict()}
+[0.000493] (rmp220_middleware) JobStarted: {'identifier': 'rmp220_middleware'}
+[0.099684] (-) TimerEvent: {}
+[0.199898] (-) TimerEvent: {}
+[0.265930] (rmp220_middleware) StderrLine: {'line': b'Traceback (most recent call last):\n File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__\n rc = await self.task(*args, **kwargs)\n File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 93, in __call__\n return await task_method(*args, **kwargs)\n File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 51, in build\n setup_py_data = get_setup_data(self.context.pkg, env)\n File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data\n return dict(pkg.metadata[key](env))\n File "/usr/lib/python3/dist-packages/colcon_ros/package_augmentation/ros_ament_python.py", line 57, in getter\n return get_setup_information(\n File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 241, in get_setup_information\n _setup_information_cache[hashable_env] = _get_setup_information(\n File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 288, in _get_setup_information\n result = subprocess.run(\n File "/usr/lib/python3.10/subprocess.py", line 526, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'/usr/bin/python3\', \'-c\', \'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \\\'setup.py\\\', script_args=(\\\'--dry-run\\\',), stop_after=\\\'config\\\');skip_keys = (\\\'cmdclass\\\', \\\'distclass\\\', \\\'ext_modules\\\', \\\'metadata\\\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\\\'_\\\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\\\'metadata\\\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\\\'license_files\\\', \\\'provides_extras\\\')};sys.stdout.buffer.write(repr(data).encode(\\\'utf-8\\\'))\']\' returned non-zero exit status 1.\n'}
+[0.266264] (rmp220_middleware) JobEnded: {'identifier': 'rmp220_middleware', 'rc': 1}
+[0.276265] (-) EventReactorShutdown: {}
diff --git a/log/build_2023-08-18_08-51-11/logger_all.log b/log/build_2023-08-18_08-51-11/logger_all.log
new file mode 100644
index 0000000..4755389
--- /dev/null
+++ b/log/build_2023-08-18_08-51-11/logger_all.log
@@ -0,0 +1,67 @@
+[0.434s] DEBUG:colcon:Command line arguments: ['/usr/bin/colcon', 'build']
+[0.434s] DEBUG:colcon:Parsed command line arguments: Namespace(log_base=None, log_level=None, verb_name='build', build_base='build', install_base='install', merge_install=False, symlink_install=False, test_result_base=None, continue_on_error=False, executor='parallel', parallel_workers=20, event_handlers=None, ignore_user_meta=False, metas=['./colcon.meta'], base_paths=['.'], packages_ignore=None, packages_ignore_regex=None, paths=None, packages_up_to=None, packages_up_to_regex=None, packages_above=None, packages_above_and_dependencies=None, packages_above_depth=None, packages_select_by_dep=None, packages_skip_by_dep=None, packages_skip_up_to=None, packages_select_build_failed=False, packages_skip_build_finished=False, packages_select_test_failures=False, packages_skip_test_passed=False, packages_select=None, packages_skip=None, packages_select_regex=None, packages_skip_regex=None, packages_start=None, packages_end=None, allow_overriding=[], cmake_args=None, cmake_target=None, cmake_target_skip_unavailable=False, cmake_clean_cache=False, cmake_clean_first=False, cmake_force_configure=False, ament_cmake_args=None, catkin_cmake_args=None, catkin_skip_building_tests=False, verb_parser=, verb_extension=, main=>)
+[0.454s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) check parameters
+[0.455s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) check parameters
+[0.455s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) check parameters
+[0.455s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) check parameters
+[0.455s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) discover
+[0.455s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) discover
+[0.455s] INFO:colcon.colcon_core.package_discovery:Crawling recursively for packages in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[0.455s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ignore', 'ignore_ament_install']
+[0.455s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore'
+[0.455s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore_ament_install'
+[0.455s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_pkg']
+[0.455s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_pkg'
+[0.455s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_meta']
+[0.455s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_meta'
+[0.455s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ros']
+[0.455s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ros'
+[0.468s] DEBUG:colcon.colcon_core.package_identification:Package '.' with type 'ros.ament_python' and name 'rmp220_middleware'
+[0.468s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) using defaults
+[0.468s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) discover
+[0.468s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) using defaults
+[0.468s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) discover
+[0.468s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) using defaults
+[0.490s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) check parameters
+[0.490s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) discover
+[0.495s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 458 installed packages in /opt/ros/humble
+[0.497s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) using defaults
+[0.564s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_args' from command line to 'None'
+[0.564s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target' from command line to 'None'
+[0.564s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target_skip_unavailable' from command line to 'False'
+[0.564s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_cache' from command line to 'False'
+[0.564s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_first' from command line to 'False'
+[0.564s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_force_configure' from command line to 'False'
+[0.564s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'ament_cmake_args' from command line to 'None'
+[0.564s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_cmake_args' from command line to 'None'
+[0.564s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_skip_building_tests' from command line to 'False'
+[0.564s] DEBUG:colcon.colcon_core.verb:Building package 'rmp220_middleware' with the following arguments: {'ament_cmake_args': None, 'build_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'catkin_cmake_args': None, 'catkin_skip_building_tests': False, 'cmake_args': None, 'cmake_clean_cache': False, 'cmake_clean_first': False, 'cmake_force_configure': False, 'cmake_target': None, 'cmake_target_skip_unavailable': False, 'install_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware', 'merge_install': False, 'path': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'symlink_install': False, 'test_result_base': None}
+[0.565s] INFO:colcon.colcon_core.executor:Executing jobs using 'parallel' executor
+[0.567s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete
+[0.567s] INFO:colcon.colcon_ros.task.ament_python.build:Building ROS package in '/home/bjorn/Documents/ros_projects/rmp220_middleware' with build type 'ament_python'
+[0.567s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'ament_prefix_path')
+[0.576s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_core.shell.bat': Not used on non-Windows systems
+[0.576s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.ps1'
+[0.577s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.dsv'
+[0.577s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.sh'
+[0.579s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[0.579s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[0.843s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:closing loop
+[0.844s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:loop closed
+[0.844s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete finished with 'Command '['/usr/bin/python3', '-c', 'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \'setup.py\', script_args=(\'--dry-run\',), stop_after=\'config\');skip_keys = (\'cmdclass\', \'distclass\', \'ext_modules\', \'metadata\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\'_\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\'metadata\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\'license_files\', \'provides_extras\')};sys.stdout.buffer.write(repr(data).encode(\'utf-8\'))']' returned non-zero exit status 1.'
+[0.844s] DEBUG:colcon.colcon_core.event_reactor:joining thread
+[0.851s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.terminal_notifier': Not used on non-Darwin systems
+[0.851s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.win32': Not used on non-Windows systems
+[0.851s] INFO:colcon.colcon_notification.desktop_notification:Sending desktop notification using 'notify2'
+[0.860s] DEBUG:colcon.colcon_core.event_reactor:joined thread
+[0.861s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.ps1'
+[0.862s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_ps1.py'
+[0.863s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.ps1'
+[0.864s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.sh'
+[0.864s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_sh.py'
+[0.865s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.sh'
+[0.866s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.bash'
+[0.866s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.bash'
+[0.867s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.zsh'
+[0.867s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.zsh'
+[0.868s] INFO:colcon.colcon_core.shell:Creating '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/spawn_shell.bash'
diff --git a/log/build_2023-08-18_08-51-11/rmp220_middleware/command.log b/log/build_2023-08-18_08-51-11/rmp220_middleware/command.log
new file mode 100644
index 0000000..e69de29
diff --git a/log/build_2023-08-18_08-51-11/rmp220_middleware/stderr.log b/log/build_2023-08-18_08-51-11/rmp220_middleware/stderr.log
new file mode 100644
index 0000000..68e86e5
--- /dev/null
+++ b/log/build_2023-08-18_08-51-11/rmp220_middleware/stderr.log
@@ -0,0 +1,18 @@
+Traceback (most recent call last):
+ File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__
+ rc = await self.task(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 93, in __call__
+ return await task_method(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 51, in build
+ setup_py_data = get_setup_data(self.context.pkg, env)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data
+ return dict(pkg.metadata[key](env))
+ File "/usr/lib/python3/dist-packages/colcon_ros/package_augmentation/ros_ament_python.py", line 57, in getter
+ return get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 241, in get_setup_information
+ _setup_information_cache[hashable_env] = _get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 288, in _get_setup_information
+ result = subprocess.run(
+ File "/usr/lib/python3.10/subprocess.py", line 526, in run
+ raise CalledProcessError(retcode, process.args,
+subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \'setup.py\', script_args=(\'--dry-run\',), stop_after=\'config\');skip_keys = (\'cmdclass\', \'distclass\', \'ext_modules\', \'metadata\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\'_\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\'metadata\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\'license_files\', \'provides_extras\')};sys.stdout.buffer.write(repr(data).encode(\'utf-8\'))']' returned non-zero exit status 1.
diff --git a/log/build_2023-08-18_08-51-11/rmp220_middleware/stdout.log b/log/build_2023-08-18_08-51-11/rmp220_middleware/stdout.log
new file mode 100644
index 0000000..e69de29
diff --git a/log/build_2023-08-18_08-51-11/rmp220_middleware/stdout_stderr.log b/log/build_2023-08-18_08-51-11/rmp220_middleware/stdout_stderr.log
new file mode 100644
index 0000000..68e86e5
--- /dev/null
+++ b/log/build_2023-08-18_08-51-11/rmp220_middleware/stdout_stderr.log
@@ -0,0 +1,18 @@
+Traceback (most recent call last):
+ File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__
+ rc = await self.task(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 93, in __call__
+ return await task_method(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 51, in build
+ setup_py_data = get_setup_data(self.context.pkg, env)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data
+ return dict(pkg.metadata[key](env))
+ File "/usr/lib/python3/dist-packages/colcon_ros/package_augmentation/ros_ament_python.py", line 57, in getter
+ return get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 241, in get_setup_information
+ _setup_information_cache[hashable_env] = _get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 288, in _get_setup_information
+ result = subprocess.run(
+ File "/usr/lib/python3.10/subprocess.py", line 526, in run
+ raise CalledProcessError(retcode, process.args,
+subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \'setup.py\', script_args=(\'--dry-run\',), stop_after=\'config\');skip_keys = (\'cmdclass\', \'distclass\', \'ext_modules\', \'metadata\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\'_\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\'metadata\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\'license_files\', \'provides_extras\')};sys.stdout.buffer.write(repr(data).encode(\'utf-8\'))']' returned non-zero exit status 1.
diff --git a/log/build_2023-08-18_08-51-11/rmp220_middleware/streams.log b/log/build_2023-08-18_08-51-11/rmp220_middleware/streams.log
new file mode 100644
index 0000000..ff278d4
--- /dev/null
+++ b/log/build_2023-08-18_08-51-11/rmp220_middleware/streams.log
@@ -0,0 +1,18 @@
+[0.266s] Traceback (most recent call last):
+ File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__
+ rc = await self.task(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 93, in __call__
+ return await task_method(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 51, in build
+ setup_py_data = get_setup_data(self.context.pkg, env)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data
+ return dict(pkg.metadata[key](env))
+ File "/usr/lib/python3/dist-packages/colcon_ros/package_augmentation/ros_ament_python.py", line 57, in getter
+ return get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 241, in get_setup_information
+ _setup_information_cache[hashable_env] = _get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 288, in _get_setup_information
+ result = subprocess.run(
+ File "/usr/lib/python3.10/subprocess.py", line 526, in run
+ raise CalledProcessError(retcode, process.args,
+subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \'setup.py\', script_args=(\'--dry-run\',), stop_after=\'config\');skip_keys = (\'cmdclass\', \'distclass\', \'ext_modules\', \'metadata\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\'_\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\'metadata\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\'license_files\', \'provides_extras\')};sys.stdout.buffer.write(repr(data).encode(\'utf-8\'))']' returned non-zero exit status 1.
diff --git a/log/build_2023-08-18_08-51-47/events.log b/log/build_2023-08-18_08-51-47/events.log
new file mode 100644
index 0000000..72d67b2
--- /dev/null
+++ b/log/build_2023-08-18_08-51-47/events.log
@@ -0,0 +1,77 @@
+[0.000000] (-) TimerEvent: {}
+[0.000085] (rmp220_middleware) JobQueued: {'identifier': 'rmp220_middleware', 'dependencies': OrderedDict()}
+[0.000108] (rmp220_middleware) JobStarted: {'identifier': 'rmp220_middleware'}
+[0.099321] (-) TimerEvent: {}
+[0.199512] (-) TimerEvent: {}
+[0.299729] (-) TimerEvent: {}
+[0.399918] (-) TimerEvent: {}
+[0.500160] (-) TimerEvent: {}
+[0.600388] (-) TimerEvent: {}
+[0.700626] (-) TimerEvent: {}
+[0.800865] (-) TimerEvent: {}
+[0.901089] (-) TimerEvent: {}
+[1.001343] (-) TimerEvent: {}
+[1.101588] (-) TimerEvent: {}
+[1.201802] (-) TimerEvent: {}
+[1.302047] (-) TimerEvent: {}
+[1.402311] (-) TimerEvent: {}
+[1.502636] (-) TimerEvent: {}
+[1.602849] (-) TimerEvent: {}
+[1.703120] (-) TimerEvent: {}
+[1.803453] (-) TimerEvent: {}
+[1.903725] (-) TimerEvent: {}
+[2.004039] (-) TimerEvent: {}
+[2.048683] (rmp220_middleware) Command: {'cmd': ['/usr/bin/python3', 'setup.py', 'egg_info', '--egg-base', 'build/rmp220_middleware', 'build', '--build-base', '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build', 'install', '--record', '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log', '--single-version-externally-managed'], 'cwd': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'env': {'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'USER': 'bjorn', 'GIO_MODULE_DIR': '/home/bjorn/snap/code/common/.cache/gio-modules', 'XDG_SESSION_TYPE': 'x11', 'GIT_ASKPASS': '/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass.sh', 'GTK_EXE_PREFIX_VSCODE_SNAP_ORIG': '', 'GDK_BACKEND_VSCODE_SNAP_ORIG': '', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/humble/opt/rviz_ogre_vendor/lib:/opt/ros/humble/lib/x86_64-linux-gnu:/opt/ros/humble/lib', 'HOME': '/home/bjorn', 'CHROME_DESKTOP': 'code-url-handler.desktop', 'LOCPATH_VSCODE_SNAP_ORIG': '', 'TERM_PROGRAM_VERSION': '1.81.1', 'DESKTOP_SESSION': 'ubuntu', 'GTK_PATH': '/snap/code/137/usr/lib/x86_64-linux-gnu/gtk-3.0', 'GTK_IM_MODULE_FILE': '/home/bjorn/snap/code/common/.cache/immodules/immodules.cache', 'GIO_LAUNCHED_DESKTOP_FILE': '/var/lib/snapd/desktop/applications/code_code.desktop', 'ROS_PYTHON_VERSION': '3', 'GNOME_SHELL_SESSION_MODE': 'ubuntu', 'GTK_MODULES': 'gail:atk-bridge', 'GSETTINGS_SCHEMA_DIR_VSCODE_SNAP_ORIG': '', 'VSCODE_GIT_ASKPASS_MAIN': '/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass-main.js', 'VSCODE_GIT_ASKPASS_NODE': '/snap/code/137/usr/share/code/code', 'MANAGERPID': '2405', 'SYSTEMD_EXEC_PID': '2742', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1003/bus', 'COLORTERM': 'truecolor', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '8368', 'IM_CONFIG_PHASE': '1', 'ROS_DISTRO': 'humble', 'GTK_IM_MODULE': 'ibus', 'LOGNAME': 'bjorn', 'ONSHAPE_SECRET_KEY': 'XpUhDOxw7Gp7LV3wT3xDFGXeOGmk2nQmeLlysM7cQU7zv6Bz', 'JOURNAL_STREAM': '8:32520', '_': '/usr/bin/colcon', 'ROS_VERSION': '2', 'XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'XDG_SESSION_CLASS': 'user', 'XDG_DATA_DIRS_VSCODE_SNAP_ORIG': '/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'USERNAME': 'bjorn', 'TERM': 'xterm-256color', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'ROS_LOCALHOST_ONLY': '0', 'WINDOWPATH': '2', 'PATH': '/home/bjorn/.local/bin:/opt/ros/humble/bin:/home/bjorn/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin', 'SESSION_MANAGER': 'local/NUC01:@/tmp/.ICE-unix/2719,unix/NUC01:/tmp/.ICE-unix/2719', 'GTK_EXE_PREFIX': '/snap/code/137/usr', 'INVOCATION_ID': 'fb79c4fd3c1d4f7d9652c6b79482739c', 'XDG_MENU_PREFIX': 'gnome-', 'BAMF_DESKTOP_FILE_HINT': '/var/lib/snapd/desktop/applications/code_code.desktop', 'XDG_RUNTIME_DIR': '/run/user/1003', 'GDK_BACKEND': 'x11', 'DISPLAY': ':1', 'LOCPATH': '/snap/code/137/usr/lib/locale', 'LANG': 'en_US.UTF-8', 'XDG_CURRENT_DESKTOP': 'Unity', 'GIO_MODULE_DIR_VSCODE_SNAP_ORIG': '', 'XMODIFIERS': '@im=ibus', 'XDG_SESSION_DESKTOP': 'ubuntu', 'XAUTHORITY': '/run/user/1003/gdm/Xauthority', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'VSCODE_GIT_IPC_HANDLE': '/run/user/1003/vscode-git-c5b06e67ef.sock', 'TERM_PROGRAM': 'vscode', 'SSH_AGENT_LAUNCHER': 'gnome-keyring', 'SSH_AUTH_SOCK': '/run/user/1003/keyring/ssh', 'GSETTINGS_SCHEMA_DIR': '/home/bjorn/snap/code/137/.local/share/glib-2.0/schemas', 'AMENT_PREFIX_PATH': '/opt/ros/humble', 'ORIGINAL_XDG_CURRENT_DESKTOP': 'ubuntu:GNOME', 'SHELL': '/bin/bash', 'QT_ACCESSIBILITY': '1', 'GDMSESSION': 'ubuntu', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GTK_PATH_VSCODE_SNAP_ORIG': '', 'GTK_IM_MODULE_FILE_VSCODE_SNAP_ORIG': '', 'GPG_AGENT_INFO': '/run/user/1003/gnupg/S.gpg-agent:0:1', 'GJS_DEBUG_OUTPUT': 'stderr', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '--ms-enable-electron-run-as-node', 'QT_IM_MODULE': 'ibus', 'PWD': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'LC_ALL': 'en_US.UTF-8', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'ONSHAPE_ACCESS_KEY': 'twfpigMHe11VE7ZCq2NOANj7', 'XDG_DATA_DIRS': '/home/bjorn/snap/code/137/.local/share:/home/bjorn/snap/code/137:/snap/code/137/usr/share:/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'PYTHONPATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:/opt/ros/humble/lib/python3.10/site-packages:/opt/ros/humble/local/lib/python3.10/dist-packages', 'ONSHAPE_API': 'https://cad.onshape.com', 'COLCON': '1'}, 'shell': False}
+[2.104128] (-) TimerEvent: {}
+[2.204412] (-) TimerEvent: {}
+[2.304642] (-) TimerEvent: {}
+[2.404895] (-) TimerEvent: {}
+[2.505154] (-) TimerEvent: {}
+[2.605411] (-) TimerEvent: {}
+[2.705638] (-) TimerEvent: {}
+[2.711079] (rmp220_middleware) StderrLine: {'line': b"warning: rmp220_middleware/rmp220_middleware.bak.py:1:0: Dotted filenames ('rmp220_middleware.bak.py') are deprecated. Please use the normal Python package directory layout.\n"}
+[2.779169] (rmp220_middleware) StderrLine: {'line': b"/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'\n"}
+[2.779285] (rmp220_middleware) StderrLine: {'line': b' warnings.warn(msg)\n'}
+[2.795886] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning egg_info\x1b[0m\n'}
+[2.796211] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating build/rmp220_middleware/rmp220_middleware.egg-info\x1b[0m\n'}
+[2.796357] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO\x1b[0m\n'}
+[2.796496] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt\x1b[0m\n'}
+[2.796705] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt\x1b[0m\n'}
+[2.796769] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt\x1b[0m\n'}
+[2.796818] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt\x1b[0m\n'}
+[2.800698] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.801744] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.802225] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.802321] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build\x1b[0m\n'}
+[2.802387] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build_py\x1b[0m\n'}
+[2.802454] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build\x1b[0m\n'}
+[2.802516] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib\x1b[0m\n'}
+[2.802575] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware\x1b[0m\n'}
+[2.802620] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying rmp220_middleware/__init__.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware\x1b[0m\n'}
+[2.802678] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying rmp220_middleware/rmp220_middleware.bak.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware\x1b[0m\n'}
+[2.802723] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware\x1b[0m\n'}
+[2.802781] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install\x1b[0m\n'}
+[2.802957] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_lib\x1b[0m\n'}
+[2.803472] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware\x1b[0m\n'}
+[2.803548] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/__init__.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware\x1b[0m\n'}
+[2.803635] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.bak.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware\x1b[0m\n'}
+[2.803702] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware\x1b[0m\n'}
+[2.803989] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__init__.py to __init__.cpython-310.pyc\x1b[0m\n'}
+[2.804141] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.bak.py to rmp220_middleware.bak.cpython-310.pyc\x1b[0m\n'}
+[2.804701] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc\x1b[0m\n'}
+[2.804873] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_data\x1b[0m\n'}
+[2.805153] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index\x1b[0m\n'}
+[2.805200] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index\x1b[0m\n'}
+[2.805279] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index/packages\x1b[0m\n'}
+[2.805356] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying resource/rmp220_middleware -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index/packages\x1b[0m\n'}
+[2.805418] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying package.xml -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware\x1b[0m\n'}
+[2.805461] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_egg_info\x1b[0m\n'}
+[2.805639] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info\x1b[0m\n'}
+[2.805684] (-) TimerEvent: {}
+[2.806166] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_scripts\x1b[0m\n'}
+[2.807306] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware\x1b[0m\n'}
+[2.807505] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'\x1b[0m\n"}
+[2.905815] (-) TimerEvent: {}
+[2.917656] (rmp220_middleware) CommandEnded: {'returncode': 0}
+[2.934573] (rmp220_middleware) JobEnded: {'identifier': 'rmp220_middleware', 'rc': 0}
+[2.935065] (-) EventReactorShutdown: {}
diff --git a/log/build_2023-08-18_08-51-47/logger_all.log b/log/build_2023-08-18_08-51-47/logger_all.log
new file mode 100644
index 0000000..5148016
--- /dev/null
+++ b/log/build_2023-08-18_08-51-47/logger_all.log
@@ -0,0 +1,90 @@
+[0.355s] DEBUG:colcon:Command line arguments: ['/usr/bin/colcon', 'build']
+[0.355s] DEBUG:colcon:Parsed command line arguments: Namespace(log_base=None, log_level=None, verb_name='build', build_base='build', install_base='install', merge_install=False, symlink_install=False, test_result_base=None, continue_on_error=False, executor='parallel', parallel_workers=20, event_handlers=None, ignore_user_meta=False, metas=['./colcon.meta'], base_paths=['.'], packages_ignore=None, packages_ignore_regex=None, paths=None, packages_up_to=None, packages_up_to_regex=None, packages_above=None, packages_above_and_dependencies=None, packages_above_depth=None, packages_select_by_dep=None, packages_skip_by_dep=None, packages_skip_up_to=None, packages_select_build_failed=False, packages_skip_build_finished=False, packages_select_test_failures=False, packages_skip_test_passed=False, packages_select=None, packages_skip=None, packages_select_regex=None, packages_skip_regex=None, packages_start=None, packages_end=None, allow_overriding=[], cmake_args=None, cmake_target=None, cmake_target_skip_unavailable=False, cmake_clean_cache=False, cmake_clean_first=False, cmake_force_configure=False, ament_cmake_args=None, catkin_cmake_args=None, catkin_skip_building_tests=False, verb_parser=, verb_extension=, main=>)
+[0.376s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) check parameters
+[0.376s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) check parameters
+[0.376s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) check parameters
+[0.376s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) check parameters
+[0.376s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) discover
+[0.376s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) discover
+[0.376s] INFO:colcon.colcon_core.package_discovery:Crawling recursively for packages in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[0.376s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ignore', 'ignore_ament_install']
+[0.376s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore'
+[0.376s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore_ament_install'
+[0.376s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_pkg']
+[0.376s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_pkg'
+[0.376s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_meta']
+[0.376s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_meta'
+[0.377s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ros']
+[0.377s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ros'
+[0.390s] DEBUG:colcon.colcon_core.package_identification:Package '.' with type 'ros.ament_python' and name 'rmp220_middleware'
+[0.390s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) using defaults
+[0.390s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) discover
+[0.390s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) using defaults
+[0.390s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) discover
+[0.390s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) using defaults
+[0.408s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) check parameters
+[0.408s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) discover
+[0.412s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 458 installed packages in /opt/ros/humble
+[0.414s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) using defaults
+[0.478s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_args' from command line to 'None'
+[0.478s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target' from command line to 'None'
+[0.478s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target_skip_unavailable' from command line to 'False'
+[0.478s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_cache' from command line to 'False'
+[0.478s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_first' from command line to 'False'
+[0.478s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_force_configure' from command line to 'False'
+[0.478s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'ament_cmake_args' from command line to 'None'
+[0.478s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_cmake_args' from command line to 'None'
+[0.478s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_skip_building_tests' from command line to 'False'
+[0.478s] DEBUG:colcon.colcon_core.verb:Building package 'rmp220_middleware' with the following arguments: {'ament_cmake_args': None, 'build_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'catkin_cmake_args': None, 'catkin_skip_building_tests': False, 'cmake_args': None, 'cmake_clean_cache': False, 'cmake_clean_first': False, 'cmake_force_configure': False, 'cmake_target': None, 'cmake_target_skip_unavailable': False, 'install_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware', 'merge_install': False, 'path': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'symlink_install': False, 'test_result_base': None}
+[0.479s] INFO:colcon.colcon_core.executor:Executing jobs using 'parallel' executor
+[0.481s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete
+[0.481s] INFO:colcon.colcon_ros.task.ament_python.build:Building ROS package in '/home/bjorn/Documents/ros_projects/rmp220_middleware' with build type 'ament_python'
+[0.481s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'ament_prefix_path')
+[0.488s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_core.shell.bat': Not used on non-Windows systems
+[0.488s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.ps1'
+[0.488s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.dsv'
+[0.489s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.sh'
+[0.490s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[0.490s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[1.422s] INFO:colcon.colcon_core.task.python.build:Building Python package in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[1.424s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[1.424s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[2.531s] DEBUG:colcon.colcon_core.event_handler.log_command:Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[3.400s] DEBUG:colcon.colcon_core.event_handler.log_command:Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[3.408s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware' for CMake module files
+[3.408s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware' for CMake config files
+[3.409s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib'
+[3.409s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/bin'
+[3.409s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/pkgconfig/rmp220_middleware.pc'
+[3.409s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages'
+[3.409s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'pythonpath')
+[3.411s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.ps1'
+[3.411s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.dsv'
+[3.411s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.sh'
+[3.411s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/bin'
+[3.411s] Level 1:colcon.colcon_core.environment:create_environment_scripts_only(rmp220_middleware)
+[3.413s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.ps1'
+[3.414s] INFO:colcon.colcon_core.shell:Creating package descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.dsv'
+[3.414s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.sh'
+[3.415s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.bash'
+[3.415s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.zsh'
+[3.416s] Level 1:colcon.colcon_core.environment:create_file_with_runtime_dependencies(/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/colcon-core/packages/rmp220_middleware)
+[3.416s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:closing loop
+[3.416s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:loop closed
+[3.416s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete finished with '0'
+[3.416s] DEBUG:colcon.colcon_core.event_reactor:joining thread
+[3.423s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.terminal_notifier': Not used on non-Darwin systems
+[3.423s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.win32': Not used on non-Windows systems
+[3.423s] INFO:colcon.colcon_notification.desktop_notification:Sending desktop notification using 'notify2'
+[3.432s] DEBUG:colcon.colcon_core.event_reactor:joined thread
+[3.434s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.ps1'
+[3.435s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_ps1.py'
+[3.437s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.ps1'
+[3.439s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.sh'
+[3.440s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_sh.py'
+[3.440s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.sh'
+[3.442s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.bash'
+[3.443s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.bash'
+[3.444s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.zsh'
+[3.445s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.zsh'
+[3.446s] INFO:colcon.colcon_core.shell:Creating '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/spawn_shell.bash'
diff --git a/log/build_2023-08-18_08-51-47/rmp220_middleware/command.log b/log/build_2023-08-18_08-51-47/rmp220_middleware/command.log
new file mode 100644
index 0000000..c62a331
--- /dev/null
+++ b/log/build_2023-08-18_08-51-47/rmp220_middleware/command.log
@@ -0,0 +1,2 @@
+Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
diff --git a/log/build_2023-08-18_08-51-47/rmp220_middleware/stderr.log b/log/build_2023-08-18_08-51-47/rmp220_middleware/stderr.log
new file mode 100644
index 0000000..aa64c1b
--- /dev/null
+++ b/log/build_2023-08-18_08-51-47/rmp220_middleware/stderr.log
@@ -0,0 +1,3 @@
+warning: rmp220_middleware/rmp220_middleware.bak.py:1:0: Dotted filenames ('rmp220_middleware.bak.py') are deprecated. Please use the normal Python package directory layout.
+/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'
+ warnings.warn(msg)
diff --git a/log/build_2023-08-18_08-51-47/rmp220_middleware/stdout.log b/log/build_2023-08-18_08-51-47/rmp220_middleware/stdout.log
new file mode 100644
index 0000000..717a792
--- /dev/null
+++ b/log/build_2023-08-18_08-51-47/rmp220_middleware/stdout.log
@@ -0,0 +1,38 @@
+[39mrunning egg_info[0m
+[39mcreating build/rmp220_middleware/rmp220_middleware.egg-info[0m
+[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mrunning build[0m
+[39mrunning build_py[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mcopying rmp220_middleware/__init__.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mcopying rmp220_middleware/rmp220_middleware.bak.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mrunning install[0m
+[39mrunning install_lib[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/__init__.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.bak.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__init__.py to __init__.cpython-310.pyc[0m
+[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.bak.py to rmp220_middleware.bak.cpython-310.pyc[0m
+[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc[0m
+[39mrunning install_data[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index/packages[0m
+[39mcopying resource/rmp220_middleware -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index/packages[0m
+[39mcopying package.xml -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware[0m
+[39mrunning install_egg_info[0m
+[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[39mrunning install_scripts[0m
+[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
diff --git a/log/build_2023-08-18_08-51-47/rmp220_middleware/stdout_stderr.log b/log/build_2023-08-18_08-51-47/rmp220_middleware/stdout_stderr.log
new file mode 100644
index 0000000..57e58f1
--- /dev/null
+++ b/log/build_2023-08-18_08-51-47/rmp220_middleware/stdout_stderr.log
@@ -0,0 +1,41 @@
+warning: rmp220_middleware/rmp220_middleware.bak.py:1:0: Dotted filenames ('rmp220_middleware.bak.py') are deprecated. Please use the normal Python package directory layout.
+/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'
+ warnings.warn(msg)
+[39mrunning egg_info[0m
+[39mcreating build/rmp220_middleware/rmp220_middleware.egg-info[0m
+[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mrunning build[0m
+[39mrunning build_py[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mcopying rmp220_middleware/__init__.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mcopying rmp220_middleware/rmp220_middleware.bak.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mrunning install[0m
+[39mrunning install_lib[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/__init__.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.bak.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__init__.py to __init__.cpython-310.pyc[0m
+[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.bak.py to rmp220_middleware.bak.cpython-310.pyc[0m
+[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc[0m
+[39mrunning install_data[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index/packages[0m
+[39mcopying resource/rmp220_middleware -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index/packages[0m
+[39mcopying package.xml -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware[0m
+[39mrunning install_egg_info[0m
+[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[39mrunning install_scripts[0m
+[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
diff --git a/log/build_2023-08-18_08-51-47/rmp220_middleware/streams.log b/log/build_2023-08-18_08-51-47/rmp220_middleware/streams.log
new file mode 100644
index 0000000..5bddbf0
--- /dev/null
+++ b/log/build_2023-08-18_08-51-47/rmp220_middleware/streams.log
@@ -0,0 +1,43 @@
+[2.049s] Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[2.711s] warning: rmp220_middleware/rmp220_middleware.bak.py:1:0: Dotted filenames ('rmp220_middleware.bak.py') are deprecated. Please use the normal Python package directory layout.
+[2.779s] /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'
+[2.779s] warnings.warn(msg)
+[2.796s] [39mrunning egg_info[0m
+[2.796s] [39mcreating build/rmp220_middleware/rmp220_middleware.egg-info[0m
+[2.796s] [39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[2.797s] [39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[2.797s] [39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[2.797s] [39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[2.797s] [39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[2.801s] [39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.802s] [39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.802s] [39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.802s] [39mrunning build[0m
+[2.802s] [39mrunning build_py[0m
+[2.802s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build[0m
+[2.802s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib[0m
+[2.802s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[2.803s] [39mcopying rmp220_middleware/__init__.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[2.803s] [39mcopying rmp220_middleware/rmp220_middleware.bak.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[2.803s] [39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[2.803s] [39mrunning install[0m
+[2.803s] [39mrunning install_lib[0m
+[2.803s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[2.803s] [39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/__init__.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[2.804s] [39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.bak.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[2.804s] [39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[2.804s] [39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/__init__.py to __init__.cpython-310.pyc[0m
+[2.804s] [39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.bak.py to rmp220_middleware.bak.cpython-310.pyc[0m
+[2.805s] [39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc[0m
+[2.805s] [39mrunning install_data[0m
+[2.805s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index[0m
+[2.805s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index[0m
+[2.805s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index/packages[0m
+[2.805s] [39mcopying resource/rmp220_middleware -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/ament_index/resource_index/packages[0m
+[2.805s] [39mcopying package.xml -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware[0m
+[2.805s] [39mrunning install_egg_info[0m
+[2.806s] [39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[2.806s] [39mrunning install_scripts[0m
+[2.807s] [39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[2.807s] [39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
+[2.918s] Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
diff --git a/log/build_2023-08-18_08-53-55/events.log b/log/build_2023-08-18_08-53-55/events.log
new file mode 100644
index 0000000..de9238d
--- /dev/null
+++ b/log/build_2023-08-18_08-53-55/events.log
@@ -0,0 +1,57 @@
+[0.000000] (-) TimerEvent: {}
+[0.000085] (rmp220_middleware) JobQueued: {'identifier': 'rmp220_middleware', 'dependencies': OrderedDict()}
+[0.000108] (rmp220_middleware) JobStarted: {'identifier': 'rmp220_middleware'}
+[0.099377] (-) TimerEvent: {}
+[0.199562] (-) TimerEvent: {}
+[0.299753] (-) TimerEvent: {}
+[0.399966] (-) TimerEvent: {}
+[0.500234] (-) TimerEvent: {}
+[0.600473] (-) TimerEvent: {}
+[0.700711] (-) TimerEvent: {}
+[0.800939] (-) TimerEvent: {}
+[0.901181] (-) TimerEvent: {}
+[1.001435] (-) TimerEvent: {}
+[1.101632] (-) TimerEvent: {}
+[1.201852] (-) TimerEvent: {}
+[1.302081] (-) TimerEvent: {}
+[1.402284] (-) TimerEvent: {}
+[1.502495] (-) TimerEvent: {}
+[1.602672] (-) TimerEvent: {}
+[1.702891] (-) TimerEvent: {}
+[1.767985] (rmp220_middleware) Command: {'cmd': ['/usr/bin/python3', 'setup.py', 'egg_info', '--egg-base', 'build/rmp220_middleware', 'build', '--build-base', '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build', 'install', '--record', '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log', '--single-version-externally-managed'], 'cwd': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'env': {'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'USER': 'bjorn', 'GIO_MODULE_DIR': '/home/bjorn/snap/code/common/.cache/gio-modules', 'XDG_SESSION_TYPE': 'x11', 'GIT_ASKPASS': '/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass.sh', 'GTK_EXE_PREFIX_VSCODE_SNAP_ORIG': '', 'GDK_BACKEND_VSCODE_SNAP_ORIG': '', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/humble/opt/rviz_ogre_vendor/lib:/opt/ros/humble/lib/x86_64-linux-gnu:/opt/ros/humble/lib', 'HOME': '/home/bjorn', 'CHROME_DESKTOP': 'code-url-handler.desktop', 'LOCPATH_VSCODE_SNAP_ORIG': '', 'TERM_PROGRAM_VERSION': '1.81.1', 'DESKTOP_SESSION': 'ubuntu', 'GTK_PATH': '/snap/code/137/usr/lib/x86_64-linux-gnu/gtk-3.0', 'GTK_IM_MODULE_FILE': '/home/bjorn/snap/code/common/.cache/immodules/immodules.cache', 'GIO_LAUNCHED_DESKTOP_FILE': '/var/lib/snapd/desktop/applications/code_code.desktop', 'ROS_PYTHON_VERSION': '3', 'GNOME_SHELL_SESSION_MODE': 'ubuntu', 'GTK_MODULES': 'gail:atk-bridge', 'GSETTINGS_SCHEMA_DIR_VSCODE_SNAP_ORIG': '', 'VSCODE_GIT_ASKPASS_MAIN': '/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass-main.js', 'VSCODE_GIT_ASKPASS_NODE': '/snap/code/137/usr/share/code/code', 'MANAGERPID': '2405', 'SYSTEMD_EXEC_PID': '2742', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1003/bus', 'COLORTERM': 'truecolor', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '8368', 'IM_CONFIG_PHASE': '1', 'COLCON_PREFIX_PATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install', 'ROS_DISTRO': 'humble', 'GTK_IM_MODULE': 'ibus', 'LOGNAME': 'bjorn', 'ONSHAPE_SECRET_KEY': 'XpUhDOxw7Gp7LV3wT3xDFGXeOGmk2nQmeLlysM7cQU7zv6Bz', 'JOURNAL_STREAM': '8:32520', '_': '/usr/bin/colcon', 'ROS_VERSION': '2', 'XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'XDG_SESSION_CLASS': 'user', 'XDG_DATA_DIRS_VSCODE_SNAP_ORIG': '/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'USERNAME': 'bjorn', 'TERM': 'xterm-256color', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'ROS_LOCALHOST_ONLY': '0', 'WINDOWPATH': '2', 'PATH': '/home/bjorn/.local/bin:/opt/ros/humble/bin:/home/bjorn/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin', 'SESSION_MANAGER': 'local/NUC01:@/tmp/.ICE-unix/2719,unix/NUC01:/tmp/.ICE-unix/2719', 'GTK_EXE_PREFIX': '/snap/code/137/usr', 'INVOCATION_ID': 'fb79c4fd3c1d4f7d9652c6b79482739c', 'XDG_MENU_PREFIX': 'gnome-', 'BAMF_DESKTOP_FILE_HINT': '/var/lib/snapd/desktop/applications/code_code.desktop', 'XDG_RUNTIME_DIR': '/run/user/1003', 'GDK_BACKEND': 'x11', 'DISPLAY': ':1', 'LOCPATH': '/snap/code/137/usr/lib/locale', 'LANG': 'en_US.UTF-8', 'XDG_CURRENT_DESKTOP': 'Unity', 'GIO_MODULE_DIR_VSCODE_SNAP_ORIG': '', 'XMODIFIERS': '@im=ibus', 'XDG_SESSION_DESKTOP': 'ubuntu', 'XAUTHORITY': '/run/user/1003/gdm/Xauthority', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'VSCODE_GIT_IPC_HANDLE': '/run/user/1003/vscode-git-c5b06e67ef.sock', 'TERM_PROGRAM': 'vscode', 'SSH_AGENT_LAUNCHER': 'gnome-keyring', 'SSH_AUTH_SOCK': '/run/user/1003/keyring/ssh', 'GSETTINGS_SCHEMA_DIR': '/home/bjorn/snap/code/137/.local/share/glib-2.0/schemas', 'AMENT_PREFIX_PATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware:/opt/ros/humble', 'ORIGINAL_XDG_CURRENT_DESKTOP': 'ubuntu:GNOME', 'SHELL': '/bin/bash', 'QT_ACCESSIBILITY': '1', 'GDMSESSION': 'ubuntu', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GTK_PATH_VSCODE_SNAP_ORIG': '', 'GTK_IM_MODULE_FILE_VSCODE_SNAP_ORIG': '', 'GPG_AGENT_INFO': '/run/user/1003/gnupg/S.gpg-agent:0:1', 'GJS_DEBUG_OUTPUT': 'stderr', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '--ms-enable-electron-run-as-node', 'QT_IM_MODULE': 'ibus', 'PWD': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'LC_ALL': 'en_US.UTF-8', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'ONSHAPE_ACCESS_KEY': 'twfpigMHe11VE7ZCq2NOANj7', 'XDG_DATA_DIRS': '/home/bjorn/snap/code/137/.local/share:/home/bjorn/snap/code/137:/snap/code/137/usr/share:/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'PYTHONPATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:/opt/ros/humble/lib/python3.10/site-packages:/opt/ros/humble/local/lib/python3.10/dist-packages', 'ONSHAPE_API': 'https://cad.onshape.com', 'COLCON': '1'}, 'shell': False}
+[1.802998] (-) TimerEvent: {}
+[1.903222] (-) TimerEvent: {}
+[2.003541] (-) TimerEvent: {}
+[2.103732] (-) TimerEvent: {}
+[2.203925] (-) TimerEvent: {}
+[2.304126] (-) TimerEvent: {}
+[2.404331] (-) TimerEvent: {}
+[2.448475] (rmp220_middleware) StderrLine: {'line': b"/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'\n"}
+[2.448609] (rmp220_middleware) StderrLine: {'line': b' warnings.warn(msg)\n'}
+[2.465012] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning egg_info\x1b[0m\n'}
+[2.465414] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO\x1b[0m\n'}
+[2.465550] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt\x1b[0m\n'}
+[2.465688] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt\x1b[0m\n'}
+[2.465763] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt\x1b[0m\n'}
+[2.465877] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt\x1b[0m\n'}
+[2.467325] (rmp220_middleware) StdoutLine: {'line': b"\x1b[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)\x1b[0m\n"}
+[2.467634] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.468256] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.468415] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build\x1b[0m\n'}
+[2.468547] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build_py\x1b[0m\n'}
+[2.468602] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware\x1b[0m\n'}
+[2.468729] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install\x1b[0m\n'}
+[2.468799] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_lib\x1b[0m\n'}
+[2.469267] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware\x1b[0m\n'}
+[2.469637] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc\x1b[0m\n'}
+[2.469854] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_data\x1b[0m\n'}
+[2.470220] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_egg_info\x1b[0m\n'}
+[2.470395] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)\x1b[0m\n"}
+[2.470574] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info\x1b[0m\n'}
+[2.471243] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_scripts\x1b[0m\n'}
+[2.472308] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware\x1b[0m\n'}
+[2.472471] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'\x1b[0m\n"}
+[2.504454] (-) TimerEvent: {}
+[2.578160] (rmp220_middleware) CommandEnded: {'returncode': 0}
+[2.590119] (rmp220_middleware) JobEnded: {'identifier': 'rmp220_middleware', 'rc': 0}
+[2.590529] (-) EventReactorShutdown: {}
diff --git a/log/build_2023-08-18_08-53-55/logger_all.log b/log/build_2023-08-18_08-53-55/logger_all.log
new file mode 100644
index 0000000..41eeea3
--- /dev/null
+++ b/log/build_2023-08-18_08-53-55/logger_all.log
@@ -0,0 +1,91 @@
+[0.357s] DEBUG:colcon:Command line arguments: ['/usr/bin/colcon', 'build']
+[0.357s] DEBUG:colcon:Parsed command line arguments: Namespace(log_base=None, log_level=None, verb_name='build', build_base='build', install_base='install', merge_install=False, symlink_install=False, test_result_base=None, continue_on_error=False, executor='parallel', parallel_workers=20, event_handlers=None, ignore_user_meta=False, metas=['./colcon.meta'], base_paths=['.'], packages_ignore=None, packages_ignore_regex=None, paths=None, packages_up_to=None, packages_up_to_regex=None, packages_above=None, packages_above_and_dependencies=None, packages_above_depth=None, packages_select_by_dep=None, packages_skip_by_dep=None, packages_skip_up_to=None, packages_select_build_failed=False, packages_skip_build_finished=False, packages_select_test_failures=False, packages_skip_test_passed=False, packages_select=None, packages_skip=None, packages_select_regex=None, packages_skip_regex=None, packages_start=None, packages_end=None, allow_overriding=[], cmake_args=None, cmake_target=None, cmake_target_skip_unavailable=False, cmake_clean_cache=False, cmake_clean_first=False, cmake_force_configure=False, ament_cmake_args=None, catkin_cmake_args=None, catkin_skip_building_tests=False, verb_parser=, verb_extension=, main=>)
+[0.378s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) check parameters
+[0.378s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) check parameters
+[0.378s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) check parameters
+[0.378s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) check parameters
+[0.378s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) discover
+[0.378s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) discover
+[0.378s] INFO:colcon.colcon_core.package_discovery:Crawling recursively for packages in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[0.378s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ignore', 'ignore_ament_install']
+[0.378s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore'
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore_ament_install'
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_pkg']
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_pkg'
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_meta']
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_meta'
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ros']
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ros'
+[0.393s] DEBUG:colcon.colcon_core.package_identification:Package '.' with type 'ros.ament_python' and name 'rmp220_middleware'
+[0.393s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) using defaults
+[0.393s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) discover
+[0.393s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) using defaults
+[0.393s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) discover
+[0.393s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) using defaults
+[0.412s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) check parameters
+[0.412s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) discover
+[0.415s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 1 installed packages in /home/bjorn/Documents/ros_projects/rmp220_middleware/install
+[0.416s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 458 installed packages in /opt/ros/humble
+[0.418s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) using defaults
+[0.481s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_args' from command line to 'None'
+[0.481s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target' from command line to 'None'
+[0.481s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target_skip_unavailable' from command line to 'False'
+[0.482s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_cache' from command line to 'False'
+[0.482s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_first' from command line to 'False'
+[0.482s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_force_configure' from command line to 'False'
+[0.482s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'ament_cmake_args' from command line to 'None'
+[0.482s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_cmake_args' from command line to 'None'
+[0.482s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_skip_building_tests' from command line to 'False'
+[0.482s] DEBUG:colcon.colcon_core.verb:Building package 'rmp220_middleware' with the following arguments: {'ament_cmake_args': None, 'build_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'catkin_cmake_args': None, 'catkin_skip_building_tests': False, 'cmake_args': None, 'cmake_clean_cache': False, 'cmake_clean_first': False, 'cmake_force_configure': False, 'cmake_target': None, 'cmake_target_skip_unavailable': False, 'install_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware', 'merge_install': False, 'path': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'symlink_install': False, 'test_result_base': None}
+[0.482s] INFO:colcon.colcon_core.executor:Executing jobs using 'parallel' executor
+[0.485s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete
+[0.485s] INFO:colcon.colcon_ros.task.ament_python.build:Building ROS package in '/home/bjorn/Documents/ros_projects/rmp220_middleware' with build type 'ament_python'
+[0.485s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'ament_prefix_path')
+[0.491s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_core.shell.bat': Not used on non-Windows systems
+[0.491s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.ps1'
+[0.492s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.dsv'
+[0.492s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.sh'
+[0.494s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[0.494s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[1.315s] INFO:colcon.colcon_core.task.python.build:Building Python package in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[1.317s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[1.317s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[2.254s] DEBUG:colcon.colcon_core.event_handler.log_command:Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[3.064s] DEBUG:colcon.colcon_core.event_handler.log_command:Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[3.068s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware' for CMake module files
+[3.068s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware' for CMake config files
+[3.069s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib'
+[3.069s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/bin'
+[3.069s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/pkgconfig/rmp220_middleware.pc'
+[3.069s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages'
+[3.069s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'pythonpath')
+[3.070s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.ps1'
+[3.071s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.dsv'
+[3.071s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.sh'
+[3.071s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/bin'
+[3.071s] Level 1:colcon.colcon_core.environment:create_environment_scripts_only(rmp220_middleware)
+[3.073s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.ps1'
+[3.073s] INFO:colcon.colcon_core.shell:Creating package descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.dsv'
+[3.074s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.sh'
+[3.074s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.bash'
+[3.075s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.zsh'
+[3.075s] Level 1:colcon.colcon_core.environment:create_file_with_runtime_dependencies(/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/colcon-core/packages/rmp220_middleware)
+[3.075s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:closing loop
+[3.075s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:loop closed
+[3.075s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete finished with '0'
+[3.075s] DEBUG:colcon.colcon_core.event_reactor:joining thread
+[3.081s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.terminal_notifier': Not used on non-Darwin systems
+[3.081s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.win32': Not used on non-Windows systems
+[3.081s] INFO:colcon.colcon_notification.desktop_notification:Sending desktop notification using 'notify2'
+[3.087s] DEBUG:colcon.colcon_core.event_reactor:joined thread
+[3.089s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.ps1'
+[3.090s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_ps1.py'
+[3.091s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.ps1'
+[3.092s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.sh'
+[3.092s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_sh.py'
+[3.093s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.sh'
+[3.094s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.bash'
+[3.094s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.bash'
+[3.095s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.zsh'
+[3.095s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.zsh'
+[3.096s] INFO:colcon.colcon_core.shell:Creating '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/spawn_shell.bash'
diff --git a/log/build_2023-08-18_08-53-55/rmp220_middleware/command.log b/log/build_2023-08-18_08-53-55/rmp220_middleware/command.log
new file mode 100644
index 0000000..c62a331
--- /dev/null
+++ b/log/build_2023-08-18_08-53-55/rmp220_middleware/command.log
@@ -0,0 +1,2 @@
+Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
diff --git a/log/build_2023-08-18_08-53-55/rmp220_middleware/stderr.log b/log/build_2023-08-18_08-53-55/rmp220_middleware/stderr.log
new file mode 100644
index 0000000..fa7e64a
--- /dev/null
+++ b/log/build_2023-08-18_08-53-55/rmp220_middleware/stderr.log
@@ -0,0 +1,2 @@
+/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'
+ warnings.warn(msg)
diff --git a/log/build_2023-08-18_08-53-55/rmp220_middleware/stdout.log b/log/build_2023-08-18_08-53-55/rmp220_middleware/stdout.log
new file mode 100644
index 0000000..0a05993
--- /dev/null
+++ b/log/build_2023-08-18_08-53-55/rmp220_middleware/stdout.log
@@ -0,0 +1,23 @@
+[39mrunning egg_info[0m
+[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mrunning build[0m
+[39mrunning build_py[0m
+[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mrunning install[0m
+[39mrunning install_lib[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc[0m
+[39mrunning install_data[0m
+[39mrunning install_egg_info[0m
+[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[39mrunning install_scripts[0m
+[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
diff --git a/log/build_2023-08-18_08-53-55/rmp220_middleware/stdout_stderr.log b/log/build_2023-08-18_08-53-55/rmp220_middleware/stdout_stderr.log
new file mode 100644
index 0000000..1e2e301
--- /dev/null
+++ b/log/build_2023-08-18_08-53-55/rmp220_middleware/stdout_stderr.log
@@ -0,0 +1,25 @@
+/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'
+ warnings.warn(msg)
+[39mrunning egg_info[0m
+[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mrunning build[0m
+[39mrunning build_py[0m
+[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mrunning install[0m
+[39mrunning install_lib[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc[0m
+[39mrunning install_data[0m
+[39mrunning install_egg_info[0m
+[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[39mrunning install_scripts[0m
+[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
diff --git a/log/build_2023-08-18_08-53-55/rmp220_middleware/streams.log b/log/build_2023-08-18_08-53-55/rmp220_middleware/streams.log
new file mode 100644
index 0000000..ba324ad
--- /dev/null
+++ b/log/build_2023-08-18_08-53-55/rmp220_middleware/streams.log
@@ -0,0 +1,27 @@
+[1.768s] Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[2.448s] /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'
+[2.449s] warnings.warn(msg)
+[2.465s] [39mrunning egg_info[0m
+[2.465s] [39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[2.465s] [39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[2.466s] [39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[2.466s] [39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[2.466s] [39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[2.467s] [31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[2.468s] [39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.468s] [39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.468s] [39mrunning build[0m
+[2.468s] [39mrunning build_py[0m
+[2.469s] [39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[2.469s] [39mrunning install[0m
+[2.469s] [39mrunning install_lib[0m
+[2.469s] [39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[2.470s] [39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc[0m
+[2.470s] [39mrunning install_data[0m
+[2.470s] [39mrunning install_egg_info[0m
+[2.470s] [39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[2.470s] [39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[2.471s] [39mrunning install_scripts[0m
+[2.472s] [39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[2.472s] [39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
+[2.579s] Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
diff --git a/log/build_2023-08-18_08-57-01/events.log b/log/build_2023-08-18_08-57-01/events.log
new file mode 100644
index 0000000..ff53e56
--- /dev/null
+++ b/log/build_2023-08-18_08-57-01/events.log
@@ -0,0 +1,58 @@
+[0.000000] (-) TimerEvent: {}
+[0.000086] (rmp220_middleware) JobQueued: {'identifier': 'rmp220_middleware', 'dependencies': OrderedDict()}
+[0.000150] (rmp220_middleware) JobStarted: {'identifier': 'rmp220_middleware'}
+[0.098604] (-) TimerEvent: {}
+[0.198805] (-) TimerEvent: {}
+[0.299029] (-) TimerEvent: {}
+[0.399247] (-) TimerEvent: {}
+[0.499437] (-) TimerEvent: {}
+[0.599658] (-) TimerEvent: {}
+[0.699870] (-) TimerEvent: {}
+[0.800134] (-) TimerEvent: {}
+[0.900372] (-) TimerEvent: {}
+[1.000595] (-) TimerEvent: {}
+[1.100836] (-) TimerEvent: {}
+[1.201064] (-) TimerEvent: {}
+[1.301300] (-) TimerEvent: {}
+[1.401537] (-) TimerEvent: {}
+[1.501781] (-) TimerEvent: {}
+[1.602025] (-) TimerEvent: {}
+[1.702279] (-) TimerEvent: {}
+[1.776592] (rmp220_middleware) Command: {'cmd': ['/usr/bin/python3', 'setup.py', 'egg_info', '--egg-base', 'build/rmp220_middleware', 'build', '--build-base', '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build', 'install', '--record', '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log', '--single-version-externally-managed'], 'cwd': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'env': {'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'USER': 'bjorn', 'GIO_MODULE_DIR': '/home/bjorn/snap/code/common/.cache/gio-modules', 'XDG_SESSION_TYPE': 'x11', 'GIT_ASKPASS': '/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass.sh', 'GTK_EXE_PREFIX_VSCODE_SNAP_ORIG': '', 'GDK_BACKEND_VSCODE_SNAP_ORIG': '', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/humble/opt/rviz_ogre_vendor/lib:/opt/ros/humble/lib/x86_64-linux-gnu:/opt/ros/humble/lib', 'HOME': '/home/bjorn', 'CHROME_DESKTOP': 'code-url-handler.desktop', 'LOCPATH_VSCODE_SNAP_ORIG': '', 'TERM_PROGRAM_VERSION': '1.81.1', 'DESKTOP_SESSION': 'ubuntu', 'GTK_PATH': '/snap/code/137/usr/lib/x86_64-linux-gnu/gtk-3.0', 'GTK_IM_MODULE_FILE': '/home/bjorn/snap/code/common/.cache/immodules/immodules.cache', 'GIO_LAUNCHED_DESKTOP_FILE': '/var/lib/snapd/desktop/applications/code_code.desktop', 'ROS_PYTHON_VERSION': '3', 'GNOME_SHELL_SESSION_MODE': 'ubuntu', 'GTK_MODULES': 'gail:atk-bridge', 'GSETTINGS_SCHEMA_DIR_VSCODE_SNAP_ORIG': '', 'VSCODE_GIT_ASKPASS_MAIN': '/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass-main.js', 'VSCODE_GIT_ASKPASS_NODE': '/snap/code/137/usr/share/code/code', 'MANAGERPID': '2405', 'SYSTEMD_EXEC_PID': '2742', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1003/bus', 'COLORTERM': 'truecolor', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '8368', 'IM_CONFIG_PHASE': '1', 'COLCON_PREFIX_PATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install', 'ROS_DISTRO': 'humble', 'GTK_IM_MODULE': 'ibus', 'LOGNAME': 'bjorn', 'ONSHAPE_SECRET_KEY': 'XpUhDOxw7Gp7LV3wT3xDFGXeOGmk2nQmeLlysM7cQU7zv6Bz', 'JOURNAL_STREAM': '8:32520', '_': '/usr/bin/colcon', 'ROS_VERSION': '2', 'XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'XDG_SESSION_CLASS': 'user', 'XDG_DATA_DIRS_VSCODE_SNAP_ORIG': '/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'USERNAME': 'bjorn', 'TERM': 'xterm-256color', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'ROS_LOCALHOST_ONLY': '0', 'WINDOWPATH': '2', 'PATH': '/home/bjorn/.local/bin:/opt/ros/humble/bin:/home/bjorn/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin', 'SESSION_MANAGER': 'local/NUC01:@/tmp/.ICE-unix/2719,unix/NUC01:/tmp/.ICE-unix/2719', 'GTK_EXE_PREFIX': '/snap/code/137/usr', 'INVOCATION_ID': 'fb79c4fd3c1d4f7d9652c6b79482739c', 'XDG_MENU_PREFIX': 'gnome-', 'BAMF_DESKTOP_FILE_HINT': '/var/lib/snapd/desktop/applications/code_code.desktop', 'XDG_RUNTIME_DIR': '/run/user/1003', 'GDK_BACKEND': 'x11', 'DISPLAY': ':1', 'LOCPATH': '/snap/code/137/usr/lib/locale', 'LANG': 'en_US.UTF-8', 'XDG_CURRENT_DESKTOP': 'Unity', 'GIO_MODULE_DIR_VSCODE_SNAP_ORIG': '', 'XMODIFIERS': '@im=ibus', 'XDG_SESSION_DESKTOP': 'ubuntu', 'XAUTHORITY': '/run/user/1003/gdm/Xauthority', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'VSCODE_GIT_IPC_HANDLE': '/run/user/1003/vscode-git-c5b06e67ef.sock', 'TERM_PROGRAM': 'vscode', 'SSH_AGENT_LAUNCHER': 'gnome-keyring', 'SSH_AUTH_SOCK': '/run/user/1003/keyring/ssh', 'GSETTINGS_SCHEMA_DIR': '/home/bjorn/snap/code/137/.local/share/glib-2.0/schemas', 'AMENT_PREFIX_PATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware:/opt/ros/humble', 'ORIGINAL_XDG_CURRENT_DESKTOP': 'ubuntu:GNOME', 'SHELL': '/bin/bash', 'QT_ACCESSIBILITY': '1', 'GDMSESSION': 'ubuntu', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GTK_PATH_VSCODE_SNAP_ORIG': '', 'GTK_IM_MODULE_FILE_VSCODE_SNAP_ORIG': '', 'GPG_AGENT_INFO': '/run/user/1003/gnupg/S.gpg-agent:0:1', 'GJS_DEBUG_OUTPUT': 'stderr', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '--ms-enable-electron-run-as-node', 'QT_IM_MODULE': 'ibus', 'PWD': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'LC_ALL': 'en_US.UTF-8', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'ONSHAPE_ACCESS_KEY': 'twfpigMHe11VE7ZCq2NOANj7', 'XDG_DATA_DIRS': '/home/bjorn/snap/code/137/.local/share:/home/bjorn/snap/code/137:/snap/code/137/usr/share:/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'PYTHONPATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:/opt/ros/humble/lib/python3.10/site-packages:/opt/ros/humble/local/lib/python3.10/dist-packages', 'ONSHAPE_API': 'https://cad.onshape.com', 'COLCON': '1'}, 'shell': False}
+[1.802376] (-) TimerEvent: {}
+[1.902590] (-) TimerEvent: {}
+[2.002786] (-) TimerEvent: {}
+[2.102979] (-) TimerEvent: {}
+[2.203221] (-) TimerEvent: {}
+[2.303469] (-) TimerEvent: {}
+[2.403702] (-) TimerEvent: {}
+[2.479711] (rmp220_middleware) StderrLine: {'line': b"/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'\n"}
+[2.479846] (rmp220_middleware) StderrLine: {'line': b' warnings.warn(msg)\n'}
+[2.496364] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning egg_info\x1b[0m\n'}
+[2.496763] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO\x1b[0m\n'}
+[2.496964] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt\x1b[0m\n'}
+[2.497127] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt\x1b[0m\n'}
+[2.497182] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt\x1b[0m\n'}
+[2.497307] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt\x1b[0m\n'}
+[2.498731] (rmp220_middleware) StdoutLine: {'line': b"\x1b[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)\x1b[0m\n"}
+[2.499070] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.499726] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.499798] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build\x1b[0m\n'}
+[2.499925] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build_py\x1b[0m\n'}
+[2.499999] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware\x1b[0m\n'}
+[2.500048] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install\x1b[0m\n'}
+[2.500175] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_lib\x1b[0m\n'}
+[2.500638] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware\x1b[0m\n'}
+[2.501000] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc\x1b[0m\n'}
+[2.501224] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_data\x1b[0m\n'}
+[2.501533] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_egg_info\x1b[0m\n'}
+[2.501798] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)\x1b[0m\n"}
+[2.501979] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info\x1b[0m\n'}
+[2.502588] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_scripts\x1b[0m\n'}
+[2.503751] (-) TimerEvent: {}
+[2.503920] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware\x1b[0m\n'}
+[2.504185] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'\x1b[0m\n"}
+[2.603883] (-) TimerEvent: {}
+[2.607436] (rmp220_middleware) CommandEnded: {'returncode': 0}
+[2.620562] (rmp220_middleware) JobEnded: {'identifier': 'rmp220_middleware', 'rc': 0}
+[2.621057] (-) EventReactorShutdown: {}
diff --git a/log/build_2023-08-18_08-57-01/logger_all.log b/log/build_2023-08-18_08-57-01/logger_all.log
new file mode 100644
index 0000000..67c9464
--- /dev/null
+++ b/log/build_2023-08-18_08-57-01/logger_all.log
@@ -0,0 +1,91 @@
+[0.359s] DEBUG:colcon:Command line arguments: ['/usr/bin/colcon', 'build']
+[0.359s] DEBUG:colcon:Parsed command line arguments: Namespace(log_base=None, log_level=None, verb_name='build', build_base='build', install_base='install', merge_install=False, symlink_install=False, test_result_base=None, continue_on_error=False, executor='parallel', parallel_workers=20, event_handlers=None, ignore_user_meta=False, metas=['./colcon.meta'], base_paths=['.'], packages_ignore=None, packages_ignore_regex=None, paths=None, packages_up_to=None, packages_up_to_regex=None, packages_above=None, packages_above_and_dependencies=None, packages_above_depth=None, packages_select_by_dep=None, packages_skip_by_dep=None, packages_skip_up_to=None, packages_select_build_failed=False, packages_skip_build_finished=False, packages_select_test_failures=False, packages_skip_test_passed=False, packages_select=None, packages_skip=None, packages_select_regex=None, packages_skip_regex=None, packages_start=None, packages_end=None, allow_overriding=[], cmake_args=None, cmake_target=None, cmake_target_skip_unavailable=False, cmake_clean_cache=False, cmake_clean_first=False, cmake_force_configure=False, ament_cmake_args=None, catkin_cmake_args=None, catkin_skip_building_tests=False, verb_parser=, verb_extension=, main=>)
+[0.379s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) check parameters
+[0.379s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) check parameters
+[0.379s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) check parameters
+[0.379s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) check parameters
+[0.379s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) discover
+[0.379s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) discover
+[0.379s] INFO:colcon.colcon_core.package_discovery:Crawling recursively for packages in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ignore', 'ignore_ament_install']
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore'
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore_ament_install'
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_pkg']
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_pkg'
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_meta']
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_meta'
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ros']
+[0.379s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ros'
+[0.392s] DEBUG:colcon.colcon_core.package_identification:Package '.' with type 'ros.ament_python' and name 'rmp220_middleware'
+[0.392s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) using defaults
+[0.392s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) discover
+[0.392s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) using defaults
+[0.392s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) discover
+[0.392s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) using defaults
+[0.409s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) check parameters
+[0.409s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) discover
+[0.412s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 1 installed packages in /home/bjorn/Documents/ros_projects/rmp220_middleware/install
+[0.414s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 458 installed packages in /opt/ros/humble
+[0.415s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) using defaults
+[0.477s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_args' from command line to 'None'
+[0.477s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target' from command line to 'None'
+[0.477s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target_skip_unavailable' from command line to 'False'
+[0.477s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_cache' from command line to 'False'
+[0.477s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_first' from command line to 'False'
+[0.477s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_force_configure' from command line to 'False'
+[0.477s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'ament_cmake_args' from command line to 'None'
+[0.477s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_cmake_args' from command line to 'None'
+[0.477s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_skip_building_tests' from command line to 'False'
+[0.477s] DEBUG:colcon.colcon_core.verb:Building package 'rmp220_middleware' with the following arguments: {'ament_cmake_args': None, 'build_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'catkin_cmake_args': None, 'catkin_skip_building_tests': False, 'cmake_args': None, 'cmake_clean_cache': False, 'cmake_clean_first': False, 'cmake_force_configure': False, 'cmake_target': None, 'cmake_target_skip_unavailable': False, 'install_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware', 'merge_install': False, 'path': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'symlink_install': False, 'test_result_base': None}
+[0.478s] INFO:colcon.colcon_core.executor:Executing jobs using 'parallel' executor
+[0.480s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete
+[0.480s] INFO:colcon.colcon_ros.task.ament_python.build:Building ROS package in '/home/bjorn/Documents/ros_projects/rmp220_middleware' with build type 'ament_python'
+[0.481s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'ament_prefix_path')
+[0.487s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_core.shell.bat': Not used on non-Windows systems
+[0.487s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.ps1'
+[0.487s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.dsv'
+[0.488s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.sh'
+[0.489s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[0.489s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[1.310s] INFO:colcon.colcon_core.task.python.build:Building Python package in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[1.312s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[1.312s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[2.259s] DEBUG:colcon.colcon_core.event_handler.log_command:Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[3.089s] DEBUG:colcon.colcon_core.event_handler.log_command:Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[3.094s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware' for CMake module files
+[3.095s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware' for CMake config files
+[3.095s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib'
+[3.095s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/bin'
+[3.095s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/pkgconfig/rmp220_middleware.pc'
+[3.096s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages'
+[3.096s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'pythonpath')
+[3.097s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.ps1'
+[3.097s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.dsv'
+[3.097s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.sh'
+[3.098s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/bin'
+[3.098s] Level 1:colcon.colcon_core.environment:create_environment_scripts_only(rmp220_middleware)
+[3.099s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.ps1'
+[3.100s] INFO:colcon.colcon_core.shell:Creating package descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.dsv'
+[3.100s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.sh'
+[3.101s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.bash'
+[3.101s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.zsh'
+[3.102s] Level 1:colcon.colcon_core.environment:create_file_with_runtime_dependencies(/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/colcon-core/packages/rmp220_middleware)
+[3.102s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:closing loop
+[3.102s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:loop closed
+[3.102s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete finished with '0'
+[3.102s] DEBUG:colcon.colcon_core.event_reactor:joining thread
+[3.111s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.terminal_notifier': Not used on non-Darwin systems
+[3.111s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.win32': Not used on non-Windows systems
+[3.111s] INFO:colcon.colcon_notification.desktop_notification:Sending desktop notification using 'notify2'
+[3.117s] DEBUG:colcon.colcon_core.event_reactor:joined thread
+[3.118s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.ps1'
+[3.119s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_ps1.py'
+[3.121s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.ps1'
+[3.122s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.sh'
+[3.122s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_sh.py'
+[3.123s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.sh'
+[3.125s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.bash'
+[3.125s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.bash'
+[3.126s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.zsh'
+[3.127s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.zsh'
+[3.128s] INFO:colcon.colcon_core.shell:Creating '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/spawn_shell.bash'
diff --git a/log/build_2023-08-18_08-57-01/rmp220_middleware/command.log b/log/build_2023-08-18_08-57-01/rmp220_middleware/command.log
new file mode 100644
index 0000000..c62a331
--- /dev/null
+++ b/log/build_2023-08-18_08-57-01/rmp220_middleware/command.log
@@ -0,0 +1,2 @@
+Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
diff --git a/log/build_2023-08-18_08-57-01/rmp220_middleware/stderr.log b/log/build_2023-08-18_08-57-01/rmp220_middleware/stderr.log
new file mode 100644
index 0000000..fa7e64a
--- /dev/null
+++ b/log/build_2023-08-18_08-57-01/rmp220_middleware/stderr.log
@@ -0,0 +1,2 @@
+/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'
+ warnings.warn(msg)
diff --git a/log/build_2023-08-18_08-57-01/rmp220_middleware/stdout.log b/log/build_2023-08-18_08-57-01/rmp220_middleware/stdout.log
new file mode 100644
index 0000000..0a05993
--- /dev/null
+++ b/log/build_2023-08-18_08-57-01/rmp220_middleware/stdout.log
@@ -0,0 +1,23 @@
+[39mrunning egg_info[0m
+[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mrunning build[0m
+[39mrunning build_py[0m
+[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mrunning install[0m
+[39mrunning install_lib[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc[0m
+[39mrunning install_data[0m
+[39mrunning install_egg_info[0m
+[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[39mrunning install_scripts[0m
+[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
diff --git a/log/build_2023-08-18_08-57-01/rmp220_middleware/stdout_stderr.log b/log/build_2023-08-18_08-57-01/rmp220_middleware/stdout_stderr.log
new file mode 100644
index 0000000..1e2e301
--- /dev/null
+++ b/log/build_2023-08-18_08-57-01/rmp220_middleware/stdout_stderr.log
@@ -0,0 +1,25 @@
+/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'
+ warnings.warn(msg)
+[39mrunning egg_info[0m
+[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mrunning build[0m
+[39mrunning build_py[0m
+[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[39mrunning install[0m
+[39mrunning install_lib[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc[0m
+[39mrunning install_data[0m
+[39mrunning install_egg_info[0m
+[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[39mrunning install_scripts[0m
+[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
diff --git a/log/build_2023-08-18_08-57-01/rmp220_middleware/streams.log b/log/build_2023-08-18_08-57-01/rmp220_middleware/streams.log
new file mode 100644
index 0000000..18ef1e0
--- /dev/null
+++ b/log/build_2023-08-18_08-57-01/rmp220_middleware/streams.log
@@ -0,0 +1,27 @@
+[1.777s] Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[2.480s] /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'xt_modules'
+[2.480s] warnings.warn(msg)
+[2.496s] [39mrunning egg_info[0m
+[2.497s] [39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[2.497s] [39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[2.497s] [39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[2.497s] [39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[2.497s] [39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[2.499s] [31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[2.499s] [39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.500s] [39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.500s] [39mrunning build[0m
+[2.500s] [39mrunning build_py[0m
+[2.500s] [39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware[0m
+[2.500s] [39mrunning install[0m
+[2.500s] [39mrunning install_lib[0m
+[2.501s] [39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib/rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware[0m
+[2.501s] [39mbyte-compiling /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware/rmp220_middleware.py to rmp220_middleware.cpython-310.pyc[0m
+[2.501s] [39mrunning install_data[0m
+[2.501s] [39mrunning install_egg_info[0m
+[2.502s] [39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[2.502s] [39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[2.502s] [39mrunning install_scripts[0m
+[2.504s] [39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[2.504s] [39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
+[2.607s] Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
diff --git a/log/build_2023-08-18_09-00-01/events.log b/log/build_2023-08-18_09-00-01/events.log
new file mode 100644
index 0000000..b8d6e3a
--- /dev/null
+++ b/log/build_2023-08-18_09-00-01/events.log
@@ -0,0 +1,72 @@
+[0.000000] (-) TimerEvent: {}
+[0.000084] (rmp220_middleware) JobQueued: {'identifier': 'rmp220_middleware', 'dependencies': OrderedDict()}
+[0.000107] (rmp220_middleware) JobStarted: {'identifier': 'rmp220_middleware'}
+[0.099387] (-) TimerEvent: {}
+[0.199613] (-) TimerEvent: {}
+[0.299813] (-) TimerEvent: {}
+[0.400012] (-) TimerEvent: {}
+[0.500205] (-) TimerEvent: {}
+[0.600403] (-) TimerEvent: {}
+[0.700611] (-) TimerEvent: {}
+[0.800811] (-) TimerEvent: {}
+[0.901033] (-) TimerEvent: {}
+[1.001265] (-) TimerEvent: {}
+[1.101472] (-) TimerEvent: {}
+[1.201719] (-) TimerEvent: {}
+[1.301947] (-) TimerEvent: {}
+[1.402188] (-) TimerEvent: {}
+[1.502443] (-) TimerEvent: {}
+[1.602669] (-) TimerEvent: {}
+[1.702911] (-) TimerEvent: {}
+[1.739955] (rmp220_middleware) Command: {'cmd': ['/usr/bin/python3', 'setup.py', 'egg_info', '--egg-base', 'build/rmp220_middleware', 'build', '--build-base', '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build', 'install', '--record', '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log', '--single-version-externally-managed'], 'cwd': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'env': {'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'USER': 'bjorn', 'GIO_MODULE_DIR': '/home/bjorn/snap/code/common/.cache/gio-modules', 'XDG_SESSION_TYPE': 'x11', 'GIT_ASKPASS': '/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass.sh', 'GTK_EXE_PREFIX_VSCODE_SNAP_ORIG': '', 'GDK_BACKEND_VSCODE_SNAP_ORIG': '', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/humble/opt/rviz_ogre_vendor/lib:/opt/ros/humble/lib/x86_64-linux-gnu:/opt/ros/humble/lib', 'HOME': '/home/bjorn', 'CHROME_DESKTOP': 'code-url-handler.desktop', 'LOCPATH_VSCODE_SNAP_ORIG': '', 'TERM_PROGRAM_VERSION': '1.81.1', 'DESKTOP_SESSION': 'ubuntu', 'GTK_PATH': '/snap/code/137/usr/lib/x86_64-linux-gnu/gtk-3.0', 'GTK_IM_MODULE_FILE': '/home/bjorn/snap/code/common/.cache/immodules/immodules.cache', 'GIO_LAUNCHED_DESKTOP_FILE': '/var/lib/snapd/desktop/applications/code_code.desktop', 'ROS_PYTHON_VERSION': '3', 'GNOME_SHELL_SESSION_MODE': 'ubuntu', 'GTK_MODULES': 'gail:atk-bridge', 'GSETTINGS_SCHEMA_DIR_VSCODE_SNAP_ORIG': '', 'VSCODE_GIT_ASKPASS_MAIN': '/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass-main.js', 'VSCODE_GIT_ASKPASS_NODE': '/snap/code/137/usr/share/code/code', 'MANAGERPID': '2405', 'SYSTEMD_EXEC_PID': '2742', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1003/bus', 'COLORTERM': 'truecolor', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '8368', 'IM_CONFIG_PHASE': '1', 'COLCON_PREFIX_PATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install', 'ROS_DISTRO': 'humble', 'GTK_IM_MODULE': 'ibus', 'LOGNAME': 'bjorn', 'ONSHAPE_SECRET_KEY': 'XpUhDOxw7Gp7LV3wT3xDFGXeOGmk2nQmeLlysM7cQU7zv6Bz', 'JOURNAL_STREAM': '8:32520', '_': '/usr/bin/colcon', 'ROS_VERSION': '2', 'XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'XDG_SESSION_CLASS': 'user', 'XDG_DATA_DIRS_VSCODE_SNAP_ORIG': '/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'USERNAME': 'bjorn', 'TERM': 'xterm-256color', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'ROS_LOCALHOST_ONLY': '0', 'WINDOWPATH': '2', 'PATH': '/home/bjorn/.local/bin:/opt/ros/humble/bin:/home/bjorn/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin', 'SESSION_MANAGER': 'local/NUC01:@/tmp/.ICE-unix/2719,unix/NUC01:/tmp/.ICE-unix/2719', 'GTK_EXE_PREFIX': '/snap/code/137/usr', 'INVOCATION_ID': 'fb79c4fd3c1d4f7d9652c6b79482739c', 'XDG_MENU_PREFIX': 'gnome-', 'BAMF_DESKTOP_FILE_HINT': '/var/lib/snapd/desktop/applications/code_code.desktop', 'XDG_RUNTIME_DIR': '/run/user/1003', 'GDK_BACKEND': 'x11', 'DISPLAY': ':1', 'LOCPATH': '/snap/code/137/usr/lib/locale', 'LANG': 'en_US.UTF-8', 'XDG_CURRENT_DESKTOP': 'Unity', 'GIO_MODULE_DIR_VSCODE_SNAP_ORIG': '', 'XMODIFIERS': '@im=ibus', 'XDG_SESSION_DESKTOP': 'ubuntu', 'XAUTHORITY': '/run/user/1003/gdm/Xauthority', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'VSCODE_GIT_IPC_HANDLE': '/run/user/1003/vscode-git-c5b06e67ef.sock', 'TERM_PROGRAM': 'vscode', 'SSH_AGENT_LAUNCHER': 'gnome-keyring', 'SSH_AUTH_SOCK': '/run/user/1003/keyring/ssh', 'GSETTINGS_SCHEMA_DIR': '/home/bjorn/snap/code/137/.local/share/glib-2.0/schemas', 'AMENT_PREFIX_PATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware:/opt/ros/humble', 'ORIGINAL_XDG_CURRENT_DESKTOP': 'ubuntu:GNOME', 'SHELL': '/bin/bash', 'QT_ACCESSIBILITY': '1', 'GDMSESSION': 'ubuntu', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GTK_PATH_VSCODE_SNAP_ORIG': '', 'GTK_IM_MODULE_FILE_VSCODE_SNAP_ORIG': '', 'GPG_AGENT_INFO': '/run/user/1003/gnupg/S.gpg-agent:0:1', 'GJS_DEBUG_OUTPUT': 'stderr', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '--ms-enable-electron-run-as-node', 'QT_IM_MODULE': 'ibus', 'PWD': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'LC_ALL': 'en_US.UTF-8', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'ONSHAPE_ACCESS_KEY': 'twfpigMHe11VE7ZCq2NOANj7', 'XDG_DATA_DIRS': '/home/bjorn/snap/code/137/.local/share:/home/bjorn/snap/code/137:/snap/code/137/usr/share:/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'PYTHONPATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:/opt/ros/humble/lib/python3.10/site-packages:/opt/ros/humble/local/lib/python3.10/dist-packages', 'ONSHAPE_API': 'https://cad.onshape.com', 'COLCON': '1'}, 'shell': False}
+[1.803020] (-) TimerEvent: {}
+[1.903244] (-) TimerEvent: {}
+[2.003442] (-) TimerEvent: {}
+[2.103663] (-) TimerEvent: {}
+[2.203857] (-) TimerEvent: {}
+[2.304058] (-) TimerEvent: {}
+[2.404303] (-) TimerEvent: {}
+[2.446710] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning egg_info\x1b[0m\n'}
+[2.447065] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO\x1b[0m\n'}
+[2.447167] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt\x1b[0m\n'}
+[2.447315] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt\x1b[0m\n'}
+[2.447506] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt\x1b[0m\n'}
+[2.447594] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt\x1b[0m\n'}
+[2.449104] (rmp220_middleware) StdoutLine: {'line': b"\x1b[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)\x1b[0m\n"}
+[2.450020] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.450588] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.450662] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build\x1b[0m\n'}
+[2.450711] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build_py\x1b[0m\n'}
+[2.450769] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10\x1b[0m\n'}
+[2.450841] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware\x1b[0m\n'}
+[2.450889] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware\x1b[0m\n'}
+[2.450948] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build_ext\x1b[0m\n'}
+[2.451727] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mbuilding 'rmp220_middleware' extension\x1b[0m\n"}
+[2.453386] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mC compiler: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC\n'}
+[2.453462] (rmp220_middleware) StdoutLine: {'line': b'\x1b[0m\n'}
+[2.453510] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10\x1b[0m\n'}
+[2.453557] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware\x1b[0m\n'}
+[2.453634] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mcompile options: '-I/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/include -I/usr/include/python3.10 -c'\x1b[0m\n"}
+[2.453681] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mx86_64-linux-gnu-gcc: rmp220_middleware/rmp220_middleware.c\x1b[0m\n'}
+[2.504418] (-) TimerEvent: {}
+[2.604673] (-) TimerEvent: {}
+[2.704920] (-) TimerEvent: {}
+[2.805168] (-) TimerEvent: {}
+[2.905415] (-) TimerEvent: {}
+[3.005681] (-) TimerEvent: {}
+[3.072823] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mx86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o -o /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so\x1b[0m\n'}
+[3.088275] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install\x1b[0m\n'}
+[3.088520] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_lib\x1b[0m\n'}
+[3.089075] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages\x1b[0m\n'}
+[3.089634] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_data\x1b[0m\n'}
+[3.090030] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_egg_info\x1b[0m\n'}
+[3.090325] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)\x1b[0m\n"}
+[3.090508] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info\x1b[0m\n'}
+[3.091077] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_scripts\x1b[0m\n'}
+[3.092361] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware\x1b[0m\n'}
+[3.092613] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'\x1b[0m\n"}
+[3.105804] (-) TimerEvent: {}
+[3.206043] (-) TimerEvent: {}
+[3.207307] (rmp220_middleware) CommandEnded: {'returncode': 0}
+[3.227475] (rmp220_middleware) JobEnded: {'identifier': 'rmp220_middleware', 'rc': 0}
+[3.227990] (-) EventReactorShutdown: {}
diff --git a/log/build_2023-08-18_09-00-01/logger_all.log b/log/build_2023-08-18_09-00-01/logger_all.log
new file mode 100644
index 0000000..e5affc9
--- /dev/null
+++ b/log/build_2023-08-18_09-00-01/logger_all.log
@@ -0,0 +1,91 @@
+[0.354s] DEBUG:colcon:Command line arguments: ['/usr/bin/colcon', 'build']
+[0.354s] DEBUG:colcon:Parsed command line arguments: Namespace(log_base=None, log_level=None, verb_name='build', build_base='build', install_base='install', merge_install=False, symlink_install=False, test_result_base=None, continue_on_error=False, executor='parallel', parallel_workers=20, event_handlers=None, ignore_user_meta=False, metas=['./colcon.meta'], base_paths=['.'], packages_ignore=None, packages_ignore_regex=None, paths=None, packages_up_to=None, packages_up_to_regex=None, packages_above=None, packages_above_and_dependencies=None, packages_above_depth=None, packages_select_by_dep=None, packages_skip_by_dep=None, packages_skip_up_to=None, packages_select_build_failed=False, packages_skip_build_finished=False, packages_select_test_failures=False, packages_skip_test_passed=False, packages_select=None, packages_skip=None, packages_select_regex=None, packages_skip_regex=None, packages_start=None, packages_end=None, allow_overriding=[], cmake_args=None, cmake_target=None, cmake_target_skip_unavailable=False, cmake_clean_cache=False, cmake_clean_first=False, cmake_force_configure=False, ament_cmake_args=None, catkin_cmake_args=None, catkin_skip_building_tests=False, verb_parser=, verb_extension=, main=>)
+[0.374s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) check parameters
+[0.374s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) check parameters
+[0.374s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) check parameters
+[0.374s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) check parameters
+[0.374s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) discover
+[0.374s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) discover
+[0.374s] INFO:colcon.colcon_core.package_discovery:Crawling recursively for packages in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[0.374s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ignore', 'ignore_ament_install']
+[0.375s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore'
+[0.375s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore_ament_install'
+[0.375s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_pkg']
+[0.375s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_pkg'
+[0.375s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_meta']
+[0.375s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_meta'
+[0.375s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ros']
+[0.375s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ros'
+[0.388s] DEBUG:colcon.colcon_core.package_identification:Package '.' with type 'ros.ament_python' and name 'rmp220_middleware'
+[0.388s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) using defaults
+[0.388s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) discover
+[0.388s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) using defaults
+[0.388s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) discover
+[0.388s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) using defaults
+[0.406s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) check parameters
+[0.406s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) discover
+[0.409s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 1 installed packages in /home/bjorn/Documents/ros_projects/rmp220_middleware/install
+[0.411s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 458 installed packages in /opt/ros/humble
+[0.413s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) using defaults
+[0.473s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_args' from command line to 'None'
+[0.473s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target' from command line to 'None'
+[0.473s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target_skip_unavailable' from command line to 'False'
+[0.473s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_cache' from command line to 'False'
+[0.473s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_first' from command line to 'False'
+[0.473s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_force_configure' from command line to 'False'
+[0.473s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'ament_cmake_args' from command line to 'None'
+[0.473s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_cmake_args' from command line to 'None'
+[0.474s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_skip_building_tests' from command line to 'False'
+[0.474s] DEBUG:colcon.colcon_core.verb:Building package 'rmp220_middleware' with the following arguments: {'ament_cmake_args': None, 'build_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'catkin_cmake_args': None, 'catkin_skip_building_tests': False, 'cmake_args': None, 'cmake_clean_cache': False, 'cmake_clean_first': False, 'cmake_force_configure': False, 'cmake_target': None, 'cmake_target_skip_unavailable': False, 'install_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware', 'merge_install': False, 'path': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'symlink_install': False, 'test_result_base': None}
+[0.474s] INFO:colcon.colcon_core.executor:Executing jobs using 'parallel' executor
+[0.476s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete
+[0.476s] INFO:colcon.colcon_ros.task.ament_python.build:Building ROS package in '/home/bjorn/Documents/ros_projects/rmp220_middleware' with build type 'ament_python'
+[0.477s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'ament_prefix_path')
+[0.483s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_core.shell.bat': Not used on non-Windows systems
+[0.483s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.ps1'
+[0.483s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.dsv'
+[0.484s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.sh'
+[0.485s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[0.485s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[1.290s] INFO:colcon.colcon_core.task.python.build:Building Python package in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[1.292s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[1.292s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[2.218s] DEBUG:colcon.colcon_core.event_handler.log_command:Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[3.684s] DEBUG:colcon.colcon_core.event_handler.log_command:Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[3.692s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware' for CMake module files
+[3.692s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware' for CMake config files
+[3.693s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib'
+[3.693s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/bin'
+[3.693s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/pkgconfig/rmp220_middleware.pc'
+[3.693s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages'
+[3.693s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'pythonpath')
+[3.696s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.ps1'
+[3.696s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.dsv'
+[3.697s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.sh'
+[3.697s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/bin'
+[3.697s] Level 1:colcon.colcon_core.environment:create_environment_scripts_only(rmp220_middleware)
+[3.700s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.ps1'
+[3.701s] INFO:colcon.colcon_core.shell:Creating package descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.dsv'
+[3.702s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.sh'
+[3.702s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.bash'
+[3.703s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.zsh'
+[3.704s] Level 1:colcon.colcon_core.environment:create_file_with_runtime_dependencies(/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/colcon-core/packages/rmp220_middleware)
+[3.704s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:closing loop
+[3.705s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:loop closed
+[3.705s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete finished with '0'
+[3.705s] DEBUG:colcon.colcon_core.event_reactor:joining thread
+[3.711s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.terminal_notifier': Not used on non-Darwin systems
+[3.711s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.win32': Not used on non-Windows systems
+[3.711s] INFO:colcon.colcon_notification.desktop_notification:Sending desktop notification using 'notify2'
+[3.717s] DEBUG:colcon.colcon_core.event_reactor:joined thread
+[3.719s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.ps1'
+[3.720s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_ps1.py'
+[3.720s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.ps1'
+[3.722s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.sh'
+[3.722s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_sh.py'
+[3.722s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.sh'
+[3.723s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.bash'
+[3.724s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.bash'
+[3.725s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.zsh'
+[3.725s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.zsh'
+[3.726s] INFO:colcon.colcon_core.shell:Creating '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/spawn_shell.bash'
diff --git a/log/build_2023-08-18_09-00-01/rmp220_middleware/command.log b/log/build_2023-08-18_09-00-01/rmp220_middleware/command.log
new file mode 100644
index 0000000..c62a331
--- /dev/null
+++ b/log/build_2023-08-18_09-00-01/rmp220_middleware/command.log
@@ -0,0 +1,2 @@
+Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
diff --git a/log/build_2023-08-18_09-00-01/rmp220_middleware/stderr.log b/log/build_2023-08-18_09-00-01/rmp220_middleware/stderr.log
new file mode 100644
index 0000000..e69de29
diff --git a/log/build_2023-08-18_09-00-01/rmp220_middleware/stdout.log b/log/build_2023-08-18_09-00-01/rmp220_middleware/stdout.log
new file mode 100644
index 0000000..a5b3037
--- /dev/null
+++ b/log/build_2023-08-18_09-00-01/rmp220_middleware/stdout.log
@@ -0,0 +1,33 @@
+[39mrunning egg_info[0m
+[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mrunning build[0m
+[39mrunning build_py[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware[0m
+[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware[0m
+[39mrunning build_ext[0m
+[39mbuilding 'rmp220_middleware' extension[0m
+[39mC compiler: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
+[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware[0m
+[39mcompile options: '-I/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/include -I/usr/include/python3.10 -c'[0m
+[39mx86_64-linux-gnu-gcc: rmp220_middleware/rmp220_middleware.c[0m
+[39mx86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o -o /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so[0m
+[39mrunning install[0m
+[39mrunning install_lib[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages[0m
+[39mrunning install_data[0m
+[39mrunning install_egg_info[0m
+[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[39mrunning install_scripts[0m
+[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
diff --git a/log/build_2023-08-18_09-00-01/rmp220_middleware/stdout_stderr.log b/log/build_2023-08-18_09-00-01/rmp220_middleware/stdout_stderr.log
new file mode 100644
index 0000000..a5b3037
--- /dev/null
+++ b/log/build_2023-08-18_09-00-01/rmp220_middleware/stdout_stderr.log
@@ -0,0 +1,33 @@
+[39mrunning egg_info[0m
+[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mrunning build[0m
+[39mrunning build_py[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware[0m
+[39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware[0m
+[39mrunning build_ext[0m
+[39mbuilding 'rmp220_middleware' extension[0m
+[39mC compiler: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
+[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10[0m
+[39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware[0m
+[39mcompile options: '-I/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/include -I/usr/include/python3.10 -c'[0m
+[39mx86_64-linux-gnu-gcc: rmp220_middleware/rmp220_middleware.c[0m
+[39mx86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o -o /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so[0m
+[39mrunning install[0m
+[39mrunning install_lib[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages[0m
+[39mrunning install_data[0m
+[39mrunning install_egg_info[0m
+[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[39mrunning install_scripts[0m
+[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
diff --git a/log/build_2023-08-18_09-00-01/rmp220_middleware/streams.log b/log/build_2023-08-18_09-00-01/rmp220_middleware/streams.log
new file mode 100644
index 0000000..7ec7ecc
--- /dev/null
+++ b/log/build_2023-08-18_09-00-01/rmp220_middleware/streams.log
@@ -0,0 +1,35 @@
+[1.740s] Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[2.447s] [39mrunning egg_info[0m
+[2.447s] [39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[2.447s] [39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[2.447s] [39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[2.447s] [39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[2.448s] [39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[2.449s] [31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[2.450s] [39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.451s] [39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.451s] [39mrunning build[0m
+[2.451s] [39mrunning build_py[0m
+[2.451s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10[0m
+[2.451s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware[0m
+[2.451s] [39mcopying rmp220_middleware/rmp220_middleware.py -> /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware[0m
+[2.451s] [39mrunning build_ext[0m
+[2.452s] [39mbuilding 'rmp220_middleware' extension[0m
+[2.453s] [39mC compiler: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
+[2.453s] [0m
+[2.453s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10[0m
+[2.453s] [39mcreating /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware[0m
+[2.454s] [39mcompile options: '-I/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/include -I/usr/include/python3.10 -c'[0m
+[2.454s] [39mx86_64-linux-gnu-gcc: rmp220_middleware/rmp220_middleware.c[0m
+[3.073s] [39mx86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o -o /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so[0m
+[3.088s] [39mrunning install[0m
+[3.088s] [39mrunning install_lib[0m
+[3.089s] [39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages[0m
+[3.090s] [39mrunning install_data[0m
+[3.090s] [39mrunning install_egg_info[0m
+[3.090s] [39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[3.090s] [39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[3.091s] [39mrunning install_scripts[0m
+[3.092s] [39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[3.093s] [39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
+[3.207s] Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
diff --git a/log/build_2023-08-18_09-00-46/events.log b/log/build_2023-08-18_09-00-46/events.log
new file mode 100644
index 0000000..15887f2
--- /dev/null
+++ b/log/build_2023-08-18_09-00-46/events.log
@@ -0,0 +1,8 @@
+[0.000000] (-) TimerEvent: {}
+[0.000082] (rmp220_middleware) JobQueued: {'identifier': 'rmp220_middleware', 'dependencies': OrderedDict()}
+[0.000104] (rmp220_middleware) JobStarted: {'identifier': 'rmp220_middleware'}
+[0.098112] (-) TimerEvent: {}
+[0.198405] (-) TimerEvent: {}
+[0.270818] (rmp220_middleware) StderrLine: {'line': b'Traceback (most recent call last):\n File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__\n rc = await self.task(*args, **kwargs)\n File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 93, in __call__\n return await task_method(*args, **kwargs)\n File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 51, in build\n setup_py_data = get_setup_data(self.context.pkg, env)\n File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data\n return dict(pkg.metadata[key](env))\n File "/usr/lib/python3/dist-packages/colcon_ros/package_augmentation/ros_ament_python.py", line 57, in getter\n return get_setup_information(\n File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 241, in get_setup_information\n _setup_information_cache[hashable_env] = _get_setup_information(\n File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 288, in _get_setup_information\n result = subprocess.run(\n File "/usr/lib/python3.10/subprocess.py", line 526, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'/usr/bin/python3\', \'-c\', \'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \\\'setup.py\\\', script_args=(\\\'--dry-run\\\',), stop_after=\\\'config\\\');skip_keys = (\\\'cmdclass\\\', \\\'distclass\\\', \\\'ext_modules\\\', \\\'metadata\\\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\\\'_\\\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\\\'metadata\\\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\\\'license_files\\\', \\\'provides_extras\\\')};sys.stdout.buffer.write(repr(data).encode(\\\'utf-8\\\'))\']\' returned non-zero exit status 1.\n'}
+[0.271265] (rmp220_middleware) JobEnded: {'identifier': 'rmp220_middleware', 'rc': 1}
+[0.281276] (-) EventReactorShutdown: {}
diff --git a/log/build_2023-08-18_09-00-46/logger_all.log b/log/build_2023-08-18_09-00-46/logger_all.log
new file mode 100644
index 0000000..ee5eea6
--- /dev/null
+++ b/log/build_2023-08-18_09-00-46/logger_all.log
@@ -0,0 +1,68 @@
+[0.360s] DEBUG:colcon:Command line arguments: ['/usr/bin/colcon', 'build']
+[0.360s] DEBUG:colcon:Parsed command line arguments: Namespace(log_base=None, log_level=None, verb_name='build', build_base='build', install_base='install', merge_install=False, symlink_install=False, test_result_base=None, continue_on_error=False, executor='parallel', parallel_workers=20, event_handlers=None, ignore_user_meta=False, metas=['./colcon.meta'], base_paths=['.'], packages_ignore=None, packages_ignore_regex=None, paths=None, packages_up_to=None, packages_up_to_regex=None, packages_above=None, packages_above_and_dependencies=None, packages_above_depth=None, packages_select_by_dep=None, packages_skip_by_dep=None, packages_skip_up_to=None, packages_select_build_failed=False, packages_skip_build_finished=False, packages_select_test_failures=False, packages_skip_test_passed=False, packages_select=None, packages_skip=None, packages_select_regex=None, packages_skip_regex=None, packages_start=None, packages_end=None, allow_overriding=[], cmake_args=None, cmake_target=None, cmake_target_skip_unavailable=False, cmake_clean_cache=False, cmake_clean_first=False, cmake_force_configure=False, ament_cmake_args=None, catkin_cmake_args=None, catkin_skip_building_tests=False, verb_parser=, verb_extension=, main=>)
+[0.380s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) check parameters
+[0.380s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) check parameters
+[0.380s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) check parameters
+[0.380s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) check parameters
+[0.380s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) discover
+[0.380s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) discover
+[0.380s] INFO:colcon.colcon_core.package_discovery:Crawling recursively for packages in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[0.380s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ignore', 'ignore_ament_install']
+[0.380s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore'
+[0.380s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore_ament_install'
+[0.380s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_pkg']
+[0.380s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_pkg'
+[0.380s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_meta']
+[0.380s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_meta'
+[0.381s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ros']
+[0.381s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ros'
+[0.393s] DEBUG:colcon.colcon_core.package_identification:Package '.' with type 'ros.ament_python' and name 'rmp220_middleware'
+[0.393s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) using defaults
+[0.393s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) discover
+[0.393s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) using defaults
+[0.394s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) discover
+[0.394s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) using defaults
+[0.411s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) check parameters
+[0.411s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) discover
+[0.414s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 1 installed packages in /home/bjorn/Documents/ros_projects/rmp220_middleware/install
+[0.416s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 458 installed packages in /opt/ros/humble
+[0.418s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) using defaults
+[0.480s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_args' from command line to 'None'
+[0.480s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target' from command line to 'None'
+[0.480s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target_skip_unavailable' from command line to 'False'
+[0.480s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_cache' from command line to 'False'
+[0.480s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_first' from command line to 'False'
+[0.480s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_force_configure' from command line to 'False'
+[0.480s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'ament_cmake_args' from command line to 'None'
+[0.480s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_cmake_args' from command line to 'None'
+[0.480s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_skip_building_tests' from command line to 'False'
+[0.480s] DEBUG:colcon.colcon_core.verb:Building package 'rmp220_middleware' with the following arguments: {'ament_cmake_args': None, 'build_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'catkin_cmake_args': None, 'catkin_skip_building_tests': False, 'cmake_args': None, 'cmake_clean_cache': False, 'cmake_clean_first': False, 'cmake_force_configure': False, 'cmake_target': None, 'cmake_target_skip_unavailable': False, 'install_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware', 'merge_install': False, 'path': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'symlink_install': False, 'test_result_base': None}
+[0.480s] INFO:colcon.colcon_core.executor:Executing jobs using 'parallel' executor
+[0.483s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete
+[0.483s] INFO:colcon.colcon_ros.task.ament_python.build:Building ROS package in '/home/bjorn/Documents/ros_projects/rmp220_middleware' with build type 'ament_python'
+[0.483s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'ament_prefix_path')
+[0.489s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_core.shell.bat': Not used on non-Windows systems
+[0.489s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.ps1'
+[0.489s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.dsv'
+[0.490s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.sh'
+[0.492s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[0.492s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[0.765s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:closing loop
+[0.766s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:loop closed
+[0.766s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete finished with 'Command '['/usr/bin/python3', '-c', 'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \'setup.py\', script_args=(\'--dry-run\',), stop_after=\'config\');skip_keys = (\'cmdclass\', \'distclass\', \'ext_modules\', \'metadata\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\'_\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\'metadata\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\'license_files\', \'provides_extras\')};sys.stdout.buffer.write(repr(data).encode(\'utf-8\'))']' returned non-zero exit status 1.'
+[0.766s] DEBUG:colcon.colcon_core.event_reactor:joining thread
+[0.772s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.terminal_notifier': Not used on non-Darwin systems
+[0.772s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.win32': Not used on non-Windows systems
+[0.772s] INFO:colcon.colcon_notification.desktop_notification:Sending desktop notification using 'notify2'
+[0.778s] DEBUG:colcon.colcon_core.event_reactor:joined thread
+[0.779s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.ps1'
+[0.780s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_ps1.py'
+[0.781s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.ps1'
+[0.782s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.sh'
+[0.782s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_sh.py'
+[0.782s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.sh'
+[0.783s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.bash'
+[0.783s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.bash'
+[0.784s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.zsh'
+[0.785s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.zsh'
+[0.786s] INFO:colcon.colcon_core.shell:Creating '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/spawn_shell.bash'
diff --git a/log/build_2023-08-18_09-00-46/rmp220_middleware/command.log b/log/build_2023-08-18_09-00-46/rmp220_middleware/command.log
new file mode 100644
index 0000000..e69de29
diff --git a/log/build_2023-08-18_09-00-46/rmp220_middleware/stderr.log b/log/build_2023-08-18_09-00-46/rmp220_middleware/stderr.log
new file mode 100644
index 0000000..68e86e5
--- /dev/null
+++ b/log/build_2023-08-18_09-00-46/rmp220_middleware/stderr.log
@@ -0,0 +1,18 @@
+Traceback (most recent call last):
+ File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__
+ rc = await self.task(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 93, in __call__
+ return await task_method(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 51, in build
+ setup_py_data = get_setup_data(self.context.pkg, env)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data
+ return dict(pkg.metadata[key](env))
+ File "/usr/lib/python3/dist-packages/colcon_ros/package_augmentation/ros_ament_python.py", line 57, in getter
+ return get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 241, in get_setup_information
+ _setup_information_cache[hashable_env] = _get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 288, in _get_setup_information
+ result = subprocess.run(
+ File "/usr/lib/python3.10/subprocess.py", line 526, in run
+ raise CalledProcessError(retcode, process.args,
+subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \'setup.py\', script_args=(\'--dry-run\',), stop_after=\'config\');skip_keys = (\'cmdclass\', \'distclass\', \'ext_modules\', \'metadata\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\'_\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\'metadata\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\'license_files\', \'provides_extras\')};sys.stdout.buffer.write(repr(data).encode(\'utf-8\'))']' returned non-zero exit status 1.
diff --git a/log/build_2023-08-18_09-00-46/rmp220_middleware/stdout.log b/log/build_2023-08-18_09-00-46/rmp220_middleware/stdout.log
new file mode 100644
index 0000000..e69de29
diff --git a/log/build_2023-08-18_09-00-46/rmp220_middleware/stdout_stderr.log b/log/build_2023-08-18_09-00-46/rmp220_middleware/stdout_stderr.log
new file mode 100644
index 0000000..68e86e5
--- /dev/null
+++ b/log/build_2023-08-18_09-00-46/rmp220_middleware/stdout_stderr.log
@@ -0,0 +1,18 @@
+Traceback (most recent call last):
+ File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__
+ rc = await self.task(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 93, in __call__
+ return await task_method(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 51, in build
+ setup_py_data = get_setup_data(self.context.pkg, env)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data
+ return dict(pkg.metadata[key](env))
+ File "/usr/lib/python3/dist-packages/colcon_ros/package_augmentation/ros_ament_python.py", line 57, in getter
+ return get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 241, in get_setup_information
+ _setup_information_cache[hashable_env] = _get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 288, in _get_setup_information
+ result = subprocess.run(
+ File "/usr/lib/python3.10/subprocess.py", line 526, in run
+ raise CalledProcessError(retcode, process.args,
+subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \'setup.py\', script_args=(\'--dry-run\',), stop_after=\'config\');skip_keys = (\'cmdclass\', \'distclass\', \'ext_modules\', \'metadata\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\'_\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\'metadata\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\'license_files\', \'provides_extras\')};sys.stdout.buffer.write(repr(data).encode(\'utf-8\'))']' returned non-zero exit status 1.
diff --git a/log/build_2023-08-18_09-00-46/rmp220_middleware/streams.log b/log/build_2023-08-18_09-00-46/rmp220_middleware/streams.log
new file mode 100644
index 0000000..05f6cfb
--- /dev/null
+++ b/log/build_2023-08-18_09-00-46/rmp220_middleware/streams.log
@@ -0,0 +1,18 @@
+[0.271s] Traceback (most recent call last):
+ File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__
+ rc = await self.task(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 93, in __call__
+ return await task_method(*args, **kwargs)
+ File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 51, in build
+ setup_py_data = get_setup_data(self.context.pkg, env)
+ File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 20, in get_setup_data
+ return dict(pkg.metadata[key](env))
+ File "/usr/lib/python3/dist-packages/colcon_ros/package_augmentation/ros_ament_python.py", line 57, in getter
+ return get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 241, in get_setup_information
+ _setup_information_cache[hashable_env] = _get_setup_information(
+ File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 288, in _get_setup_information
+ result = subprocess.run(
+ File "/usr/lib/python3.10/subprocess.py", line 526, in run
+ raise CalledProcessError(retcode, process.args,
+subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', 'import sys;from contextlib import suppress;exec("with suppress(ImportError): from setuptools.extern.packaging.specifiers import SpecifierSet");exec("with suppress(ImportError): from packaging.specifiers import SpecifierSet");from distutils.core import run_setup;dist = run_setup( \'setup.py\', script_args=(\'--dry-run\',), stop_after=\'config\');skip_keys = (\'cmdclass\', \'distclass\', \'ext_modules\', \'metadata\');data = { key: value for key, value in dist.__dict__.items() if ( not key.startswith(\'_\') and not callable(value) and key not in skip_keys and key not in dist.display_option_names )};data[\'metadata\'] = { k: v for k, v in dist.metadata.__dict__.items() if k not in (\'license_files\', \'provides_extras\')};sys.stdout.buffer.write(repr(data).encode(\'utf-8\'))']' returned non-zero exit status 1.
diff --git a/log/build_2023-08-18_09-01-39/events.log b/log/build_2023-08-18_09-01-39/events.log
new file mode 100644
index 0000000..ab7392f
--- /dev/null
+++ b/log/build_2023-08-18_09-01-39/events.log
@@ -0,0 +1,69 @@
+[0.000000] (-) TimerEvent: {}
+[0.000413] (rmp220_middleware) JobQueued: {'identifier': 'rmp220_middleware', 'dependencies': OrderedDict()}
+[0.000439] (rmp220_middleware) JobStarted: {'identifier': 'rmp220_middleware'}
+[0.099652] (-) TimerEvent: {}
+[0.199886] (-) TimerEvent: {}
+[0.300116] (-) TimerEvent: {}
+[0.400352] (-) TimerEvent: {}
+[0.500575] (-) TimerEvent: {}
+[0.600806] (-) TimerEvent: {}
+[0.701023] (-) TimerEvent: {}
+[0.801235] (-) TimerEvent: {}
+[0.901466] (-) TimerEvent: {}
+[1.001719] (-) TimerEvent: {}
+[1.101977] (-) TimerEvent: {}
+[1.202222] (-) TimerEvent: {}
+[1.302471] (-) TimerEvent: {}
+[1.402737] (-) TimerEvent: {}
+[1.503005] (-) TimerEvent: {}
+[1.603263] (-) TimerEvent: {}
+[1.703546] (-) TimerEvent: {}
+[1.766621] (rmp220_middleware) Command: {'cmd': ['/usr/bin/python3', 'setup.py', 'egg_info', '--egg-base', 'build/rmp220_middleware', 'build', '--build-base', '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build', 'install', '--record', '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log', '--single-version-externally-managed'], 'cwd': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'env': {'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'USER': 'bjorn', 'GIO_MODULE_DIR': '/home/bjorn/snap/code/common/.cache/gio-modules', 'XDG_SESSION_TYPE': 'x11', 'GIT_ASKPASS': '/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass.sh', 'GTK_EXE_PREFIX_VSCODE_SNAP_ORIG': '', 'GDK_BACKEND_VSCODE_SNAP_ORIG': '', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/humble/opt/rviz_ogre_vendor/lib:/opt/ros/humble/lib/x86_64-linux-gnu:/opt/ros/humble/lib', 'HOME': '/home/bjorn', 'CHROME_DESKTOP': 'code-url-handler.desktop', 'LOCPATH_VSCODE_SNAP_ORIG': '', 'TERM_PROGRAM_VERSION': '1.81.1', 'DESKTOP_SESSION': 'ubuntu', 'GTK_PATH': '/snap/code/137/usr/lib/x86_64-linux-gnu/gtk-3.0', 'GTK_IM_MODULE_FILE': '/home/bjorn/snap/code/common/.cache/immodules/immodules.cache', 'GIO_LAUNCHED_DESKTOP_FILE': '/var/lib/snapd/desktop/applications/code_code.desktop', 'ROS_PYTHON_VERSION': '3', 'GNOME_SHELL_SESSION_MODE': 'ubuntu', 'GTK_MODULES': 'gail:atk-bridge', 'GSETTINGS_SCHEMA_DIR_VSCODE_SNAP_ORIG': '', 'VSCODE_GIT_ASKPASS_MAIN': '/snap/code/137/usr/share/code/resources/app/extensions/git/dist/askpass-main.js', 'VSCODE_GIT_ASKPASS_NODE': '/snap/code/137/usr/share/code/code', 'MANAGERPID': '2405', 'SYSTEMD_EXEC_PID': '2742', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1003/bus', 'COLORTERM': 'truecolor', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '8368', 'IM_CONFIG_PHASE': '1', 'COLCON_PREFIX_PATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install', 'ROS_DISTRO': 'humble', 'GTK_IM_MODULE': 'ibus', 'LOGNAME': 'bjorn', 'ONSHAPE_SECRET_KEY': 'XpUhDOxw7Gp7LV3wT3xDFGXeOGmk2nQmeLlysM7cQU7zv6Bz', 'JOURNAL_STREAM': '8:32520', '_': '/usr/bin/colcon', 'ROS_VERSION': '2', 'XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'XDG_SESSION_CLASS': 'user', 'XDG_DATA_DIRS_VSCODE_SNAP_ORIG': '/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'USERNAME': 'bjorn', 'TERM': 'xterm-256color', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'ROS_LOCALHOST_ONLY': '0', 'WINDOWPATH': '2', 'PATH': '/home/bjorn/.local/bin:/opt/ros/humble/bin:/home/bjorn/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin', 'SESSION_MANAGER': 'local/NUC01:@/tmp/.ICE-unix/2719,unix/NUC01:/tmp/.ICE-unix/2719', 'GTK_EXE_PREFIX': '/snap/code/137/usr', 'INVOCATION_ID': 'fb79c4fd3c1d4f7d9652c6b79482739c', 'XDG_MENU_PREFIX': 'gnome-', 'BAMF_DESKTOP_FILE_HINT': '/var/lib/snapd/desktop/applications/code_code.desktop', 'XDG_RUNTIME_DIR': '/run/user/1003', 'GDK_BACKEND': 'x11', 'DISPLAY': ':1', 'LOCPATH': '/snap/code/137/usr/lib/locale', 'LANG': 'en_US.UTF-8', 'XDG_CURRENT_DESKTOP': 'Unity', 'GIO_MODULE_DIR_VSCODE_SNAP_ORIG': '', 'XMODIFIERS': '@im=ibus', 'XDG_SESSION_DESKTOP': 'ubuntu', 'XAUTHORITY': '/run/user/1003/gdm/Xauthority', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'VSCODE_GIT_IPC_HANDLE': '/run/user/1003/vscode-git-c5b06e67ef.sock', 'TERM_PROGRAM': 'vscode', 'SSH_AGENT_LAUNCHER': 'gnome-keyring', 'SSH_AUTH_SOCK': '/run/user/1003/keyring/ssh', 'GSETTINGS_SCHEMA_DIR': '/home/bjorn/snap/code/137/.local/share/glib-2.0/schemas', 'AMENT_PREFIX_PATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware:/opt/ros/humble', 'ORIGINAL_XDG_CURRENT_DESKTOP': 'ubuntu:GNOME', 'SHELL': '/bin/bash', 'QT_ACCESSIBILITY': '1', 'GDMSESSION': 'ubuntu', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GTK_PATH_VSCODE_SNAP_ORIG': '', 'GTK_IM_MODULE_FILE_VSCODE_SNAP_ORIG': '', 'GPG_AGENT_INFO': '/run/user/1003/gnupg/S.gpg-agent:0:1', 'GJS_DEBUG_OUTPUT': 'stderr', 'VSCODE_GIT_ASKPASS_EXTRA_ARGS': '--ms-enable-electron-run-as-node', 'QT_IM_MODULE': 'ibus', 'PWD': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'LC_ALL': 'en_US.UTF-8', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'ONSHAPE_ACCESS_KEY': 'twfpigMHe11VE7ZCq2NOANj7', 'XDG_DATA_DIRS': '/home/bjorn/snap/code/137/.local/share:/home/bjorn/snap/code/137:/snap/code/137/usr/share:/usr/share/ubuntu:/usr/share/gnome:/home/bjorn/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'PYTHONPATH': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:/opt/ros/humble/lib/python3.10/site-packages:/opt/ros/humble/local/lib/python3.10/dist-packages', 'ONSHAPE_API': 'https://cad.onshape.com', 'COLCON': '1'}, 'shell': False}
+[1.803654] (-) TimerEvent: {}
+[1.903893] (-) TimerEvent: {}
+[2.004122] (-) TimerEvent: {}
+[2.104350] (-) TimerEvent: {}
+[2.204607] (-) TimerEvent: {}
+[2.304838] (-) TimerEvent: {}
+[2.405089] (-) TimerEvent: {}
+[2.427737] (rmp220_middleware) StderrLine: {'line': b"/home/bjorn/.local/lib/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/bjorn/Documents/ros_projects/rmp220_middleware/rmp220_middleware/rmp220_middleware.py\n"}
+[2.427884] (rmp220_middleware) StderrLine: {'line': b' tree = Parsing.p_module(s, pxd, full_module_name)\n'}
+[2.485761] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning egg_info\x1b[0m\n'}
+[2.486157] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO\x1b[0m\n'}
+[2.486311] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt\x1b[0m\n'}
+[2.486434] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt\x1b[0m\n'}
+[2.486490] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt\x1b[0m\n'}
+[2.486538] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt\x1b[0m\n'}
+[2.488139] (rmp220_middleware) StdoutLine: {'line': b"\x1b[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)\x1b[0m\n"}
+[2.489031] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.489634] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'\x1b[0m\n"}
+[2.489783] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build\x1b[0m\n'}
+[2.489848] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build_py\x1b[0m\n'}
+[2.489923] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning build_ext\x1b[0m\n'}
+[2.490591] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mbuilding 'rmp220_middleware' extension\x1b[0m\n"}
+[2.491877] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mC compiler: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC\n'}
+[2.491972] (rmp220_middleware) StdoutLine: {'line': b'\x1b[0m\n'}
+[2.492025] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mcompile options: '-I/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/include -I/usr/include/python3.10 -c'\x1b[0m\n"}
+[2.492075] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mx86_64-linux-gnu-gcc: rmp220_middleware/rmp220_middleware.c\x1b[0m\n'}
+[2.505156] (-) TimerEvent: {}
+[2.605379] (-) TimerEvent: {}
+[2.705600] (-) TimerEvent: {}
+[2.805852] (-) TimerEvent: {}
+[2.906105] (-) TimerEvent: {}
+[3.006321] (-) TimerEvent: {}
+[3.091795] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mx86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o -o /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so\x1b[0m\n'}
+[3.104184] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install\x1b[0m\n'}
+[3.104450] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_lib\x1b[0m\n'}
+[3.105015] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages\x1b[0m\n'}
+[3.105594] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_data\x1b[0m\n'}
+[3.106057] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_egg_info\x1b[0m\n'}
+[3.106353] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)\x1b[0m\n"}
+[3.106408] (-) TimerEvent: {}
+[3.106610] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info\x1b[0m\n'}
+[3.107195] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mrunning install_scripts\x1b[0m\n'}
+[3.108446] (rmp220_middleware) StdoutLine: {'line': b'\x1b[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware\x1b[0m\n'}
+[3.108651] (rmp220_middleware) StdoutLine: {'line': b"\x1b[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'\x1b[0m\n"}
+[3.206548] (-) TimerEvent: {}
+[3.216056] (rmp220_middleware) CommandEnded: {'returncode': 0}
+[3.228328] (rmp220_middleware) JobEnded: {'identifier': 'rmp220_middleware', 'rc': 0}
+[3.228756] (-) EventReactorShutdown: {}
diff --git a/log/build_2023-08-18_09-01-39/logger_all.log b/log/build_2023-08-18_09-01-39/logger_all.log
new file mode 100644
index 0000000..301eb16
--- /dev/null
+++ b/log/build_2023-08-18_09-01-39/logger_all.log
@@ -0,0 +1,91 @@
+[0.363s] DEBUG:colcon:Command line arguments: ['/usr/bin/colcon', 'build']
+[0.364s] DEBUG:colcon:Parsed command line arguments: Namespace(log_base=None, log_level=None, verb_name='build', build_base='build', install_base='install', merge_install=False, symlink_install=False, test_result_base=None, continue_on_error=False, executor='parallel', parallel_workers=20, event_handlers=None, ignore_user_meta=False, metas=['./colcon.meta'], base_paths=['.'], packages_ignore=None, packages_ignore_regex=None, paths=None, packages_up_to=None, packages_up_to_regex=None, packages_above=None, packages_above_and_dependencies=None, packages_above_depth=None, packages_select_by_dep=None, packages_skip_by_dep=None, packages_skip_up_to=None, packages_select_build_failed=False, packages_skip_build_finished=False, packages_select_test_failures=False, packages_skip_test_passed=False, packages_select=None, packages_skip=None, packages_select_regex=None, packages_skip_regex=None, packages_start=None, packages_end=None, allow_overriding=[], cmake_args=None, cmake_target=None, cmake_target_skip_unavailable=False, cmake_clean_cache=False, cmake_clean_first=False, cmake_force_configure=False, ament_cmake_args=None, catkin_cmake_args=None, catkin_skip_building_tests=False, verb_parser=, verb_extension=, main=>)
+[0.383s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) check parameters
+[0.383s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) check parameters
+[0.383s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) check parameters
+[0.383s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) check parameters
+[0.383s] Level 1:colcon.colcon_core.package_discovery:discover_packages(colcon_meta) discover
+[0.384s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) discover
+[0.384s] INFO:colcon.colcon_core.package_discovery:Crawling recursively for packages in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[0.384s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ignore', 'ignore_ament_install']
+[0.384s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore'
+[0.384s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ignore_ament_install'
+[0.384s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_pkg']
+[0.384s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_pkg'
+[0.384s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['colcon_meta']
+[0.384s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'colcon_meta'
+[0.384s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extensions ['ros']
+[0.384s] Level 1:colcon.colcon_core.package_identification:_identify(.) by extension 'ros'
+[0.397s] DEBUG:colcon.colcon_core.package_identification:Package '.' with type 'ros.ament_python' and name 'rmp220_middleware'
+[0.397s] Level 1:colcon.colcon_core.package_discovery:discover_packages(recursive) using defaults
+[0.397s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) discover
+[0.397s] Level 1:colcon.colcon_core.package_discovery:discover_packages(ignore) using defaults
+[0.397s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) discover
+[0.397s] Level 1:colcon.colcon_core.package_discovery:discover_packages(path) using defaults
+[0.415s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) check parameters
+[0.415s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) discover
+[0.418s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 1 installed packages in /home/bjorn/Documents/ros_projects/rmp220_middleware/install
+[0.420s] DEBUG:colcon.colcon_installed_package_information.package_discovery:Found 458 installed packages in /opt/ros/humble
+[0.422s] Level 1:colcon.colcon_core.package_discovery:discover_packages(prefix_path) using defaults
+[0.485s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_args' from command line to 'None'
+[0.485s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target' from command line to 'None'
+[0.485s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_target_skip_unavailable' from command line to 'False'
+[0.485s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_cache' from command line to 'False'
+[0.486s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_clean_first' from command line to 'False'
+[0.486s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'cmake_force_configure' from command line to 'False'
+[0.486s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'ament_cmake_args' from command line to 'None'
+[0.486s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_cmake_args' from command line to 'None'
+[0.486s] Level 5:colcon.colcon_core.verb:set package 'rmp220_middleware' build argument 'catkin_skip_building_tests' from command line to 'False'
+[0.486s] DEBUG:colcon.colcon_core.verb:Building package 'rmp220_middleware' with the following arguments: {'ament_cmake_args': None, 'build_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware', 'catkin_cmake_args': None, 'catkin_skip_building_tests': False, 'cmake_args': None, 'cmake_clean_cache': False, 'cmake_clean_first': False, 'cmake_force_configure': False, 'cmake_target': None, 'cmake_target_skip_unavailable': False, 'install_base': '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware', 'merge_install': False, 'path': '/home/bjorn/Documents/ros_projects/rmp220_middleware', 'symlink_install': False, 'test_result_base': None}
+[0.486s] INFO:colcon.colcon_core.executor:Executing jobs using 'parallel' executor
+[0.489s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete
+[0.489s] INFO:colcon.colcon_ros.task.ament_python.build:Building ROS package in '/home/bjorn/Documents/ros_projects/rmp220_middleware' with build type 'ament_python'
+[0.489s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'ament_prefix_path')
+[0.495s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_core.shell.bat': Not used on non-Windows systems
+[0.495s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.ps1'
+[0.496s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.dsv'
+[0.496s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/ament_prefix_path.sh'
+[0.498s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[0.498s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[1.316s] INFO:colcon.colcon_core.task.python.build:Building Python package in '/home/bjorn/Documents/ros_projects/rmp220_middleware'
+[1.318s] INFO:colcon.colcon_core.shell:Skip shell extension 'powershell' for command environment: Not usable outside of PowerShell
+[1.318s] DEBUG:colcon.colcon_core.shell:Skip shell extension 'dsv' for command environment
+[2.256s] DEBUG:colcon.colcon_core.event_handler.log_command:Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[3.706s] DEBUG:colcon.colcon_core.event_handler.log_command:Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[3.710s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware' for CMake module files
+[3.710s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware' for CMake config files
+[3.710s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib'
+[3.711s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/bin'
+[3.711s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/pkgconfig/rmp220_middleware.pc'
+[3.711s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages'
+[3.711s] Level 1:colcon.colcon_core.shell:create_environment_hook('rmp220_middleware', 'pythonpath')
+[3.712s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.ps1'
+[3.713s] INFO:colcon.colcon_core.shell:Creating environment descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.dsv'
+[3.713s] INFO:colcon.colcon_core.shell:Creating environment hook '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/hook/pythonpath.sh'
+[3.713s] Level 1:colcon.colcon_core.environment:checking '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/bin'
+[3.713s] Level 1:colcon.colcon_core.environment:create_environment_scripts_only(rmp220_middleware)
+[3.714s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.ps1'
+[3.715s] INFO:colcon.colcon_core.shell:Creating package descriptor '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.dsv'
+[3.715s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.sh'
+[3.716s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.bash'
+[3.716s] INFO:colcon.colcon_core.shell:Creating package script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/rmp220_middleware/package.zsh'
+[3.717s] Level 1:colcon.colcon_core.environment:create_file_with_runtime_dependencies(/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/share/colcon-core/packages/rmp220_middleware)
+[3.717s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:closing loop
+[3.717s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:loop closed
+[3.717s] DEBUG:colcon.colcon_parallel_executor.executor.parallel:run_until_complete finished with '0'
+[3.717s] DEBUG:colcon.colcon_core.event_reactor:joining thread
+[3.724s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.terminal_notifier': Not used on non-Darwin systems
+[3.724s] INFO:colcon.colcon_core.plugin_system:Skipping extension 'colcon_notification.desktop_notification.win32': Not used on non-Windows systems
+[3.724s] INFO:colcon.colcon_notification.desktop_notification:Sending desktop notification using 'notify2'
+[3.731s] DEBUG:colcon.colcon_core.event_reactor:joined thread
+[3.732s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.ps1'
+[3.733s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_ps1.py'
+[3.734s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.ps1'
+[3.735s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.sh'
+[3.736s] INFO:colcon.colcon_core.shell:Creating prefix util module '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/_local_setup_util_sh.py'
+[3.736s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.sh'
+[3.737s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.bash'
+[3.737s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.bash'
+[3.738s] INFO:colcon.colcon_core.shell:Creating prefix script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/local_setup.zsh'
+[3.739s] INFO:colcon.colcon_core.shell:Creating prefix chain script '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/setup.zsh'
+[3.739s] INFO:colcon.colcon_core.shell:Creating '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/spawn_shell.bash'
diff --git a/log/build_2023-08-18_09-01-39/rmp220_middleware/command.log b/log/build_2023-08-18_09-01-39/rmp220_middleware/command.log
new file mode 100644
index 0000000..c62a331
--- /dev/null
+++ b/log/build_2023-08-18_09-01-39/rmp220_middleware/command.log
@@ -0,0 +1,2 @@
+Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
diff --git a/log/build_2023-08-18_09-01-39/rmp220_middleware/stderr.log b/log/build_2023-08-18_09-01-39/rmp220_middleware/stderr.log
new file mode 100644
index 0000000..14f680a
--- /dev/null
+++ b/log/build_2023-08-18_09-01-39/rmp220_middleware/stderr.log
@@ -0,0 +1,2 @@
+/home/bjorn/.local/lib/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/bjorn/Documents/ros_projects/rmp220_middleware/rmp220_middleware/rmp220_middleware.py
+ tree = Parsing.p_module(s, pxd, full_module_name)
diff --git a/log/build_2023-08-18_09-01-39/rmp220_middleware/stdout.log b/log/build_2023-08-18_09-01-39/rmp220_middleware/stdout.log
new file mode 100644
index 0000000..fa88ffe
--- /dev/null
+++ b/log/build_2023-08-18_09-01-39/rmp220_middleware/stdout.log
@@ -0,0 +1,28 @@
+[39mrunning egg_info[0m
+[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mrunning build[0m
+[39mrunning build_py[0m
+[39mrunning build_ext[0m
+[39mbuilding 'rmp220_middleware' extension[0m
+[39mC compiler: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
+[0m
+[39mcompile options: '-I/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/include -I/usr/include/python3.10 -c'[0m
+[39mx86_64-linux-gnu-gcc: rmp220_middleware/rmp220_middleware.c[0m
+[39mx86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o -o /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so[0m
+[39mrunning install[0m
+[39mrunning install_lib[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages[0m
+[39mrunning install_data[0m
+[39mrunning install_egg_info[0m
+[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[39mrunning install_scripts[0m
+[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
diff --git a/log/build_2023-08-18_09-01-39/rmp220_middleware/stdout_stderr.log b/log/build_2023-08-18_09-01-39/rmp220_middleware/stdout_stderr.log
new file mode 100644
index 0000000..4ce2ea2
--- /dev/null
+++ b/log/build_2023-08-18_09-01-39/rmp220_middleware/stdout_stderr.log
@@ -0,0 +1,30 @@
+/home/bjorn/.local/lib/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/bjorn/Documents/ros_projects/rmp220_middleware/rmp220_middleware/rmp220_middleware.py
+ tree = Parsing.p_module(s, pxd, full_module_name)
+[39mrunning egg_info[0m
+[39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[39mrunning build[0m
+[39mrunning build_py[0m
+[39mrunning build_ext[0m
+[39mbuilding 'rmp220_middleware' extension[0m
+[39mC compiler: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
+[0m
+[39mcompile options: '-I/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/include -I/usr/include/python3.10 -c'[0m
+[39mx86_64-linux-gnu-gcc: rmp220_middleware/rmp220_middleware.c[0m
+[39mx86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o -o /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so[0m
+[39mrunning install[0m
+[39mrunning install_lib[0m
+[39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages[0m
+[39mrunning install_data[0m
+[39mrunning install_egg_info[0m
+[39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[39mrunning install_scripts[0m
+[39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
diff --git a/log/build_2023-08-18_09-01-39/rmp220_middleware/streams.log b/log/build_2023-08-18_09-01-39/rmp220_middleware/streams.log
new file mode 100644
index 0000000..dce4c51
--- /dev/null
+++ b/log/build_2023-08-18_09-01-39/rmp220_middleware/streams.log
@@ -0,0 +1,32 @@
+[1.767s] Invoking command in '/home/bjorn/Documents/ros_projects/rmp220_middleware': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
+[2.427s] /home/bjorn/.local/lib/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /home/bjorn/Documents/ros_projects/rmp220_middleware/rmp220_middleware/rmp220_middleware.py
+[2.427s] tree = Parsing.p_module(s, pxd, full_module_name)
+[2.485s] [39mrunning egg_info[0m
+[2.486s] [39mwriting build/rmp220_middleware/rmp220_middleware.egg-info/PKG-INFO[0m
+[2.486s] [39mwriting dependency_links to build/rmp220_middleware/rmp220_middleware.egg-info/dependency_links.txt[0m
+[2.486s] [39mwriting entry points to build/rmp220_middleware/rmp220_middleware.egg-info/entry_points.txt[0m
+[2.486s] [39mwriting requirements to build/rmp220_middleware/rmp220_middleware.egg-info/requires.txt[0m
+[2.486s] [39mwriting top-level names to build/rmp220_middleware/rmp220_middleware.egg-info/top_level.txt[0m
+[2.488s] [31mpackage init file 'rmp220_middleware/__init__.py' not found (or not a regular file)[0m
+[2.489s] [39mreading manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.489s] [39mwriting manifest file 'build/rmp220_middleware/rmp220_middleware.egg-info/SOURCES.txt'[0m
+[2.489s] [39mrunning build[0m
+[2.489s] [39mrunning build_py[0m
+[2.490s] [39mrunning build_ext[0m
+[2.490s] [39mbuilding 'rmp220_middleware' extension[0m
+[2.491s] [39mC compiler: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
+[2.492s] [0m
+[2.492s] [39mcompile options: '-I/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/include -I/usr/include/python3.10 -c'[0m
+[2.492s] [39mx86_64-linux-gnu-gcc: rmp220_middleware/rmp220_middleware.c[0m
+[3.091s] [39mx86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/temp.linux-x86_64-3.10/rmp220_middleware/rmp220_middleware.o -o /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so[0m
+[3.104s] [39mrunning install[0m
+[3.104s] [39mrunning install_lib[0m
+[3.105s] [39mcopying /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build/lib.linux-x86_64-3.10/rmp220_middleware.cpython-310-x86_64-linux-gnu.so -> /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages[0m
+[3.105s] [39mrunning install_data[0m
+[3.106s] [39mrunning install_egg_info[0m
+[3.106s] [39mremoving '/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info' (and everything under it)[0m
+[3.106s] [39mCopying build/rmp220_middleware/rmp220_middleware.egg-info to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages/rmp220_middleware-0.0.0-py3.10.egg-info[0m
+[3.107s] [39mrunning install_scripts[0m
+[3.108s] [39mInstalling rmp220_middleware script to /home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/rmp220_middleware[0m
+[3.108s] [39mwriting list of installed files to '/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log'[0m
+[3.216s] Invoked command in '/home/bjorn/Documents/ros_projects/rmp220_middleware' returned '0': PYTHONPATH=/home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/prefix_override:/home/bjorn/Documents/ros_projects/rmp220_middleware/install/rmp220_middleware/lib/python3.10/site-packages:${PYTHONPATH} /usr/bin/python3 setup.py egg_info --egg-base build/rmp220_middleware build --build-base /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/build install --record /home/bjorn/Documents/ros_projects/rmp220_middleware/build/rmp220_middleware/install.log --single-version-externally-managed
diff --git a/log/latest b/log/latest
new file mode 120000
index 0000000..b57d247
--- /dev/null
+++ b/log/latest
@@ -0,0 +1 @@
+latest_build
\ No newline at end of file
diff --git a/log/latest_build b/log/latest_build
new file mode 120000
index 0000000..9da5ed2
--- /dev/null
+++ b/log/latest_build
@@ -0,0 +1 @@
+build_2023-08-18_09-01-39
\ No newline at end of file
diff --git a/rmp220_middleware/__pycache__/__init__.cpython-310.pyc b/rmp220_middleware/__pycache__/__init__.cpython-310.pyc
deleted file mode 100644
index e09dd66..0000000
Binary files a/rmp220_middleware/__pycache__/__init__.cpython-310.pyc and /dev/null differ
diff --git a/rmp220_middleware/__pycache__/rmp220_middleware.cpython-310.pyc b/rmp220_middleware/__pycache__/rmp220_middleware.cpython-310.pyc
deleted file mode 100644
index 2ba5da2..0000000
Binary files a/rmp220_middleware/__pycache__/rmp220_middleware.cpython-310.pyc and /dev/null differ
diff --git a/rmp220_middleware/rmp220_middleware.c b/rmp220_middleware/rmp220_middleware.c
new file mode 100644
index 0000000..9993e1c
--- /dev/null
+++ b/rmp220_middleware/rmp220_middleware.c
@@ -0,0 +1,7046 @@
+/* Generated by Cython 3.0.0 */
+
+/* BEGIN: Cython Metadata
+{
+ "distutils": {
+ "name": "rmp220_middleware",
+ "sources": [
+ "rmp220_middleware/rmp220_middleware.py"
+ ]
+ },
+ "module_name": "rmp220_middleware"
+}
+END: Cython Metadata */
+
+#ifndef PY_SSIZE_T_CLEAN
+#define PY_SSIZE_T_CLEAN
+#endif /* PY_SSIZE_T_CLEAN */
+#if defined(CYTHON_LIMITED_API) && 0
+ #ifndef Py_LIMITED_API
+ #if CYTHON_LIMITED_API+0 > 0x03030000
+ #define Py_LIMITED_API CYTHON_LIMITED_API
+ #else
+ #define Py_LIMITED_API 0x03030000
+ #endif
+ #endif
+#endif
+
+#include "Python.h"
+#ifndef Py_PYTHON_H
+ #error Python headers needed to compile C extensions, please install development version of Python.
+#elif PY_VERSION_HEX < 0x02070000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
+ #error Cython requires Python 2.7+ or Python 3.3+.
+#else
+#define CYTHON_ABI "3_0_0"
+#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
+#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."
+#define CYTHON_HEX_VERSION 0x030000F0
+#define CYTHON_FUTURE_DIVISION 1
+#include
+#ifndef offsetof
+ #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
+#endif
+#if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS)
+ #ifndef __stdcall
+ #define __stdcall
+ #endif
+ #ifndef __cdecl
+ #define __cdecl
+ #endif
+ #ifndef __fastcall
+ #define __fastcall
+ #endif
+#endif
+#ifndef DL_IMPORT
+ #define DL_IMPORT(t) t
+#endif
+#ifndef DL_EXPORT
+ #define DL_EXPORT(t) t
+#endif
+#define __PYX_COMMA ,
+#ifndef HAVE_LONG_LONG
+ #define HAVE_LONG_LONG
+#endif
+#ifndef PY_LONG_LONG
+ #define PY_LONG_LONG LONG_LONG
+#endif
+#ifndef Py_HUGE_VAL
+ #define Py_HUGE_VAL HUGE_VAL
+#endif
+#if defined(GRAALVM_PYTHON)
+ /* For very preliminary testing purposes. Most variables are set the same as PyPy.
+ The existence of this section does not imply that anything works or is even tested */
+ #define CYTHON_COMPILING_IN_PYPY 0
+ #define CYTHON_COMPILING_IN_CPYTHON 0
+ #define CYTHON_COMPILING_IN_LIMITED_API 0
+ #define CYTHON_COMPILING_IN_GRAAL 1
+ #define CYTHON_COMPILING_IN_NOGIL 0
+ #undef CYTHON_USE_TYPE_SLOTS
+ #define CYTHON_USE_TYPE_SLOTS 0
+ #undef CYTHON_USE_TYPE_SPECS
+ #define CYTHON_USE_TYPE_SPECS 0
+ #undef CYTHON_USE_PYTYPE_LOOKUP
+ #define CYTHON_USE_PYTYPE_LOOKUP 0
+ #if PY_VERSION_HEX < 0x03050000
+ #undef CYTHON_USE_ASYNC_SLOTS
+ #define CYTHON_USE_ASYNC_SLOTS 0
+ #elif !defined(CYTHON_USE_ASYNC_SLOTS)
+ #define CYTHON_USE_ASYNC_SLOTS 1
+ #endif
+ #undef CYTHON_USE_PYLIST_INTERNALS
+ #define CYTHON_USE_PYLIST_INTERNALS 0
+ #undef CYTHON_USE_UNICODE_INTERNALS
+ #define CYTHON_USE_UNICODE_INTERNALS 0
+ #undef CYTHON_USE_UNICODE_WRITER
+ #define CYTHON_USE_UNICODE_WRITER 0
+ #undef CYTHON_USE_PYLONG_INTERNALS
+ #define CYTHON_USE_PYLONG_INTERNALS 0
+ #undef CYTHON_AVOID_BORROWED_REFS
+ #define CYTHON_AVOID_BORROWED_REFS 1
+ #undef CYTHON_ASSUME_SAFE_MACROS
+ #define CYTHON_ASSUME_SAFE_MACROS 0
+ #undef CYTHON_UNPACK_METHODS
+ #define CYTHON_UNPACK_METHODS 0
+ #undef CYTHON_FAST_THREAD_STATE
+ #define CYTHON_FAST_THREAD_STATE 0
+ #undef CYTHON_FAST_GIL
+ #define CYTHON_FAST_GIL 0
+ #undef CYTHON_METH_FASTCALL
+ #define CYTHON_METH_FASTCALL 0
+ #undef CYTHON_FAST_PYCALL
+ #define CYTHON_FAST_PYCALL 0
+ #ifndef CYTHON_PEP487_INIT_SUBCLASS
+ #define CYTHON_PEP487_INIT_SUBCLASS (PY_MAJOR_VERSION >= 3)
+ #endif
+ #undef CYTHON_PEP489_MULTI_PHASE_INIT
+ #define CYTHON_PEP489_MULTI_PHASE_INIT 1
+ #undef CYTHON_USE_MODULE_STATE
+ #define CYTHON_USE_MODULE_STATE 0
+ #undef CYTHON_USE_TP_FINALIZE
+ #define CYTHON_USE_TP_FINALIZE 0
+ #undef CYTHON_USE_DICT_VERSIONS
+ #define CYTHON_USE_DICT_VERSIONS 0
+ #undef CYTHON_USE_EXC_INFO_STACK
+ #define CYTHON_USE_EXC_INFO_STACK 0
+ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
+ #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
+ #endif
+#elif defined(PYPY_VERSION)
+ #define CYTHON_COMPILING_IN_PYPY 1
+ #define CYTHON_COMPILING_IN_CPYTHON 0
+ #define CYTHON_COMPILING_IN_LIMITED_API 0
+ #define CYTHON_COMPILING_IN_GRAAL 0
+ #define CYTHON_COMPILING_IN_NOGIL 0
+ #undef CYTHON_USE_TYPE_SLOTS
+ #define CYTHON_USE_TYPE_SLOTS 0
+ #undef CYTHON_USE_TYPE_SPECS
+ #define CYTHON_USE_TYPE_SPECS 0
+ #undef CYTHON_USE_PYTYPE_LOOKUP
+ #define CYTHON_USE_PYTYPE_LOOKUP 0
+ #if PY_VERSION_HEX < 0x03050000
+ #undef CYTHON_USE_ASYNC_SLOTS
+ #define CYTHON_USE_ASYNC_SLOTS 0
+ #elif !defined(CYTHON_USE_ASYNC_SLOTS)
+ #define CYTHON_USE_ASYNC_SLOTS 1
+ #endif
+ #undef CYTHON_USE_PYLIST_INTERNALS
+ #define CYTHON_USE_PYLIST_INTERNALS 0
+ #undef CYTHON_USE_UNICODE_INTERNALS
+ #define CYTHON_USE_UNICODE_INTERNALS 0
+ #undef CYTHON_USE_UNICODE_WRITER
+ #define CYTHON_USE_UNICODE_WRITER 0
+ #undef CYTHON_USE_PYLONG_INTERNALS
+ #define CYTHON_USE_PYLONG_INTERNALS 0
+ #undef CYTHON_AVOID_BORROWED_REFS
+ #define CYTHON_AVOID_BORROWED_REFS 1
+ #undef CYTHON_ASSUME_SAFE_MACROS
+ #define CYTHON_ASSUME_SAFE_MACROS 0
+ #undef CYTHON_UNPACK_METHODS
+ #define CYTHON_UNPACK_METHODS 0
+ #undef CYTHON_FAST_THREAD_STATE
+ #define CYTHON_FAST_THREAD_STATE 0
+ #undef CYTHON_FAST_GIL
+ #define CYTHON_FAST_GIL 0
+ #undef CYTHON_METH_FASTCALL
+ #define CYTHON_METH_FASTCALL 0
+ #undef CYTHON_FAST_PYCALL
+ #define CYTHON_FAST_PYCALL 0
+ #ifndef CYTHON_PEP487_INIT_SUBCLASS
+ #define CYTHON_PEP487_INIT_SUBCLASS (PY_MAJOR_VERSION >= 3)
+ #endif
+ #if PY_VERSION_HEX < 0x03090000
+ #undef CYTHON_PEP489_MULTI_PHASE_INIT
+ #define CYTHON_PEP489_MULTI_PHASE_INIT 0
+ #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
+ #define CYTHON_PEP489_MULTI_PHASE_INIT 1
+ #endif
+ #undef CYTHON_USE_MODULE_STATE
+ #define CYTHON_USE_MODULE_STATE 0
+ #undef CYTHON_USE_TP_FINALIZE
+ #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1 && PYPY_VERSION_NUM >= 0x07030C00)
+ #undef CYTHON_USE_DICT_VERSIONS
+ #define CYTHON_USE_DICT_VERSIONS 0
+ #undef CYTHON_USE_EXC_INFO_STACK
+ #define CYTHON_USE_EXC_INFO_STACK 0
+ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
+ #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
+ #endif
+#elif defined(CYTHON_LIMITED_API)
+ #define CYTHON_COMPILING_IN_PYPY 0
+ #define CYTHON_COMPILING_IN_CPYTHON 0
+ #define CYTHON_COMPILING_IN_LIMITED_API 1
+ #define CYTHON_COMPILING_IN_GRAAL 0
+ #define CYTHON_COMPILING_IN_NOGIL 0
+ #undef CYTHON_CLINE_IN_TRACEBACK
+ #define CYTHON_CLINE_IN_TRACEBACK 0
+ #undef CYTHON_USE_TYPE_SLOTS
+ #define CYTHON_USE_TYPE_SLOTS 0
+ #undef CYTHON_USE_TYPE_SPECS
+ #define CYTHON_USE_TYPE_SPECS 1
+ #undef CYTHON_USE_PYTYPE_LOOKUP
+ #define CYTHON_USE_PYTYPE_LOOKUP 0
+ #undef CYTHON_USE_ASYNC_SLOTS
+ #define CYTHON_USE_ASYNC_SLOTS 0
+ #undef CYTHON_USE_PYLIST_INTERNALS
+ #define CYTHON_USE_PYLIST_INTERNALS 0
+ #undef CYTHON_USE_UNICODE_INTERNALS
+ #define CYTHON_USE_UNICODE_INTERNALS 0
+ #ifndef CYTHON_USE_UNICODE_WRITER
+ #define CYTHON_USE_UNICODE_WRITER 0
+ #endif
+ #undef CYTHON_USE_PYLONG_INTERNALS
+ #define CYTHON_USE_PYLONG_INTERNALS 0
+ #ifndef CYTHON_AVOID_BORROWED_REFS
+ #define CYTHON_AVOID_BORROWED_REFS 0
+ #endif
+ #undef CYTHON_ASSUME_SAFE_MACROS
+ #define CYTHON_ASSUME_SAFE_MACROS 0
+ #undef CYTHON_UNPACK_METHODS
+ #define CYTHON_UNPACK_METHODS 0
+ #undef CYTHON_FAST_THREAD_STATE
+ #define CYTHON_FAST_THREAD_STATE 0
+ #undef CYTHON_FAST_GIL
+ #define CYTHON_FAST_GIL 0
+ #undef CYTHON_METH_FASTCALL
+ #define CYTHON_METH_FASTCALL 0
+ #undef CYTHON_FAST_PYCALL
+ #define CYTHON_FAST_PYCALL 0
+ #ifndef CYTHON_PEP487_INIT_SUBCLASS
+ #define CYTHON_PEP487_INIT_SUBCLASS 1
+ #endif
+ #undef CYTHON_PEP489_MULTI_PHASE_INIT
+ #define CYTHON_PEP489_MULTI_PHASE_INIT 0
+ #undef CYTHON_USE_MODULE_STATE
+ #define CYTHON_USE_MODULE_STATE 1
+ #ifndef CYTHON_USE_TP_FINALIZE
+ #define CYTHON_USE_TP_FINALIZE 1
+ #endif
+ #undef CYTHON_USE_DICT_VERSIONS
+ #define CYTHON_USE_DICT_VERSIONS 0
+ #undef CYTHON_USE_EXC_INFO_STACK
+ #define CYTHON_USE_EXC_INFO_STACK 0
+ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
+ #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
+ #endif
+#elif defined(PY_NOGIL)
+ #define CYTHON_COMPILING_IN_PYPY 0
+ #define CYTHON_COMPILING_IN_CPYTHON 0
+ #define CYTHON_COMPILING_IN_LIMITED_API 0
+ #define CYTHON_COMPILING_IN_GRAAL 0
+ #define CYTHON_COMPILING_IN_NOGIL 1
+ #ifndef CYTHON_USE_TYPE_SLOTS
+ #define CYTHON_USE_TYPE_SLOTS 1
+ #endif
+ #undef CYTHON_USE_PYTYPE_LOOKUP
+ #define CYTHON_USE_PYTYPE_LOOKUP 0
+ #ifndef CYTHON_USE_ASYNC_SLOTS
+ #define CYTHON_USE_ASYNC_SLOTS 1
+ #endif
+ #undef CYTHON_USE_PYLIST_INTERNALS
+ #define CYTHON_USE_PYLIST_INTERNALS 0
+ #ifndef CYTHON_USE_UNICODE_INTERNALS
+ #define CYTHON_USE_UNICODE_INTERNALS 1
+ #endif
+ #undef CYTHON_USE_UNICODE_WRITER
+ #define CYTHON_USE_UNICODE_WRITER 0
+ #undef CYTHON_USE_PYLONG_INTERNALS
+ #define CYTHON_USE_PYLONG_INTERNALS 0
+ #ifndef CYTHON_AVOID_BORROWED_REFS
+ #define CYTHON_AVOID_BORROWED_REFS 0
+ #endif
+ #ifndef CYTHON_ASSUME_SAFE_MACROS
+ #define CYTHON_ASSUME_SAFE_MACROS 1
+ #endif
+ #ifndef CYTHON_UNPACK_METHODS
+ #define CYTHON_UNPACK_METHODS 1
+ #endif
+ #undef CYTHON_FAST_THREAD_STATE
+ #define CYTHON_FAST_THREAD_STATE 0
+ #undef CYTHON_FAST_PYCALL
+ #define CYTHON_FAST_PYCALL 0
+ #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
+ #define CYTHON_PEP489_MULTI_PHASE_INIT 1
+ #endif
+ #ifndef CYTHON_USE_TP_FINALIZE
+ #define CYTHON_USE_TP_FINALIZE 1
+ #endif
+ #undef CYTHON_USE_DICT_VERSIONS
+ #define CYTHON_USE_DICT_VERSIONS 0
+ #undef CYTHON_USE_EXC_INFO_STACK
+ #define CYTHON_USE_EXC_INFO_STACK 0
+#else
+ #define CYTHON_COMPILING_IN_PYPY 0
+ #define CYTHON_COMPILING_IN_CPYTHON 1
+ #define CYTHON_COMPILING_IN_LIMITED_API 0
+ #define CYTHON_COMPILING_IN_GRAAL 0
+ #define CYTHON_COMPILING_IN_NOGIL 0
+ #ifndef CYTHON_USE_TYPE_SLOTS
+ #define CYTHON_USE_TYPE_SLOTS 1
+ #endif
+ #ifndef CYTHON_USE_TYPE_SPECS
+ #define CYTHON_USE_TYPE_SPECS 0
+ #endif
+ #ifndef CYTHON_USE_PYTYPE_LOOKUP
+ #define CYTHON_USE_PYTYPE_LOOKUP 1
+ #endif
+ #if PY_MAJOR_VERSION < 3
+ #undef CYTHON_USE_ASYNC_SLOTS
+ #define CYTHON_USE_ASYNC_SLOTS 0
+ #elif !defined(CYTHON_USE_ASYNC_SLOTS)
+ #define CYTHON_USE_ASYNC_SLOTS 1
+ #endif
+ #ifndef CYTHON_USE_PYLONG_INTERNALS
+ #define CYTHON_USE_PYLONG_INTERNALS 1
+ #endif
+ #ifndef CYTHON_USE_PYLIST_INTERNALS
+ #define CYTHON_USE_PYLIST_INTERNALS 1
+ #endif
+ #ifndef CYTHON_USE_UNICODE_INTERNALS
+ #define CYTHON_USE_UNICODE_INTERNALS 1
+ #endif
+ #if PY_VERSION_HEX < 0x030300F0 || PY_VERSION_HEX >= 0x030B00A2
+ #undef CYTHON_USE_UNICODE_WRITER
+ #define CYTHON_USE_UNICODE_WRITER 0
+ #elif !defined(CYTHON_USE_UNICODE_WRITER)
+ #define CYTHON_USE_UNICODE_WRITER 1
+ #endif
+ #ifndef CYTHON_AVOID_BORROWED_REFS
+ #define CYTHON_AVOID_BORROWED_REFS 0
+ #endif
+ #ifndef CYTHON_ASSUME_SAFE_MACROS
+ #define CYTHON_ASSUME_SAFE_MACROS 1
+ #endif
+ #ifndef CYTHON_UNPACK_METHODS
+ #define CYTHON_UNPACK_METHODS 1
+ #endif
+ #ifndef CYTHON_FAST_THREAD_STATE
+ #define CYTHON_FAST_THREAD_STATE 1
+ #endif
+ #ifndef CYTHON_FAST_GIL
+ #define CYTHON_FAST_GIL (PY_MAJOR_VERSION < 3 || PY_VERSION_HEX >= 0x03060000 && PY_VERSION_HEX < 0x030C00A6)
+ #endif
+ #ifndef CYTHON_METH_FASTCALL
+ #define CYTHON_METH_FASTCALL (PY_VERSION_HEX >= 0x030700A1)
+ #endif
+ #ifndef CYTHON_FAST_PYCALL
+ #define CYTHON_FAST_PYCALL 1
+ #endif
+ #ifndef CYTHON_PEP487_INIT_SUBCLASS
+ #define CYTHON_PEP487_INIT_SUBCLASS 1
+ #endif
+ #if PY_VERSION_HEX < 0x03050000
+ #undef CYTHON_PEP489_MULTI_PHASE_INIT
+ #define CYTHON_PEP489_MULTI_PHASE_INIT 0
+ #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
+ #define CYTHON_PEP489_MULTI_PHASE_INIT 1
+ #endif
+ #ifndef CYTHON_USE_MODULE_STATE
+ #define CYTHON_USE_MODULE_STATE 0
+ #endif
+ #if PY_VERSION_HEX < 0x030400a1
+ #undef CYTHON_USE_TP_FINALIZE
+ #define CYTHON_USE_TP_FINALIZE 0
+ #elif !defined(CYTHON_USE_TP_FINALIZE)
+ #define CYTHON_USE_TP_FINALIZE 1
+ #endif
+ #if PY_VERSION_HEX < 0x030600B1
+ #undef CYTHON_USE_DICT_VERSIONS
+ #define CYTHON_USE_DICT_VERSIONS 0
+ #elif !defined(CYTHON_USE_DICT_VERSIONS)
+ #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX < 0x030C00A5)
+ #endif
+ #if PY_VERSION_HEX < 0x030700A3
+ #undef CYTHON_USE_EXC_INFO_STACK
+ #define CYTHON_USE_EXC_INFO_STACK 0
+ #elif !defined(CYTHON_USE_EXC_INFO_STACK)
+ #define CYTHON_USE_EXC_INFO_STACK 1
+ #endif
+ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
+ #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
+ #endif
+#endif
+#if !defined(CYTHON_FAST_PYCCALL)
+#define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
+#endif
+#if !defined(CYTHON_VECTORCALL)
+#define CYTHON_VECTORCALL (CYTHON_FAST_PYCCALL && PY_VERSION_HEX >= 0x030800B1)
+#endif
+#define CYTHON_BACKPORT_VECTORCALL (CYTHON_METH_FASTCALL && PY_VERSION_HEX < 0x030800B1)
+#if CYTHON_USE_PYLONG_INTERNALS
+ #if PY_MAJOR_VERSION < 3
+ #include "longintrepr.h"
+ #endif
+ #undef SHIFT
+ #undef BASE
+ #undef MASK
+ #ifdef SIZEOF_VOID_P
+ enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
+ #endif
+#endif
+#ifndef __has_attribute
+ #define __has_attribute(x) 0
+#endif
+#ifndef __has_cpp_attribute
+ #define __has_cpp_attribute(x) 0
+#endif
+#ifndef CYTHON_RESTRICT
+ #if defined(__GNUC__)
+ #define CYTHON_RESTRICT __restrict__
+ #elif defined(_MSC_VER) && _MSC_VER >= 1400
+ #define CYTHON_RESTRICT __restrict
+ #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+ #define CYTHON_RESTRICT restrict
+ #else
+ #define CYTHON_RESTRICT
+ #endif
+#endif
+#ifndef CYTHON_UNUSED
+ #if defined(__cplusplus)
+ /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
+ * but leads to warnings with -pedantic, since it is a C++17 feature */
+ #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
+ #if __has_cpp_attribute(maybe_unused)
+ #define CYTHON_UNUSED [[maybe_unused]]
+ #endif
+ #endif
+ #endif
+#endif
+#ifndef CYTHON_UNUSED
+# if defined(__GNUC__)
+# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+# define CYTHON_UNUSED __attribute__ ((__unused__))
+# else
+# define CYTHON_UNUSED
+# endif
+# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
+# define CYTHON_UNUSED __attribute__ ((__unused__))
+# else
+# define CYTHON_UNUSED
+# endif
+#endif
+#ifndef CYTHON_UNUSED_VAR
+# if defined(__cplusplus)
+ template void CYTHON_UNUSED_VAR( const T& ) { }
+# else
+# define CYTHON_UNUSED_VAR(x) (void)(x)
+# endif
+#endif
+#ifndef CYTHON_MAYBE_UNUSED_VAR
+ #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x)
+#endif
+#ifndef CYTHON_NCP_UNUSED
+# if CYTHON_COMPILING_IN_CPYTHON
+# define CYTHON_NCP_UNUSED
+# else
+# define CYTHON_NCP_UNUSED CYTHON_UNUSED
+# endif
+#endif
+#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
+#ifdef _MSC_VER
+ #ifndef _MSC_STDINT_H_
+ #if _MSC_VER < 1300
+ typedef unsigned char uint8_t;
+ typedef unsigned short uint16_t;
+ typedef unsigned int uint32_t;
+ #else
+ typedef unsigned __int8 uint8_t;
+ typedef unsigned __int16 uint16_t;
+ typedef unsigned __int32 uint32_t;
+ #endif
+ #endif
+ #if _MSC_VER < 1300
+ #ifdef _WIN64
+ typedef unsigned long long __pyx_uintptr_t;
+ #else
+ typedef unsigned int __pyx_uintptr_t;
+ #endif
+ #else
+ #ifdef _WIN64
+ typedef unsigned __int64 __pyx_uintptr_t;
+ #else
+ typedef unsigned __int32 __pyx_uintptr_t;
+ #endif
+ #endif
+#else
+ #include
+ typedef uintptr_t __pyx_uintptr_t;
+#endif
+#ifndef CYTHON_FALLTHROUGH
+ #if defined(__cplusplus)
+ /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
+ * but leads to warnings with -pedantic, since it is a C++17 feature */
+ #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
+ #if __has_cpp_attribute(fallthrough)
+ #define CYTHON_FALLTHROUGH [[fallthrough]]
+ #endif
+ #endif
+ #ifndef CYTHON_FALLTHROUGH
+ #if __has_cpp_attribute(clang::fallthrough)
+ #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
+ #elif __has_cpp_attribute(gnu::fallthrough)
+ #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
+ #endif
+ #endif
+ #endif
+ #ifndef CYTHON_FALLTHROUGH
+ #if __has_attribute(fallthrough)
+ #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
+ #else
+ #define CYTHON_FALLTHROUGH
+ #endif
+ #endif
+ #if defined(__clang__) && defined(__apple_build_version__)
+ #if __apple_build_version__ < 7000000
+ #undef CYTHON_FALLTHROUGH
+ #define CYTHON_FALLTHROUGH
+ #endif
+ #endif
+#endif
+#ifdef __cplusplus
+ template
+ struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);};
+ #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL::value)
+#else
+ #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0)
+#endif
+#if CYTHON_COMPILING_IN_PYPY == 1
+ #define __PYX_NEED_TP_PRINT_SLOT (PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x030A0000)
+#else
+ #define __PYX_NEED_TP_PRINT_SLOT (PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000)
+#endif
+#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer))
+
+#ifndef CYTHON_INLINE
+ #if defined(__clang__)
+ #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
+ #elif defined(__GNUC__)
+ #define CYTHON_INLINE __inline__
+ #elif defined(_MSC_VER)
+ #define CYTHON_INLINE __inline
+ #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+ #define CYTHON_INLINE inline
+ #else
+ #define CYTHON_INLINE
+ #endif
+#endif
+
+#define __PYX_BUILD_PY_SSIZE_T "n"
+#define CYTHON_FORMAT_SSIZE_T "z"
+#if PY_MAJOR_VERSION < 3
+ #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
+ #define __Pyx_DefaultClassType PyClass_Type
+ #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
+ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
+#else
+ #define __Pyx_BUILTIN_MODULE_NAME "builtins"
+ #define __Pyx_DefaultClassType PyType_Type
+#if PY_VERSION_HEX >= 0x030B00A1
+ static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(int a, int p, int k, int l, int s, int f,
+ PyObject *code, PyObject *c, PyObject* n, PyObject *v,
+ PyObject *fv, PyObject *cell, PyObject* fn,
+ PyObject *name, int fline, PyObject *lnos) {
+ PyObject *kwds=NULL, *argcount=NULL, *posonlyargcount=NULL, *kwonlyargcount=NULL;
+ PyObject *nlocals=NULL, *stacksize=NULL, *flags=NULL, *replace=NULL, *empty=NULL;
+ const char *fn_cstr=NULL;
+ const char *name_cstr=NULL;
+ PyCodeObject *co=NULL, *result=NULL;
+ PyObject *type, *value, *traceback;
+ PyErr_Fetch(&type, &value, &traceback);
+ if (!(kwds=PyDict_New())) goto end;
+ if (!(argcount=PyLong_FromLong(a))) goto end;
+ if (PyDict_SetItemString(kwds, "co_argcount", argcount) != 0) goto end;
+ if (!(posonlyargcount=PyLong_FromLong(p))) goto end;
+ if (PyDict_SetItemString(kwds, "co_posonlyargcount", posonlyargcount) != 0) goto end;
+ if (!(kwonlyargcount=PyLong_FromLong(k))) goto end;
+ if (PyDict_SetItemString(kwds, "co_kwonlyargcount", kwonlyargcount) != 0) goto end;
+ if (!(nlocals=PyLong_FromLong(l))) goto end;
+ if (PyDict_SetItemString(kwds, "co_nlocals", nlocals) != 0) goto end;
+ if (!(stacksize=PyLong_FromLong(s))) goto end;
+ if (PyDict_SetItemString(kwds, "co_stacksize", stacksize) != 0) goto end;
+ if (!(flags=PyLong_FromLong(f))) goto end;
+ if (PyDict_SetItemString(kwds, "co_flags", flags) != 0) goto end;
+ if (PyDict_SetItemString(kwds, "co_code", code) != 0) goto end;
+ if (PyDict_SetItemString(kwds, "co_consts", c) != 0) goto end;
+ if (PyDict_SetItemString(kwds, "co_names", n) != 0) goto end;
+ if (PyDict_SetItemString(kwds, "co_varnames", v) != 0) goto end;
+ if (PyDict_SetItemString(kwds, "co_freevars", fv) != 0) goto end;
+ if (PyDict_SetItemString(kwds, "co_cellvars", cell) != 0) goto end;
+ if (PyDict_SetItemString(kwds, "co_linetable", lnos) != 0) goto end;
+ if (!(fn_cstr=PyUnicode_AsUTF8AndSize(fn, NULL))) goto end;
+ if (!(name_cstr=PyUnicode_AsUTF8AndSize(name, NULL))) goto end;
+ if (!(co = PyCode_NewEmpty(fn_cstr, name_cstr, fline))) goto end;
+ if (!(replace = PyObject_GetAttrString((PyObject*)co, "replace"))) goto end;
+ if (!(empty = PyTuple_New(0))) goto end;
+ result = (PyCodeObject*) PyObject_Call(replace, empty, kwds);
+ end:
+ Py_XDECREF((PyObject*) co);
+ Py_XDECREF(kwds);
+ Py_XDECREF(argcount);
+ Py_XDECREF(posonlyargcount);
+ Py_XDECREF(kwonlyargcount);
+ Py_XDECREF(nlocals);
+ Py_XDECREF(stacksize);
+ Py_XDECREF(replace);
+ Py_XDECREF(empty);
+ if (type) {
+ PyErr_Restore(type, value, traceback);
+ }
+ return result;
+ }
+#elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY
+ #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
+ PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
+#else
+ #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
+ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
+#endif
+#endif
+#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE)
+ #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type)
+#else
+ #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type))
+#endif
+#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is)
+ #define __Pyx_Py_Is(x, y) Py_Is(x, y)
+#else
+ #define __Pyx_Py_Is(x, y) ((x) == (y))
+#endif
+#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone)
+ #define __Pyx_Py_IsNone(ob) Py_IsNone(ob)
+#else
+ #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None)
+#endif
+#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue)
+ #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob)
+#else
+ #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True)
+#endif
+#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse)
+ #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob)
+#else
+ #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False)
+#endif
+#define __Pyx_NoneAsNull(obj) (__Pyx_Py_IsNone(obj) ? NULL : (obj))
+#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY
+ #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
+#else
+ #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
+#endif
+#ifndef CO_COROUTINE
+ #define CO_COROUTINE 0x80
+#endif
+#ifndef CO_ASYNC_GENERATOR
+ #define CO_ASYNC_GENERATOR 0x200
+#endif
+#ifndef Py_TPFLAGS_CHECKTYPES
+ #define Py_TPFLAGS_CHECKTYPES 0
+#endif
+#ifndef Py_TPFLAGS_HAVE_INDEX
+ #define Py_TPFLAGS_HAVE_INDEX 0
+#endif
+#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
+ #define Py_TPFLAGS_HAVE_NEWBUFFER 0
+#endif
+#ifndef Py_TPFLAGS_HAVE_FINALIZE
+ #define Py_TPFLAGS_HAVE_FINALIZE 0
+#endif
+#ifndef Py_TPFLAGS_SEQUENCE
+ #define Py_TPFLAGS_SEQUENCE 0
+#endif
+#ifndef Py_TPFLAGS_MAPPING
+ #define Py_TPFLAGS_MAPPING 0
+#endif
+#ifndef METH_STACKLESS
+ #define METH_STACKLESS 0
+#endif
+#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
+ #ifndef METH_FASTCALL
+ #define METH_FASTCALL 0x80
+ #endif
+ typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
+ typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
+ Py_ssize_t nargs, PyObject *kwnames);
+#else
+ #define __Pyx_PyCFunctionFast _PyCFunctionFast
+ #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
+#endif
+#if CYTHON_METH_FASTCALL
+ #define __Pyx_METH_FASTCALL METH_FASTCALL
+ #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
+ #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
+#else
+ #define __Pyx_METH_FASTCALL METH_VARARGS
+ #define __Pyx_PyCFunction_FastCall PyCFunction
+ #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
+#endif
+#if CYTHON_VECTORCALL
+ #define __pyx_vectorcallfunc vectorcallfunc
+ #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET PY_VECTORCALL_ARGUMENTS_OFFSET
+ #define __Pyx_PyVectorcall_NARGS(n) PyVectorcall_NARGS((size_t)(n))
+#elif CYTHON_BACKPORT_VECTORCALL
+ typedef PyObject *(*__pyx_vectorcallfunc)(PyObject *callable, PyObject *const *args,
+ size_t nargsf, PyObject *kwnames);
+ #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET ((size_t)1 << (8 * sizeof(size_t) - 1))
+ #define __Pyx_PyVectorcall_NARGS(n) ((Py_ssize_t)(((size_t)(n)) & ~__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET))
+#else
+ #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET 0
+ #define __Pyx_PyVectorcall_NARGS(n) ((Py_ssize_t)(n))
+#endif
+#if PY_VERSION_HEX < 0x030900B1
+ #define __Pyx_PyType_FromModuleAndSpec(m, s, b) ((void)m, PyType_FromSpecWithBases(s, b))
+ typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
+#else
+ #define __Pyx_PyType_FromModuleAndSpec(m, s, b) PyType_FromModuleAndSpec(m, s, b)
+ #define __Pyx_PyCMethod PyCMethod
+#endif
+#ifndef METH_METHOD
+ #define METH_METHOD 0x200
+#endif
+#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
+ #define PyObject_Malloc(s) PyMem_Malloc(s)
+ #define PyObject_Free(p) PyMem_Free(p)
+ #define PyObject_Realloc(p) PyMem_Realloc(p)
+#endif
+#if CYTHON_COMPILING_IN_LIMITED_API
+ #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
+ #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
+#else
+ #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
+ #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
+#endif
+#if CYTHON_COMPILING_IN_LIMITED_API
+ #define __Pyx_PyThreadState_Current PyThreadState_Get()
+#elif !CYTHON_FAST_THREAD_STATE
+ #define __Pyx_PyThreadState_Current PyThreadState_GET()
+#elif PY_VERSION_HEX >= 0x03060000
+ #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
+#elif PY_VERSION_HEX >= 0x03000000
+ #define __Pyx_PyThreadState_Current PyThreadState_GET()
+#else
+ #define __Pyx_PyThreadState_Current _PyThreadState_Current
+#endif
+#if CYTHON_COMPILING_IN_LIMITED_API
+static CYTHON_INLINE void *__Pyx_PyModule_GetState(PyObject *op)
+{
+ void *result;
+ result = PyModule_GetState(op);
+ if (!result)
+ Py_FatalError("Couldn't find the module state");
+ return result;
+}
+#endif
+#define __Pyx_PyObject_GetSlot(obj, name, func_ctype) __Pyx_PyType_GetSlot(Py_TYPE(obj), name, func_ctype)
+#if CYTHON_COMPILING_IN_LIMITED_API
+ #define __Pyx_PyType_GetSlot(type, name, func_ctype) ((func_ctype) PyType_GetSlot((type), Py_##name))
+#else
+ #define __Pyx_PyType_GetSlot(type, name, func_ctype) ((type)->name)
+#endif
+#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
+#include "pythread.h"
+#define Py_tss_NEEDS_INIT 0
+typedef int Py_tss_t;
+static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
+ *key = PyThread_create_key();
+ return 0;
+}
+static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
+ Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
+ *key = Py_tss_NEEDS_INIT;
+ return key;
+}
+static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
+ PyObject_Free(key);
+}
+static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
+ return *key != Py_tss_NEEDS_INIT;
+}
+static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
+ PyThread_delete_key(*key);
+ *key = Py_tss_NEEDS_INIT;
+}
+static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
+ return PyThread_set_key_value(*key, value);
+}
+static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
+ return PyThread_get_key_value(*key);
+}
+#endif
+#if PY_MAJOR_VERSION < 3
+ #if CYTHON_COMPILING_IN_PYPY
+ #if PYPY_VERSION_NUM < 0x07030600
+ #if defined(__cplusplus) && __cplusplus >= 201402L
+ [[deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")]]
+ #elif defined(__GNUC__) || defined(__clang__)
+ __attribute__ ((__deprecated__("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")))
+ #elif defined(_MSC_VER)
+ __declspec(deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6"))
+ #endif
+ static CYTHON_INLINE int PyGILState_Check(void) {
+ return 0;
+ }
+ #else // PYPY_VERSION_NUM < 0x07030600
+ #endif // PYPY_VERSION_NUM < 0x07030600
+ #else
+ static CYTHON_INLINE int PyGILState_Check(void) {
+ PyThreadState * tstate = _PyThreadState_Current;
+ return tstate && (tstate == PyGILState_GetThisThreadState());
+ }
+ #endif
+#endif
+#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
+#define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
+#else
+#define __Pyx_PyDict_NewPresized(n) PyDict_New()
+#endif
+#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
+ #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
+ #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
+#else
+ #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
+ #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
+#endif
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030600B4 && CYTHON_USE_UNICODE_INTERNALS
+#define __Pyx_PyDict_GetItemStrWithError(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
+static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
+ PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
+ if (res == NULL) PyErr_Clear();
+ return res;
+}
+#elif PY_MAJOR_VERSION >= 3 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000)
+#define __Pyx_PyDict_GetItemStrWithError PyDict_GetItemWithError
+#define __Pyx_PyDict_GetItemStr PyDict_GetItem
+#else
+static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
+#if CYTHON_COMPILING_IN_PYPY
+ return PyDict_GetItem(dict, name);
+#else
+ PyDictEntry *ep;
+ PyDictObject *mp = (PyDictObject*) dict;
+ long hash = ((PyStringObject *) name)->ob_shash;
+ assert(hash != -1);
+ ep = (mp->ma_lookup)(mp, name, hash);
+ if (ep == NULL) {
+ return NULL;
+ }
+ return ep->me_value;
+#endif
+}
+#define __Pyx_PyDict_GetItemStr PyDict_GetItem
+#endif
+#if CYTHON_USE_TYPE_SLOTS
+ #define __Pyx_PyType_GetFlags(tp) (((PyTypeObject *)tp)->tp_flags)
+ #define __Pyx_PyType_HasFeature(type, feature) ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
+ #define __Pyx_PyObject_GetIterNextFunc(obj) (Py_TYPE(obj)->tp_iternext)
+#else
+ #define __Pyx_PyType_GetFlags(tp) (PyType_GetFlags((PyTypeObject *)tp))
+ #define __Pyx_PyType_HasFeature(type, feature) PyType_HasFeature(type, feature)
+ #define __Pyx_PyObject_GetIterNextFunc(obj) PyIter_Next
+#endif
+#if CYTHON_USE_TYPE_SPECS && PY_VERSION_HEX >= 0x03080000
+#define __Pyx_PyHeapTypeObject_GC_Del(obj) {\
+ PyTypeObject *type = Py_TYPE(obj);\
+ assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
+ PyObject_GC_Del(obj);\
+ Py_DECREF(type);\
+}
+#else
+#define __Pyx_PyHeapTypeObject_GC_Del(obj) PyObject_GC_Del(obj)
+#endif
+#if CYTHON_COMPILING_IN_LIMITED_API
+ #define CYTHON_PEP393_ENABLED 1
+ #define __Pyx_PyUnicode_READY(op) (0)
+ #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GetLength(u)
+ #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
+ #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((void)u, 1114111U)
+ #define __Pyx_PyUnicode_KIND(u) ((void)u, (0))
+ #define __Pyx_PyUnicode_DATA(u) ((void*)u)
+ #define __Pyx_PyUnicode_READ(k, d, i) ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
+ #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GetLength(u))
+#elif PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
+ #define CYTHON_PEP393_ENABLED 1
+ #if PY_VERSION_HEX >= 0x030C0000
+ #define __Pyx_PyUnicode_READY(op) (0)
+ #else
+ #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
+ 0 : _PyUnicode_Ready((PyObject *)(op)))
+ #endif
+ #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
+ #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
+ #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
+ #define __Pyx_PyUnicode_KIND(u) ((int)PyUnicode_KIND(u))
+ #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
+ #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
+ #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)
+ #if PY_VERSION_HEX >= 0x030C0000
+ #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
+ #else
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
+ #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
+ #else
+ #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
+ #endif
+ #endif
+#else
+ #define CYTHON_PEP393_ENABLED 0
+ #define PyUnicode_1BYTE_KIND 1
+ #define PyUnicode_2BYTE_KIND 2
+ #define PyUnicode_4BYTE_KIND 4
+ #define __Pyx_PyUnicode_READY(op) (0)
+ #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
+ #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
+ #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535U : 1114111U)
+ #define __Pyx_PyUnicode_KIND(u) ((int)sizeof(Py_UNICODE))
+ #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
+ #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
+ #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = (Py_UNICODE) ch)
+ #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))
+#endif
+#if CYTHON_COMPILING_IN_PYPY
+ #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
+ #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
+#else
+ #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
+ #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
+ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
+#endif
+#if CYTHON_COMPILING_IN_PYPY
+ #if !defined(PyUnicode_DecodeUnicodeEscape)
+ #define PyUnicode_DecodeUnicodeEscape(s, size, errors) PyUnicode_Decode(s, size, "unicode_escape", errors)
+ #endif
+ #if !defined(PyUnicode_Contains) || (PY_MAJOR_VERSION == 2 && PYPY_VERSION_NUM < 0x07030500)
+ #undef PyUnicode_Contains
+ #define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
+ #endif
+ #if !defined(PyByteArray_Check)
+ #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type)
+ #endif
+ #if !defined(PyObject_Format)
+ #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt)
+ #endif
+#endif
+#define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
+#define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
+#if PY_MAJOR_VERSION >= 3
+ #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
+#else
+ #define __Pyx_PyString_Format(a, b) PyString_Format(a, b)
+#endif
+#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
+ #define PyObject_ASCII(o) PyObject_Repr(o)
+#endif
+#if PY_MAJOR_VERSION >= 3
+ #define PyBaseString_Type PyUnicode_Type
+ #define PyStringObject PyUnicodeObject
+ #define PyString_Type PyUnicode_Type
+ #define PyString_Check PyUnicode_Check
+ #define PyString_CheckExact PyUnicode_CheckExact
+#ifndef PyObject_Unicode
+ #define PyObject_Unicode PyObject_Str
+#endif
+#endif
+#if PY_MAJOR_VERSION >= 3
+ #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
+ #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
+#else
+ #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
+ #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
+#endif
+#if CYTHON_COMPILING_IN_CPYTHON
+ #define __Pyx_PySequence_ListKeepNew(obj)\
+ (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
+#else
+ #define __Pyx_PySequence_ListKeepNew(obj) PySequence_List(obj)
+#endif
+#ifndef PySet_CheckExact
+ #define PySet_CheckExact(obj) __Pyx_IS_TYPE(obj, &PySet_Type)
+#endif
+#if PY_VERSION_HEX >= 0x030900A4
+ #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
+ #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
+#else
+ #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
+ #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
+#endif
+#if CYTHON_ASSUME_SAFE_MACROS
+ #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq)
+#else
+ #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq)
+#endif
+#if PY_MAJOR_VERSION >= 3
+ #define PyIntObject PyLongObject
+ #define PyInt_Type PyLong_Type
+ #define PyInt_Check(op) PyLong_Check(op)
+ #define PyInt_CheckExact(op) PyLong_CheckExact(op)
+ #define __Pyx_Py3Int_Check(op) PyLong_Check(op)
+ #define __Pyx_Py3Int_CheckExact(op) PyLong_CheckExact(op)
+ #define PyInt_FromString PyLong_FromString
+ #define PyInt_FromUnicode PyLong_FromUnicode
+ #define PyInt_FromLong PyLong_FromLong
+ #define PyInt_FromSize_t PyLong_FromSize_t
+ #define PyInt_FromSsize_t PyLong_FromSsize_t
+ #define PyInt_AsLong PyLong_AsLong
+ #define PyInt_AS_LONG PyLong_AS_LONG
+ #define PyInt_AsSsize_t PyLong_AsSsize_t
+ #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
+ #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
+ #define PyNumber_Int PyNumber_Long
+#else
+ #define __Pyx_Py3Int_Check(op) (PyLong_Check(op) || PyInt_Check(op))
+ #define __Pyx_Py3Int_CheckExact(op) (PyLong_CheckExact(op) || PyInt_CheckExact(op))
+#endif
+#if PY_MAJOR_VERSION >= 3
+ #define PyBoolObject PyLongObject
+#endif
+#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
+ #ifndef PyUnicode_InternFromString
+ #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
+ #endif
+#endif
+#if PY_VERSION_HEX < 0x030200A4
+ typedef long Py_hash_t;
+ #define __Pyx_PyInt_FromHash_t PyInt_FromLong
+ #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsHash_t
+#else
+ #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
+ #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsSsize_t
+#endif
+#if CYTHON_USE_ASYNC_SLOTS
+ #if PY_VERSION_HEX >= 0x030500B1
+ #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
+ #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
+ #else
+ #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
+ #endif
+#else
+ #define __Pyx_PyType_AsAsync(obj) NULL
+#endif
+#ifndef __Pyx_PyAsyncMethodsStruct
+ typedef struct {
+ unaryfunc am_await;
+ unaryfunc am_aiter;
+ unaryfunc am_anext;
+ } __Pyx_PyAsyncMethodsStruct;
+#endif
+
+#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
+ #if !defined(_USE_MATH_DEFINES)
+ #define _USE_MATH_DEFINES
+ #endif
+#endif
+#include
+#ifdef NAN
+#define __PYX_NAN() ((float) NAN)
+#else
+static CYTHON_INLINE float __PYX_NAN() {
+ float value;
+ memset(&value, 0xFF, sizeof(value));
+ return value;
+}
+#endif
+#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
+#define __Pyx_truncl trunc
+#else
+#define __Pyx_truncl truncl
+#endif
+
+#define __PYX_MARK_ERR_POS(f_index, lineno) \
+ { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
+#define __PYX_ERR(f_index, lineno, Ln_error) \
+ { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }
+
+#ifdef CYTHON_EXTERN_C
+ #undef __PYX_EXTERN_C
+ #define __PYX_EXTERN_C CYTHON_EXTERN_C
+#elif defined(__PYX_EXTERN_C)
+ #ifdef _MSC_VER
+ #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
+ #else
+ #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
+ #endif
+#else
+ #ifdef __cplusplus
+ #define __PYX_EXTERN_C extern "C"
+ #else
+ #define __PYX_EXTERN_C extern
+ #endif
+#endif
+
+#define __PYX_HAVE__rmp220_middleware
+#define __PYX_HAVE_API__rmp220_middleware
+/* Early includes */
+#ifdef _OPENMP
+#include
+#endif /* _OPENMP */
+
+#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
+#define CYTHON_WITHOUT_ASSERTIONS
+#endif
+
+typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
+ const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;
+
+#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
+#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
+#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
+#define __PYX_DEFAULT_STRING_ENCODING ""
+#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
+#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
+#define __Pyx_uchar_cast(c) ((unsigned char)c)
+#define __Pyx_long_cast(x) ((long)x)
+#define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\
+ (sizeof(type) < sizeof(Py_ssize_t)) ||\
+ (sizeof(type) > sizeof(Py_ssize_t) &&\
+ likely(v < (type)PY_SSIZE_T_MAX ||\
+ v == (type)PY_SSIZE_T_MAX) &&\
+ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
+ v == (type)PY_SSIZE_T_MIN))) ||\
+ (sizeof(type) == sizeof(Py_ssize_t) &&\
+ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
+ v == (type)PY_SSIZE_T_MAX))) )
+static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
+ return (size_t) i < (size_t) limit;
+}
+#if defined (__cplusplus) && __cplusplus >= 201103L
+ #include
+ #define __Pyx_sst_abs(value) std::abs(value)
+#elif SIZEOF_INT >= SIZEOF_SIZE_T
+ #define __Pyx_sst_abs(value) abs(value)
+#elif SIZEOF_LONG >= SIZEOF_SIZE_T
+ #define __Pyx_sst_abs(value) labs(value)
+#elif defined (_MSC_VER)
+ #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
+#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+ #define __Pyx_sst_abs(value) llabs(value)
+#elif defined (__GNUC__)
+ #define __Pyx_sst_abs(value) __builtin_llabs(value)
+#else
+ #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
+#endif
+static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
+static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
+#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
+#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
+#define __Pyx_PyBytes_FromString PyBytes_FromString
+#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
+static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
+#if PY_MAJOR_VERSION < 3
+ #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString
+ #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
+#else
+ #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString
+ #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
+#endif
+#define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
+#define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s))
+#define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s))
+#define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s))
+#define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s))
+#define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s))
+#define __Pyx_PyObject_AsWritableString(s) ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
+#define __Pyx_PyObject_AsWritableSString(s) ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
+#define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
+#define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s))
+#define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s))
+#define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
+#define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
+#define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
+#define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
+#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
+#if CYTHON_COMPILING_IN_LIMITED_API
+static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const wchar_t *u)
+{
+ const wchar_t *u_end = u;
+ while (*u_end++) ;
+ return (size_t)(u_end - u - 1);
+}
+#else
+static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
+{
+ const Py_UNICODE *u_end = u;
+ while (*u_end++) ;
+ return (size_t)(u_end - u - 1);
+}
+#endif
+#define __Pyx_PyUnicode_FromOrdinal(o) PyUnicode_FromOrdinal((int)o)
+#define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
+#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
+#define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
+#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
+#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
+static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
+static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
+static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
+static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
+#define __Pyx_PySequence_Tuple(obj)\
+ (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
+static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
+static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
+static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
+#if CYTHON_ASSUME_SAFE_MACROS
+#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
+#else
+#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
+#endif
+#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
+#if PY_MAJOR_VERSION >= 3
+#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
+#else
+#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
+#endif
+#if CYTHON_USE_PYLONG_INTERNALS
+ #if PY_VERSION_HEX >= 0x030C00A7
+ #ifndef _PyLong_SIGN_MASK
+ #define _PyLong_SIGN_MASK 3
+ #endif
+ #ifndef _PyLong_NON_SIZE_BITS
+ #define _PyLong_NON_SIZE_BITS 3
+ #endif
+ #define __Pyx_PyLong_Sign(x) (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK)
+ #define __Pyx_PyLong_IsNeg(x) ((__Pyx_PyLong_Sign(x) & 2) != 0)
+ #define __Pyx_PyLong_IsNonNeg(x) (!__Pyx_PyLong_IsNeg(x))
+ #define __Pyx_PyLong_IsZero(x) (__Pyx_PyLong_Sign(x) & 1)
+ #define __Pyx_PyLong_IsPos(x) (__Pyx_PyLong_Sign(x) == 0)
+ #define __Pyx_PyLong_CompactValueUnsigned(x) (__Pyx_PyLong_Digits(x)[0])
+ #define __Pyx_PyLong_DigitCount(x) ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
+ #define __Pyx_PyLong_SignedDigitCount(x)\
+ ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x))
+ #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
+ #define __Pyx_PyLong_IsCompact(x) PyUnstable_Long_IsCompact((PyLongObject*) x)
+ #define __Pyx_PyLong_CompactValue(x) PyUnstable_Long_CompactValue((PyLongObject*) x)
+ #else
+ #define __Pyx_PyLong_IsCompact(x) (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
+ #define __Pyx_PyLong_CompactValue(x) ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0])
+ #endif
+ typedef Py_ssize_t __Pyx_compact_pylong;
+ typedef size_t __Pyx_compact_upylong;
+ #else // Py < 3.12
+ #define __Pyx_PyLong_IsNeg(x) (Py_SIZE(x) < 0)
+ #define __Pyx_PyLong_IsNonNeg(x) (Py_SIZE(x) >= 0)
+ #define __Pyx_PyLong_IsZero(x) (Py_SIZE(x) == 0)
+ #define __Pyx_PyLong_IsPos(x) (Py_SIZE(x) > 0)
+ #define __Pyx_PyLong_CompactValueUnsigned(x) ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0])
+ #define __Pyx_PyLong_DigitCount(x) __Pyx_sst_abs(Py_SIZE(x))
+ #define __Pyx_PyLong_SignedDigitCount(x) Py_SIZE(x)
+ #define __Pyx_PyLong_IsCompact(x) (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1)
+ #define __Pyx_PyLong_CompactValue(x)\
+ ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0]))
+ typedef sdigit __Pyx_compact_pylong;
+ typedef digit __Pyx_compact_upylong;
+ #endif
+ #if PY_VERSION_HEX >= 0x030C00A5
+ #define __Pyx_PyLong_Digits(x) (((PyLongObject*)x)->long_value.ob_digit)
+ #else
+ #define __Pyx_PyLong_Digits(x) (((PyLongObject*)x)->ob_digit)
+ #endif
+#endif
+#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
+static int __Pyx_sys_getdefaultencoding_not_ascii;
+static int __Pyx_init_sys_getdefaultencoding_params(void) {
+ PyObject* sys;
+ PyObject* default_encoding = NULL;
+ PyObject* ascii_chars_u = NULL;
+ PyObject* ascii_chars_b = NULL;
+ const char* default_encoding_c;
+ sys = PyImport_ImportModule("sys");
+ if (!sys) goto bad;
+ default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
+ Py_DECREF(sys);
+ if (!default_encoding) goto bad;
+ default_encoding_c = PyBytes_AsString(default_encoding);
+ if (!default_encoding_c) goto bad;
+ if (strcmp(default_encoding_c, "ascii") == 0) {
+ __Pyx_sys_getdefaultencoding_not_ascii = 0;
+ } else {
+ char ascii_chars[128];
+ int c;
+ for (c = 0; c < 128; c++) {
+ ascii_chars[c] = (char) c;
+ }
+ __Pyx_sys_getdefaultencoding_not_ascii = 1;
+ ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
+ if (!ascii_chars_u) goto bad;
+ ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
+ if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
+ PyErr_Format(
+ PyExc_ValueError,
+ "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
+ default_encoding_c);
+ goto bad;
+ }
+ Py_DECREF(ascii_chars_u);
+ Py_DECREF(ascii_chars_b);
+ }
+ Py_DECREF(default_encoding);
+ return 0;
+bad:
+ Py_XDECREF(default_encoding);
+ Py_XDECREF(ascii_chars_u);
+ Py_XDECREF(ascii_chars_b);
+ return -1;
+}
+#endif
+#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
+#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
+#else
+#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
+#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
+static char* __PYX_DEFAULT_STRING_ENCODING;
+static int __Pyx_init_sys_getdefaultencoding_params(void) {
+ PyObject* sys;
+ PyObject* default_encoding = NULL;
+ char* default_encoding_c;
+ sys = PyImport_ImportModule("sys");
+ if (!sys) goto bad;
+ default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
+ Py_DECREF(sys);
+ if (!default_encoding) goto bad;
+ default_encoding_c = PyBytes_AsString(default_encoding);
+ if (!default_encoding_c) goto bad;
+ __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
+ if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
+ strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
+ Py_DECREF(default_encoding);
+ return 0;
+bad:
+ Py_XDECREF(default_encoding);
+ return -1;
+}
+#endif
+#endif
+
+
+/* Test for GCC > 2.95 */
+#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
+ #define likely(x) __builtin_expect(!!(x), 1)
+ #define unlikely(x) __builtin_expect(!!(x), 0)
+#else /* !__GNUC__ or GCC < 2.95 */
+ #define likely(x) (x)
+ #define unlikely(x) (x)
+#endif /* __GNUC__ */
+static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
+
+#if !CYTHON_USE_MODULE_STATE
+static PyObject *__pyx_m = NULL;
+#endif
+static int __pyx_lineno;
+static int __pyx_clineno = 0;
+static const char * __pyx_cfilenm = __FILE__;
+static const char *__pyx_filename;
+
+/* #### Code section: filename_table ### */
+
+static const char *__pyx_f[] = {
+ "rmp220_middleware/rmp220_middleware.py",
+};
+/* #### Code section: utility_code_proto_before_types ### */
+/* #### Code section: numeric_typedefs ### */
+/* #### Code section: complex_type_declarations ### */
+/* #### Code section: type_declarations ### */
+
+/*--- Type declarations ---*/
+/* #### Code section: utility_code_proto ### */
+
+/* --- Runtime support code (head) --- */
+/* Refnanny.proto */
+#ifndef CYTHON_REFNANNY
+ #define CYTHON_REFNANNY 0
+#endif
+#if CYTHON_REFNANNY
+ typedef struct {
+ void (*INCREF)(void*, PyObject*, Py_ssize_t);
+ void (*DECREF)(void*, PyObject*, Py_ssize_t);
+ void (*GOTREF)(void*, PyObject*, Py_ssize_t);
+ void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
+ void* (*SetupContext)(const char*, Py_ssize_t, const char*);
+ void (*FinishContext)(void**);
+ } __Pyx_RefNannyAPIStruct;
+ static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
+ static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
+ #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
+#ifdef WITH_THREAD
+ #define __Pyx_RefNannySetupContext(name, acquire_gil)\
+ if (acquire_gil) {\
+ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
+ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
+ PyGILState_Release(__pyx_gilstate_save);\
+ } else {\
+ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
+ }
+ #define __Pyx_RefNannyFinishContextNogil() {\
+ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
+ __Pyx_RefNannyFinishContext();\
+ PyGILState_Release(__pyx_gilstate_save);\
+ }
+#else
+ #define __Pyx_RefNannySetupContext(name, acquire_gil)\
+ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__))
+ #define __Pyx_RefNannyFinishContextNogil() __Pyx_RefNannyFinishContext()
+#endif
+ #define __Pyx_RefNannyFinishContextNogil() {\
+ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
+ __Pyx_RefNannyFinishContext();\
+ PyGILState_Release(__pyx_gilstate_save);\
+ }
+ #define __Pyx_RefNannyFinishContext()\
+ __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
+ #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
+ #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
+ #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
+ #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
+ #define __Pyx_XINCREF(r) do { if((r) == NULL); else {__Pyx_INCREF(r); }} while(0)
+ #define __Pyx_XDECREF(r) do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0)
+ #define __Pyx_XGOTREF(r) do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0)
+ #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0)
+#else
+ #define __Pyx_RefNannyDeclarations
+ #define __Pyx_RefNannySetupContext(name, acquire_gil)
+ #define __Pyx_RefNannyFinishContextNogil()
+ #define __Pyx_RefNannyFinishContext()
+ #define __Pyx_INCREF(r) Py_INCREF(r)
+ #define __Pyx_DECREF(r) Py_DECREF(r)
+ #define __Pyx_GOTREF(r)
+ #define __Pyx_GIVEREF(r)
+ #define __Pyx_XINCREF(r) Py_XINCREF(r)
+ #define __Pyx_XDECREF(r) Py_XDECREF(r)
+ #define __Pyx_XGOTREF(r)
+ #define __Pyx_XGIVEREF(r)
+#endif
+#define __Pyx_Py_XDECREF_SET(r, v) do {\
+ PyObject *tmp = (PyObject *) r;\
+ r = v; Py_XDECREF(tmp);\
+ } while (0)
+#define __Pyx_XDECREF_SET(r, v) do {\
+ PyObject *tmp = (PyObject *) r;\
+ r = v; __Pyx_XDECREF(tmp);\
+ } while (0)
+#define __Pyx_DECREF_SET(r, v) do {\
+ PyObject *tmp = (PyObject *) r;\
+ r = v; __Pyx_DECREF(tmp);\
+ } while (0)
+#define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
+#define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
+
+/* PyErrExceptionMatches.proto */
+#if CYTHON_FAST_THREAD_STATE
+#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
+static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
+#else
+#define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err)
+#endif
+
+/* PyThreadStateGet.proto */
+#if CYTHON_FAST_THREAD_STATE
+#define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
+#define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
+#if PY_VERSION_HEX >= 0x030C00A6
+#define __Pyx_PyErr_Occurred() (__pyx_tstate->current_exception != NULL)
+#define __Pyx_PyErr_CurrentExceptionType() (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL)
+#else
+#define __Pyx_PyErr_Occurred() (__pyx_tstate->curexc_type != NULL)
+#define __Pyx_PyErr_CurrentExceptionType() (__pyx_tstate->curexc_type)
+#endif
+#else
+#define __Pyx_PyThreadState_declare
+#define __Pyx_PyThreadState_assign
+#define __Pyx_PyErr_Occurred() (PyErr_Occurred() != NULL)
+#define __Pyx_PyErr_CurrentExceptionType() PyErr_Occurred()
+#endif
+
+/* PyErrFetchRestore.proto */
+#if CYTHON_FAST_THREAD_STATE
+#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
+#define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
+#define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
+#define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
+#define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
+static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
+static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6
+#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
+#else
+#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
+#endif
+#else
+#define __Pyx_PyErr_Clear() PyErr_Clear()
+#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
+#define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
+#define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
+#define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
+#define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
+#define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
+#define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
+#endif
+
+/* PyObjectGetAttrStr.proto */
+#if CYTHON_USE_TYPE_SLOTS
+static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
+#else
+#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
+#endif
+
+/* PyObjectGetAttrStrNoError.proto */
+static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);
+
+/* GetBuiltinName.proto */
+static PyObject *__Pyx_GetBuiltinName(PyObject *name);
+
+/* TupleAndListFromArray.proto */
+#if CYTHON_COMPILING_IN_CPYTHON
+static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
+static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
+#endif
+
+/* IncludeStringH.proto */
+#include
+
+/* BytesEquals.proto */
+static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);
+
+/* UnicodeEquals.proto */
+static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);
+
+/* fastcall.proto */
+#define __Pyx_Arg_VARARGS(args, i) PyTuple_GET_ITEM(args, i)
+#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
+#define __Pyx_KwValues_VARARGS(args, nargs) NULL
+#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
+#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
+#if CYTHON_METH_FASTCALL
+ #define __Pyx_Arg_FASTCALL(args, i) args[i]
+ #define __Pyx_NumKwargs_FASTCALL(kwds) PyTuple_GET_SIZE(kwds)
+ #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
+ static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
+ #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
+#else
+ #define __Pyx_Arg_FASTCALL __Pyx_Arg_VARARGS
+ #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
+ #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
+ #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
+ #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
+#endif
+#if CYTHON_COMPILING_IN_CPYTHON
+#define __Pyx_ArgsSlice_VARARGS(args, start, stop) __Pyx_PyTuple_FromArray(&__Pyx_Arg_VARARGS(args, start), stop - start)
+#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(&__Pyx_Arg_FASTCALL(args, start), stop - start)
+#else
+#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
+#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
+#endif
+
+/* RaiseDoubleKeywords.proto */
+static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);
+
+/* ParseKeywords.proto */
+static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject *const *kwvalues,
+ PyObject **argnames[],
+ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,
+ const char* function_name);
+
+/* RaiseArgTupleInvalid.proto */
+static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
+ Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
+
+/* PyDictVersioning.proto */
+#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
+#define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1)
+#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
+#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
+ (version_var) = __PYX_GET_DICT_VERSION(dict);\
+ (cache_var) = (value);
+#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
+ static PY_UINT64_T __pyx_dict_version = 0;\
+ static PyObject *__pyx_dict_cached_value = NULL;\
+ if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
+ (VAR) = __pyx_dict_cached_value;\
+ } else {\
+ (VAR) = __pyx_dict_cached_value = (LOOKUP);\
+ __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
+ }\
+}
+static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
+static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
+static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
+#else
+#define __PYX_GET_DICT_VERSION(dict) (0)
+#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
+#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
+#endif
+
+/* GetModuleGlobalName.proto */
+#if CYTHON_USE_DICT_VERSIONS
+#define __Pyx_GetModuleGlobalName(var, name) do {\
+ static PY_UINT64_T __pyx_dict_version = 0;\
+ static PyObject *__pyx_dict_cached_value = NULL;\
+ (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
+ (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
+ __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
+} while(0)
+#define __Pyx_GetModuleGlobalNameUncached(var, name) do {\
+ PY_UINT64_T __pyx_dict_version;\
+ PyObject *__pyx_dict_cached_value;\
+ (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
+} while(0)
+static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
+#else
+#define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
+#define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name)
+static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
+#endif
+
+/* PyObjectCall.proto */
+#if CYTHON_COMPILING_IN_CPYTHON
+static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
+#else
+#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
+#endif
+
+/* PyFunctionFastCall.proto */
+#if CYTHON_FAST_PYCALL
+#if !CYTHON_VECTORCALL
+#define __Pyx_PyFunction_FastCall(func, args, nargs)\
+ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
+static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
+#endif
+#define __Pyx_BUILD_ASSERT_EXPR(cond)\
+ (sizeof(char [1 - 2*!(cond)]) - 1)
+#ifndef Py_MEMBER_SIZE
+#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
+#endif
+#if !CYTHON_VECTORCALL
+#if PY_VERSION_HEX >= 0x03080000
+ #include "frameobject.h"
+#if PY_VERSION_HEX >= 0x030b00a6
+ #ifndef Py_BUILD_CORE
+ #define Py_BUILD_CORE 1
+ #endif
+ #include "internal/pycore_frame.h"
+#endif
+ #define __Pxy_PyFrame_Initialize_Offsets()
+ #define __Pyx_PyFrame_GetLocalsplus(frame) ((frame)->f_localsplus)
+#else
+ static size_t __pyx_pyframe_localsplus_offset = 0;
+ #include "frameobject.h"
+ #define __Pxy_PyFrame_Initialize_Offsets()\
+ ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
+ (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
+ #define __Pyx_PyFrame_GetLocalsplus(frame)\
+ (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
+#endif
+#endif
+#endif
+
+/* PyObjectCallMethO.proto */
+#if CYTHON_COMPILING_IN_CPYTHON
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
+#endif
+
+/* PyObjectFastCall.proto */
+#define __Pyx_PyObject_FastCall(func, args, nargs) __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL)
+static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs);
+
+/* GetTopmostException.proto */
+#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
+static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
+#endif
+
+/* SaveResetException.proto */
+#if CYTHON_FAST_THREAD_STATE
+#define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
+static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
+#define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
+static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
+#else
+#define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb)
+#define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb)
+#endif
+
+/* GetException.proto */
+#if CYTHON_FAST_THREAD_STATE
+#define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb)
+static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
+#else
+static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
+#endif
+
+/* SwapException.proto */
+#if CYTHON_FAST_THREAD_STATE
+#define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
+static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
+#else
+static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
+#endif
+
+/* Import.proto */
+static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);
+
+/* ImportDottedModule.proto */
+static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple);
+#if PY_MAJOR_VERSION >= 3
+static PyObject *__Pyx_ImportDottedModule_WalkParts(PyObject *module, PyObject *name, PyObject *parts_tuple);
+#endif
+
+/* ImportFrom.proto */
+static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
+
+/* IncludeStructmemberH.proto */
+#include
+
+/* FixUpExtensionType.proto */
+#if CYTHON_USE_TYPE_SPECS
+static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type);
+#endif
+
+/* FetchSharedCythonModule.proto */
+static PyObject *__Pyx_FetchSharedCythonABIModule(void);
+
+/* FetchCommonType.proto */
+#if !CYTHON_USE_TYPE_SPECS
+static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type);
+#else
+static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases);
+#endif
+
+/* PyMethodNew.proto */
+#if PY_MAJOR_VERSION >= 3
+static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
+ CYTHON_UNUSED_VAR(typ);
+ if (!self)
+ return __Pyx_NewRef(func);
+ return PyMethod_New(func, self);
+}
+#else
+ #define __Pyx_PyMethod_New PyMethod_New
+#endif
+
+/* PyVectorcallFastCallDict.proto */
+#if CYTHON_METH_FASTCALL
+static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
+#endif
+
+/* CythonFunctionShared.proto */
+#define __Pyx_CyFunction_USED
+#define __Pyx_CYFUNCTION_STATICMETHOD 0x01
+#define __Pyx_CYFUNCTION_CLASSMETHOD 0x02
+#define __Pyx_CYFUNCTION_CCLASS 0x04
+#define __Pyx_CYFUNCTION_COROUTINE 0x08
+#define __Pyx_CyFunction_GetClosure(f)\
+ (((__pyx_CyFunctionObject *) (f))->func_closure)
+#if PY_VERSION_HEX < 0x030900B1
+ #define __Pyx_CyFunction_GetClassObj(f)\
+ (((__pyx_CyFunctionObject *) (f))->func_classobj)
+#else
+ #define __Pyx_CyFunction_GetClassObj(f)\
+ ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
+#endif
+#define __Pyx_CyFunction_SetClassObj(f, classobj)\
+ __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))
+#define __Pyx_CyFunction_Defaults(type, f)\
+ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
+#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
+ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
+typedef struct {
+#if PY_VERSION_HEX < 0x030900B1
+ PyCFunctionObject func;
+#else
+ PyCMethodObject func;
+#endif
+#if CYTHON_BACKPORT_VECTORCALL
+ __pyx_vectorcallfunc func_vectorcall;
+#endif
+#if PY_VERSION_HEX < 0x030500A0
+ PyObject *func_weakreflist;
+#endif
+ PyObject *func_dict;
+ PyObject *func_name;
+ PyObject *func_qualname;
+ PyObject *func_doc;
+ PyObject *func_globals;
+ PyObject *func_code;
+ PyObject *func_closure;
+#if PY_VERSION_HEX < 0x030900B1
+ PyObject *func_classobj;
+#endif
+ void *defaults;
+ int defaults_pyobjects;
+ size_t defaults_size; // used by FusedFunction for copying defaults
+ int flags;
+ PyObject *defaults_tuple;
+ PyObject *defaults_kwdict;
+ PyObject *(*defaults_getter)(PyObject *);
+ PyObject *func_annotations;
+ PyObject *func_is_coroutine;
+} __pyx_CyFunctionObject;
+#define __Pyx_CyFunction_Check(obj) __Pyx_TypeCheck(obj, __pyx_CyFunctionType)
+#define __Pyx_IsCyOrPyCFunction(obj) __Pyx_TypeCheck2(obj, __pyx_CyFunctionType, &PyCFunction_Type)
+#define __Pyx_CyFunction_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_CyFunctionType)
+static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
+ int flags, PyObject* qualname,
+ PyObject *closure,
+ PyObject *module, PyObject *globals,
+ PyObject* code);
+static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
+static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m,
+ size_t size,
+ int pyobjects);
+static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
+ PyObject *tuple);
+static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
+ PyObject *dict);
+static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
+ PyObject *dict);
+static int __pyx_CyFunction_init(PyObject *module);
+#if CYTHON_METH_FASTCALL
+static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
+static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
+static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
+static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
+#if CYTHON_BACKPORT_VECTORCALL
+#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
+#else
+#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
+#endif
+#endif
+
+/* CythonFunction.proto */
+static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
+ int flags, PyObject* qualname,
+ PyObject *closure,
+ PyObject *module, PyObject *globals,
+ PyObject* code);
+
+/* StrEquals.proto */
+#if PY_MAJOR_VERSION >= 3
+#define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals
+#else
+#define __Pyx_PyString_Equals __Pyx_PyBytes_Equals
+#endif
+
+/* PyObjectCallNoArg.proto */
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
+
+/* CLineInTraceback.proto */
+#ifdef CYTHON_CLINE_IN_TRACEBACK
+#define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
+#else
+static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
+#endif
+
+/* CodeObjectCache.proto */
+#if !CYTHON_COMPILING_IN_LIMITED_API
+typedef struct {
+ PyCodeObject* code_object;
+ int code_line;
+} __Pyx_CodeObjectCacheEntry;
+struct __Pyx_CodeObjectCache {
+ int count;
+ int max_count;
+ __Pyx_CodeObjectCacheEntry* entries;
+};
+static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
+static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
+static PyCodeObject *__pyx_find_code_object(int code_line);
+static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
+#endif
+
+/* AddTraceback.proto */
+static void __Pyx_AddTraceback(const char *funcname, int c_line,
+ int py_line, const char *filename);
+
+/* FormatTypeName.proto */
+#if CYTHON_COMPILING_IN_LIMITED_API
+typedef PyObject *__Pyx_TypeName;
+#define __Pyx_FMT_TYPENAME "%U"
+static __Pyx_TypeName __Pyx_PyType_GetName(PyTypeObject* tp);
+#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
+#else
+typedef const char *__Pyx_TypeName;
+#define __Pyx_FMT_TYPENAME "%.200s"
+#define __Pyx_PyType_GetName(tp) ((tp)->tp_name)
+#define __Pyx_DECREF_TypeName(obj)
+#endif
+
+/* GCCDiagnostics.proto */
+#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
+#define __Pyx_HAS_GCC_DIAGNOSTIC
+#endif
+
+/* CIntToPy.proto */
+static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);
+
+/* CIntFromPy.proto */
+static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);
+
+/* CIntFromPy.proto */
+static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);
+
+/* FastTypeChecks.proto */
+#if CYTHON_COMPILING_IN_CPYTHON
+#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
+#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
+static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
+static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
+static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
+static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
+#else
+#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
+#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
+#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
+#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
+#endif
+#define __Pyx_PyErr_ExceptionMatches2(err1, err2) __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2)
+#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
+
+/* CheckBinaryVersion.proto */
+static int __Pyx_check_binary_version(void);
+
+/* InitStrings.proto */
+static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
+
+/* #### Code section: module_declarations ### */
+
+/* Module declarations from "rmp220_middleware" */
+/* #### Code section: typeinfo ### */
+/* #### Code section: before_global_var ### */
+#define __Pyx_MODULE_NAME "rmp220_middleware"
+extern int __pyx_module_is_main_rmp220_middleware;
+int __pyx_module_is_main_rmp220_middleware = 0;
+
+/* Implementation of "rmp220_middleware" */
+/* #### Code section: global_var ### */
+static PyObject *__pyx_builtin_KeyboardInterrupt;
+/* #### Code section: string_decls ### */
+static const char __pyx_k_[] = "*";
+static const char __pyx_k__2[] = ".";
+static const char __pyx_k__6[] = "?";
+static const char __pyx_k_args[] = "args";
+static const char __pyx_k_init[] = "init";
+static const char __pyx_k_main[] = "__main__";
+static const char __pyx_k_name[] = "__name__";
+static const char __pyx_k_node[] = "node";
+static const char __pyx_k_spec[] = "__spec__";
+static const char __pyx_k_spin[] = "spin";
+static const char __pyx_k_test[] = "__test__";
+static const char __pyx_k_rclpy[] = "rclpy";
+static const char __pyx_k_import[] = "__import__";
+static const char __pyx_k_main_2[] = "main";
+static const char __pyx_k_shutdown[] = "shutdown";
+static const char __pyx_k_destroy_node[] = "destroy_node";
+static const char __pyx_k_initializing[] = "_initializing";
+static const char __pyx_k_is_coroutine[] = "_is_coroutine";
+static const char __pyx_k_disable_chassis[] = "disable_chassis";
+static const char __pyx_k_StateMachineNode[] = "StateMachineNode";
+static const char __pyx_k_KeyboardInterrupt[] = "KeyboardInterrupt";
+static const char __pyx_k_rmp220_middleware[] = "rmp220_middleware";
+static const char __pyx_k_asyncio_coroutines[] = "asyncio.coroutines";
+static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
+static const char __pyx_k_rmp220_middleware_rmp220_middlew[] = "rmp220_middleware/rmp220_middleware.py";
+/* #### Code section: decls ### */
+static PyObject *__pyx_pf_17rmp220_middleware_main(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_args); /* proto */
+/* #### Code section: late_includes ### */
+/* #### Code section: module_state ### */
+typedef struct {
+ PyObject *__pyx_d;
+ PyObject *__pyx_b;
+ PyObject *__pyx_cython_runtime;
+ PyObject *__pyx_empty_tuple;
+ PyObject *__pyx_empty_bytes;
+ PyObject *__pyx_empty_unicode;
+ #ifdef __Pyx_CyFunction_USED
+ PyTypeObject *__pyx_CyFunctionType;
+ #endif
+ #ifdef __Pyx_FusedFunction_USED
+ PyTypeObject *__pyx_FusedFunctionType;
+ #endif
+ #ifdef __Pyx_Generator_USED
+ PyTypeObject *__pyx_GeneratorType;
+ #endif
+ #ifdef __Pyx_IterableCoroutine_USED
+ PyTypeObject *__pyx_IterableCoroutineType;
+ #endif
+ #ifdef __Pyx_Coroutine_USED
+ PyTypeObject *__pyx_CoroutineAwaitType;
+ #endif
+ #ifdef __Pyx_Coroutine_USED
+ PyTypeObject *__pyx_CoroutineType;
+ #endif
+ #if CYTHON_USE_MODULE_STATE
+ #endif
+ PyObject *__pyx_n_s_;
+ PyObject *__pyx_n_s_KeyboardInterrupt;
+ PyObject *__pyx_n_s_StateMachineNode;
+ PyObject *__pyx_kp_u__2;
+ PyObject *__pyx_n_s__6;
+ PyObject *__pyx_n_s_args;
+ PyObject *__pyx_n_s_asyncio_coroutines;
+ PyObject *__pyx_n_s_cline_in_traceback;
+ PyObject *__pyx_n_s_destroy_node;
+ PyObject *__pyx_n_s_disable_chassis;
+ PyObject *__pyx_n_s_import;
+ PyObject *__pyx_n_s_init;
+ PyObject *__pyx_n_s_initializing;
+ PyObject *__pyx_n_s_is_coroutine;
+ PyObject *__pyx_n_s_main;
+ PyObject *__pyx_n_s_main_2;
+ PyObject *__pyx_n_s_name;
+ PyObject *__pyx_n_s_node;
+ PyObject *__pyx_n_s_rclpy;
+ PyObject *__pyx_n_s_rmp220_middleware;
+ PyObject *__pyx_kp_s_rmp220_middleware_rmp220_middlew;
+ PyObject *__pyx_n_s_shutdown;
+ PyObject *__pyx_n_s_spec;
+ PyObject *__pyx_n_s_spin;
+ PyObject *__pyx_n_s_test;
+ PyObject *__pyx_tuple__3;
+ PyObject *__pyx_tuple__5;
+ PyObject *__pyx_codeobj__4;
+} __pyx_mstate;
+
+#if CYTHON_USE_MODULE_STATE
+#ifdef __cplusplus
+namespace {
+ extern struct PyModuleDef __pyx_moduledef;
+} /* anonymous namespace */
+#else
+static struct PyModuleDef __pyx_moduledef;
+#endif
+
+#define __pyx_mstate(o) ((__pyx_mstate *)__Pyx_PyModule_GetState(o))
+
+#define __pyx_mstate_global (__pyx_mstate(PyState_FindModule(&__pyx_moduledef)))
+
+#define __pyx_m (PyState_FindModule(&__pyx_moduledef))
+#else
+static __pyx_mstate __pyx_mstate_global_static =
+#ifdef __cplusplus
+ {};
+#else
+ {0};
+#endif
+static __pyx_mstate *__pyx_mstate_global = &__pyx_mstate_global_static;
+#endif
+/* #### Code section: module_state_clear ### */
+#if CYTHON_USE_MODULE_STATE
+static int __pyx_m_clear(PyObject *m) {
+ __pyx_mstate *clear_module_state = __pyx_mstate(m);
+ if (!clear_module_state) return 0;
+ Py_CLEAR(clear_module_state->__pyx_d);
+ Py_CLEAR(clear_module_state->__pyx_b);
+ Py_CLEAR(clear_module_state->__pyx_cython_runtime);
+ Py_CLEAR(clear_module_state->__pyx_empty_tuple);
+ Py_CLEAR(clear_module_state->__pyx_empty_bytes);
+ Py_CLEAR(clear_module_state->__pyx_empty_unicode);
+ #ifdef __Pyx_CyFunction_USED
+ Py_CLEAR(clear_module_state->__pyx_CyFunctionType);
+ #endif
+ #ifdef __Pyx_FusedFunction_USED
+ Py_CLEAR(clear_module_state->__pyx_FusedFunctionType);
+ #endif
+ Py_CLEAR(clear_module_state->__pyx_n_s_);
+ Py_CLEAR(clear_module_state->__pyx_n_s_KeyboardInterrupt);
+ Py_CLEAR(clear_module_state->__pyx_n_s_StateMachineNode);
+ Py_CLEAR(clear_module_state->__pyx_kp_u__2);
+ Py_CLEAR(clear_module_state->__pyx_n_s__6);
+ Py_CLEAR(clear_module_state->__pyx_n_s_args);
+ Py_CLEAR(clear_module_state->__pyx_n_s_asyncio_coroutines);
+ Py_CLEAR(clear_module_state->__pyx_n_s_cline_in_traceback);
+ Py_CLEAR(clear_module_state->__pyx_n_s_destroy_node);
+ Py_CLEAR(clear_module_state->__pyx_n_s_disable_chassis);
+ Py_CLEAR(clear_module_state->__pyx_n_s_import);
+ Py_CLEAR(clear_module_state->__pyx_n_s_init);
+ Py_CLEAR(clear_module_state->__pyx_n_s_initializing);
+ Py_CLEAR(clear_module_state->__pyx_n_s_is_coroutine);
+ Py_CLEAR(clear_module_state->__pyx_n_s_main);
+ Py_CLEAR(clear_module_state->__pyx_n_s_main_2);
+ Py_CLEAR(clear_module_state->__pyx_n_s_name);
+ Py_CLEAR(clear_module_state->__pyx_n_s_node);
+ Py_CLEAR(clear_module_state->__pyx_n_s_rclpy);
+ Py_CLEAR(clear_module_state->__pyx_n_s_rmp220_middleware);
+ Py_CLEAR(clear_module_state->__pyx_kp_s_rmp220_middleware_rmp220_middlew);
+ Py_CLEAR(clear_module_state->__pyx_n_s_shutdown);
+ Py_CLEAR(clear_module_state->__pyx_n_s_spec);
+ Py_CLEAR(clear_module_state->__pyx_n_s_spin);
+ Py_CLEAR(clear_module_state->__pyx_n_s_test);
+ Py_CLEAR(clear_module_state->__pyx_tuple__3);
+ Py_CLEAR(clear_module_state->__pyx_tuple__5);
+ Py_CLEAR(clear_module_state->__pyx_codeobj__4);
+ return 0;
+}
+#endif
+/* #### Code section: module_state_traverse ### */
+#if CYTHON_USE_MODULE_STATE
+static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
+ __pyx_mstate *traverse_module_state = __pyx_mstate(m);
+ if (!traverse_module_state) return 0;
+ Py_VISIT(traverse_module_state->__pyx_d);
+ Py_VISIT(traverse_module_state->__pyx_b);
+ Py_VISIT(traverse_module_state->__pyx_cython_runtime);
+ Py_VISIT(traverse_module_state->__pyx_empty_tuple);
+ Py_VISIT(traverse_module_state->__pyx_empty_bytes);
+ Py_VISIT(traverse_module_state->__pyx_empty_unicode);
+ #ifdef __Pyx_CyFunction_USED
+ Py_VISIT(traverse_module_state->__pyx_CyFunctionType);
+ #endif
+ #ifdef __Pyx_FusedFunction_USED
+ Py_VISIT(traverse_module_state->__pyx_FusedFunctionType);
+ #endif
+ Py_VISIT(traverse_module_state->__pyx_n_s_);
+ Py_VISIT(traverse_module_state->__pyx_n_s_KeyboardInterrupt);
+ Py_VISIT(traverse_module_state->__pyx_n_s_StateMachineNode);
+ Py_VISIT(traverse_module_state->__pyx_kp_u__2);
+ Py_VISIT(traverse_module_state->__pyx_n_s__6);
+ Py_VISIT(traverse_module_state->__pyx_n_s_args);
+ Py_VISIT(traverse_module_state->__pyx_n_s_asyncio_coroutines);
+ Py_VISIT(traverse_module_state->__pyx_n_s_cline_in_traceback);
+ Py_VISIT(traverse_module_state->__pyx_n_s_destroy_node);
+ Py_VISIT(traverse_module_state->__pyx_n_s_disable_chassis);
+ Py_VISIT(traverse_module_state->__pyx_n_s_import);
+ Py_VISIT(traverse_module_state->__pyx_n_s_init);
+ Py_VISIT(traverse_module_state->__pyx_n_s_initializing);
+ Py_VISIT(traverse_module_state->__pyx_n_s_is_coroutine);
+ Py_VISIT(traverse_module_state->__pyx_n_s_main);
+ Py_VISIT(traverse_module_state->__pyx_n_s_main_2);
+ Py_VISIT(traverse_module_state->__pyx_n_s_name);
+ Py_VISIT(traverse_module_state->__pyx_n_s_node);
+ Py_VISIT(traverse_module_state->__pyx_n_s_rclpy);
+ Py_VISIT(traverse_module_state->__pyx_n_s_rmp220_middleware);
+ Py_VISIT(traverse_module_state->__pyx_kp_s_rmp220_middleware_rmp220_middlew);
+ Py_VISIT(traverse_module_state->__pyx_n_s_shutdown);
+ Py_VISIT(traverse_module_state->__pyx_n_s_spec);
+ Py_VISIT(traverse_module_state->__pyx_n_s_spin);
+ Py_VISIT(traverse_module_state->__pyx_n_s_test);
+ Py_VISIT(traverse_module_state->__pyx_tuple__3);
+ Py_VISIT(traverse_module_state->__pyx_tuple__5);
+ Py_VISIT(traverse_module_state->__pyx_codeobj__4);
+ return 0;
+}
+#endif
+/* #### Code section: module_state_defines ### */
+#define __pyx_d __pyx_mstate_global->__pyx_d
+#define __pyx_b __pyx_mstate_global->__pyx_b
+#define __pyx_cython_runtime __pyx_mstate_global->__pyx_cython_runtime
+#define __pyx_empty_tuple __pyx_mstate_global->__pyx_empty_tuple
+#define __pyx_empty_bytes __pyx_mstate_global->__pyx_empty_bytes
+#define __pyx_empty_unicode __pyx_mstate_global->__pyx_empty_unicode
+#ifdef __Pyx_CyFunction_USED
+#define __pyx_CyFunctionType __pyx_mstate_global->__pyx_CyFunctionType
+#endif
+#ifdef __Pyx_FusedFunction_USED
+#define __pyx_FusedFunctionType __pyx_mstate_global->__pyx_FusedFunctionType
+#endif
+#ifdef __Pyx_Generator_USED
+#define __pyx_GeneratorType __pyx_mstate_global->__pyx_GeneratorType
+#endif
+#ifdef __Pyx_IterableCoroutine_USED
+#define __pyx_IterableCoroutineType __pyx_mstate_global->__pyx_IterableCoroutineType
+#endif
+#ifdef __Pyx_Coroutine_USED
+#define __pyx_CoroutineAwaitType __pyx_mstate_global->__pyx_CoroutineAwaitType
+#endif
+#ifdef __Pyx_Coroutine_USED
+#define __pyx_CoroutineType __pyx_mstate_global->__pyx_CoroutineType
+#endif
+#if CYTHON_USE_MODULE_STATE
+#endif
+#define __pyx_n_s_ __pyx_mstate_global->__pyx_n_s_
+#define __pyx_n_s_KeyboardInterrupt __pyx_mstate_global->__pyx_n_s_KeyboardInterrupt
+#define __pyx_n_s_StateMachineNode __pyx_mstate_global->__pyx_n_s_StateMachineNode
+#define __pyx_kp_u__2 __pyx_mstate_global->__pyx_kp_u__2
+#define __pyx_n_s__6 __pyx_mstate_global->__pyx_n_s__6
+#define __pyx_n_s_args __pyx_mstate_global->__pyx_n_s_args
+#define __pyx_n_s_asyncio_coroutines __pyx_mstate_global->__pyx_n_s_asyncio_coroutines
+#define __pyx_n_s_cline_in_traceback __pyx_mstate_global->__pyx_n_s_cline_in_traceback
+#define __pyx_n_s_destroy_node __pyx_mstate_global->__pyx_n_s_destroy_node
+#define __pyx_n_s_disable_chassis __pyx_mstate_global->__pyx_n_s_disable_chassis
+#define __pyx_n_s_import __pyx_mstate_global->__pyx_n_s_import
+#define __pyx_n_s_init __pyx_mstate_global->__pyx_n_s_init
+#define __pyx_n_s_initializing __pyx_mstate_global->__pyx_n_s_initializing
+#define __pyx_n_s_is_coroutine __pyx_mstate_global->__pyx_n_s_is_coroutine
+#define __pyx_n_s_main __pyx_mstate_global->__pyx_n_s_main
+#define __pyx_n_s_main_2 __pyx_mstate_global->__pyx_n_s_main_2
+#define __pyx_n_s_name __pyx_mstate_global->__pyx_n_s_name
+#define __pyx_n_s_node __pyx_mstate_global->__pyx_n_s_node
+#define __pyx_n_s_rclpy __pyx_mstate_global->__pyx_n_s_rclpy
+#define __pyx_n_s_rmp220_middleware __pyx_mstate_global->__pyx_n_s_rmp220_middleware
+#define __pyx_kp_s_rmp220_middleware_rmp220_middlew __pyx_mstate_global->__pyx_kp_s_rmp220_middleware_rmp220_middlew
+#define __pyx_n_s_shutdown __pyx_mstate_global->__pyx_n_s_shutdown
+#define __pyx_n_s_spec __pyx_mstate_global->__pyx_n_s_spec
+#define __pyx_n_s_spin __pyx_mstate_global->__pyx_n_s_spin
+#define __pyx_n_s_test __pyx_mstate_global->__pyx_n_s_test
+#define __pyx_tuple__3 __pyx_mstate_global->__pyx_tuple__3
+#define __pyx_tuple__5 __pyx_mstate_global->__pyx_tuple__5
+#define __pyx_codeobj__4 __pyx_mstate_global->__pyx_codeobj__4
+/* #### Code section: module_code ### */
+
+/* "rmp220_middleware.py":6
+ * from rmp220_middleware import StateMachineNode
+ *
+ * def main(args=None): # <<<<<<<<<<<<<<
+ * rclpy.init(args=args)
+ * node = StateMachineNode()
+ */
+
+/* Python wrapper */
+static PyObject *__pyx_pw_17rmp220_middleware_1main(PyObject *__pyx_self,
+#if CYTHON_METH_FASTCALL
+PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
+#else
+PyObject *__pyx_args, PyObject *__pyx_kwds
+#endif
+); /*proto*/
+static PyMethodDef __pyx_mdef_17rmp220_middleware_1main = {"main", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_17rmp220_middleware_1main, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
+static PyObject *__pyx_pw_17rmp220_middleware_1main(PyObject *__pyx_self,
+#if CYTHON_METH_FASTCALL
+PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
+#else
+PyObject *__pyx_args, PyObject *__pyx_kwds
+#endif
+) {
+ PyObject *__pyx_v_args = 0;
+ #if !CYTHON_METH_FASTCALL
+ CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
+ #endif
+ CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
+ int __pyx_lineno = 0;
+ const char *__pyx_filename = NULL;
+ int __pyx_clineno = 0;
+ PyObject *__pyx_r = 0;
+ __Pyx_RefNannyDeclarations
+ __Pyx_RefNannySetupContext("main (wrapper)", 0);
+ {
+ PyObject **__pyx_pyargnames[] = {&__pyx_n_s_args,0};
+ PyObject* values[1] = {0};
+ values[0] = ((PyObject *)((PyObject *)Py_None));
+ if (__pyx_kwds) {
+ Py_ssize_t kw_args;
+ switch (__pyx_nargs) {
+ case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
+ CYTHON_FALLTHROUGH;
+ case 0: break;
+ default: goto __pyx_L5_argtuple_error;
+ }
+ kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
+ switch (__pyx_nargs) {
+ case 0:
+ if (kw_args > 0) {
+ PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_args);
+ if (value) { values[0] = value; kw_args--; }
+ else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6, __pyx_L3_error)
+ }
+ }
+ if (unlikely(kw_args > 0)) {
+ const Py_ssize_t kwd_pos_args = __pyx_nargs;
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "main") < 0)) __PYX_ERR(0, 6, __pyx_L3_error)
+ }
+ } else {
+ switch (__pyx_nargs) {
+ case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
+ CYTHON_FALLTHROUGH;
+ case 0: break;
+ default: goto __pyx_L5_argtuple_error;
+ }
+ }
+ __pyx_v_args = values[0];
+ }
+ goto __pyx_L4_argument_unpacking_done;
+ __pyx_L5_argtuple_error:;
+ __Pyx_RaiseArgtupleInvalid("main", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6, __pyx_L3_error)
+ __pyx_L3_error:;
+ __Pyx_AddTraceback("rmp220_middleware.main", __pyx_clineno, __pyx_lineno, __pyx_filename);
+ __Pyx_RefNannyFinishContext();
+ return NULL;
+ __pyx_L4_argument_unpacking_done:;
+ __pyx_r = __pyx_pf_17rmp220_middleware_main(__pyx_self, __pyx_v_args);
+
+ /* function exit code */
+ __Pyx_RefNannyFinishContext();
+ return __pyx_r;
+}
+
+static PyObject *__pyx_pf_17rmp220_middleware_main(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_args) {
+ PyObject *__pyx_v_node = NULL;
+ PyObject *__pyx_r = NULL;
+ __Pyx_RefNannyDeclarations
+ PyObject *__pyx_t_1 = NULL;
+ PyObject *__pyx_t_2 = NULL;
+ PyObject *__pyx_t_3 = NULL;
+ int __pyx_t_4;
+ PyObject *__pyx_t_5 = NULL;
+ PyObject *__pyx_t_6 = NULL;
+ PyObject *__pyx_t_7 = NULL;
+ int __pyx_t_8;
+ char const *__pyx_t_9;
+ PyObject *__pyx_t_10 = NULL;
+ PyObject *__pyx_t_11 = NULL;
+ PyObject *__pyx_t_12 = NULL;
+ int __pyx_t_13;
+ int __pyx_lineno = 0;
+ const char *__pyx_filename = NULL;
+ int __pyx_clineno = 0;
+ __Pyx_RefNannySetupContext("main", 0);
+
+ /* "rmp220_middleware.py":7
+ *
+ * def main(args=None):
+ * rclpy.init(args=args) # <<<<<<<<<<<<<<
+ * node = StateMachineNode()
+ * try:
+ */
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_rclpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_args, __pyx_v_args) < 0) __PYX_ERR(0, 7, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+
+ /* "rmp220_middleware.py":8
+ * def main(args=None):
+ * rclpy.init(args=args)
+ * node = StateMachineNode() # <<<<<<<<<<<<<<
+ * try:
+ * rclpy.spin(node)
+ */
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_StateMachineNode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = NULL;
+ __pyx_t_4 = 0;
+ if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
+ __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
+ if (likely(__pyx_t_2)) {
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
+ __Pyx_INCREF(__pyx_t_2);
+ __Pyx_INCREF(function);
+ __Pyx_DECREF_SET(__pyx_t_1, function);
+ __pyx_t_4 = 1;
+ }
+ }
+ {
+ PyObject *__pyx_callargs[1] = {__pyx_t_2, };
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
+ __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ }
+ __pyx_v_node = __pyx_t_3;
+ __pyx_t_3 = 0;
+
+ /* "rmp220_middleware.py":9
+ * rclpy.init(args=args)
+ * node = StateMachineNode()
+ * try: # <<<<<<<<<<<<<<
+ * rclpy.spin(node)
+ * except KeyboardInterrupt:
+ */
+ /*try:*/ {
+ {
+ __Pyx_PyThreadState_declare
+ __Pyx_PyThreadState_assign
+ __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7);
+ __Pyx_XGOTREF(__pyx_t_5);
+ __Pyx_XGOTREF(__pyx_t_6);
+ __Pyx_XGOTREF(__pyx_t_7);
+ /*try:*/ {
+
+ /* "rmp220_middleware.py":10
+ * node = StateMachineNode()
+ * try:
+ * rclpy.spin(node) # <<<<<<<<<<<<<<
+ * except KeyboardInterrupt:
+ * pass
+ */
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_rclpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L6_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_spin); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L6_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_1 = NULL;
+ __pyx_t_4 = 0;
+ if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
+ __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
+ if (likely(__pyx_t_1)) {
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
+ __Pyx_INCREF(__pyx_t_1);
+ __Pyx_INCREF(function);
+ __Pyx_DECREF_SET(__pyx_t_2, function);
+ __pyx_t_4 = 1;
+ }
+ }
+ {
+ PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_node};
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
+ __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10, __pyx_L6_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ }
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+
+ /* "rmp220_middleware.py":9
+ * rclpy.init(args=args)
+ * node = StateMachineNode()
+ * try: # <<<<<<<<<<<<<<
+ * rclpy.spin(node)
+ * except KeyboardInterrupt:
+ */
+ }
+ __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
+ __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
+ __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
+ goto __pyx_L11_try_end;
+ __pyx_L6_error:;
+ __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
+
+ /* "rmp220_middleware.py":11
+ * try:
+ * rclpy.spin(node)
+ * except KeyboardInterrupt: # <<<<<<<<<<<<<<
+ * pass
+ * finally:
+ */
+ __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyboardInterrupt);
+ if (__pyx_t_4) {
+ __Pyx_ErrRestore(0,0,0);
+ goto __pyx_L7_exception_handled;
+ }
+ goto __pyx_L8_except_error;
+
+ /* "rmp220_middleware.py":9
+ * rclpy.init(args=args)
+ * node = StateMachineNode()
+ * try: # <<<<<<<<<<<<<<
+ * rclpy.spin(node)
+ * except KeyboardInterrupt:
+ */
+ __pyx_L8_except_error:;
+ __Pyx_XGIVEREF(__pyx_t_5);
+ __Pyx_XGIVEREF(__pyx_t_6);
+ __Pyx_XGIVEREF(__pyx_t_7);
+ __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
+ goto __pyx_L4_error;
+ __pyx_L7_exception_handled:;
+ __Pyx_XGIVEREF(__pyx_t_5);
+ __Pyx_XGIVEREF(__pyx_t_6);
+ __Pyx_XGIVEREF(__pyx_t_7);
+ __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
+ __pyx_L11_try_end:;
+ }
+ }
+
+ /* "rmp220_middleware.py":14
+ * pass
+ * finally:
+ * node.disable_chassis() # <<<<<<<<<<<<<<
+ * node.destroy_node()
+ * rclpy.shutdown()
+ */
+ /*finally:*/ {
+ /*normal exit:*/{
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_node, __pyx_n_s_disable_chassis); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_1 = NULL;
+ __pyx_t_4 = 0;
+ if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
+ __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
+ if (likely(__pyx_t_1)) {
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
+ __Pyx_INCREF(__pyx_t_1);
+ __Pyx_INCREF(function);
+ __Pyx_DECREF_SET(__pyx_t_2, function);
+ __pyx_t_4 = 1;
+ }
+ }
+ {
+ PyObject *__pyx_callargs[1] = {__pyx_t_1, };
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
+ __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ }
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+
+ /* "rmp220_middleware.py":15
+ * finally:
+ * node.disable_chassis()
+ * node.destroy_node() # <<<<<<<<<<<<<<
+ * rclpy.shutdown()
+ *
+ */
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_node, __pyx_n_s_destroy_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_1 = NULL;
+ __pyx_t_4 = 0;
+ if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
+ __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
+ if (likely(__pyx_t_1)) {
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
+ __Pyx_INCREF(__pyx_t_1);
+ __Pyx_INCREF(function);
+ __Pyx_DECREF_SET(__pyx_t_2, function);
+ __pyx_t_4 = 1;
+ }
+ }
+ {
+ PyObject *__pyx_callargs[1] = {__pyx_t_1, };
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
+ __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ }
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+
+ /* "rmp220_middleware.py":16
+ * node.disable_chassis()
+ * node.destroy_node()
+ * rclpy.shutdown() # <<<<<<<<<<<<<<
+ *
+ * if __name__ == '__main__':
+ */
+ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_rclpy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_shutdown); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_2 = NULL;
+ __pyx_t_4 = 0;
+ if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
+ __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
+ if (likely(__pyx_t_2)) {
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
+ __Pyx_INCREF(__pyx_t_2);
+ __Pyx_INCREF(function);
+ __Pyx_DECREF_SET(__pyx_t_1, function);
+ __pyx_t_4 = 1;
+ }
+ }
+ {
+ PyObject *__pyx_callargs[1] = {__pyx_t_2, };
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
+ __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ }
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+ goto __pyx_L5;
+ }
+ __pyx_L4_error:;
+ /*exception exit:*/{
+ __Pyx_PyThreadState_declare
+ __Pyx_PyThreadState_assign
+ __pyx_t_7 = 0; __pyx_t_6 = 0; __pyx_t_5 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0;
+ __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
+ if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
+ if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_5) < 0)) __Pyx_ErrFetch(&__pyx_t_7, &__pyx_t_6, &__pyx_t_5);
+ __Pyx_XGOTREF(__pyx_t_7);
+ __Pyx_XGOTREF(__pyx_t_6);
+ __Pyx_XGOTREF(__pyx_t_5);
+ __Pyx_XGOTREF(__pyx_t_10);
+ __Pyx_XGOTREF(__pyx_t_11);
+ __Pyx_XGOTREF(__pyx_t_12);
+ __pyx_t_4 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_9 = __pyx_filename;
+ {
+
+ /* "rmp220_middleware.py":14
+ * pass
+ * finally:
+ * node.disable_chassis() # <<<<<<<<<<<<<<
+ * node.destroy_node()
+ * rclpy.shutdown()
+ */
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_node, __pyx_n_s_disable_chassis); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L13_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = NULL;
+ __pyx_t_13 = 0;
+ if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
+ __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
+ if (likely(__pyx_t_2)) {
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
+ __Pyx_INCREF(__pyx_t_2);
+ __Pyx_INCREF(function);
+ __Pyx_DECREF_SET(__pyx_t_1, function);
+ __pyx_t_13 = 1;
+ }
+ }
+ {
+ PyObject *__pyx_callargs[1] = {__pyx_t_2, };
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_13, 0+__pyx_t_13);
+ __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14, __pyx_L13_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ }
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+
+ /* "rmp220_middleware.py":15
+ * finally:
+ * node.disable_chassis()
+ * node.destroy_node() # <<<<<<<<<<<<<<
+ * rclpy.shutdown()
+ *
+ */
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_node, __pyx_n_s_destroy_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L13_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = NULL;
+ __pyx_t_13 = 0;
+ if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
+ __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
+ if (likely(__pyx_t_2)) {
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
+ __Pyx_INCREF(__pyx_t_2);
+ __Pyx_INCREF(function);
+ __Pyx_DECREF_SET(__pyx_t_1, function);
+ __pyx_t_13 = 1;
+ }
+ }
+ {
+ PyObject *__pyx_callargs[1] = {__pyx_t_2, };
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_13, 0+__pyx_t_13);
+ __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15, __pyx_L13_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ }
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+
+ /* "rmp220_middleware.py":16
+ * node.disable_chassis()
+ * node.destroy_node()
+ * rclpy.shutdown() # <<<<<<<<<<<<<<
+ *
+ * if __name__ == '__main__':
+ */
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_rclpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L13_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_shutdown); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L13_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_1 = NULL;
+ __pyx_t_13 = 0;
+ if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
+ __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
+ if (likely(__pyx_t_1)) {
+ PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
+ __Pyx_INCREF(__pyx_t_1);
+ __Pyx_INCREF(function);
+ __Pyx_DECREF_SET(__pyx_t_2, function);
+ __pyx_t_13 = 1;
+ }
+ }
+ {
+ PyObject *__pyx_callargs[1] = {__pyx_t_1, };
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_13, 0+__pyx_t_13);
+ __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16, __pyx_L13_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ }
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+ }
+ if (PY_MAJOR_VERSION >= 3) {
+ __Pyx_XGIVEREF(__pyx_t_10);
+ __Pyx_XGIVEREF(__pyx_t_11);
+ __Pyx_XGIVEREF(__pyx_t_12);
+ __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
+ }
+ __Pyx_XGIVEREF(__pyx_t_7);
+ __Pyx_XGIVEREF(__pyx_t_6);
+ __Pyx_XGIVEREF(__pyx_t_5);
+ __Pyx_ErrRestore(__pyx_t_7, __pyx_t_6, __pyx_t_5);
+ __pyx_t_7 = 0; __pyx_t_6 = 0; __pyx_t_5 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0;
+ __pyx_lineno = __pyx_t_4; __pyx_clineno = __pyx_t_8; __pyx_filename = __pyx_t_9;
+ goto __pyx_L1_error;
+ __pyx_L13_error:;
+ if (PY_MAJOR_VERSION >= 3) {
+ __Pyx_XGIVEREF(__pyx_t_10);
+ __Pyx_XGIVEREF(__pyx_t_11);
+ __Pyx_XGIVEREF(__pyx_t_12);
+ __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
+ }
+ __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
+ __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
+ __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0;
+ goto __pyx_L1_error;
+ }
+ __pyx_L5:;
+ }
+
+ /* "rmp220_middleware.py":6
+ * from rmp220_middleware import StateMachineNode
+ *
+ * def main(args=None): # <<<<<<<<<<<<<<
+ * rclpy.init(args=args)
+ * node = StateMachineNode()
+ */
+
+ /* function exit code */
+ __pyx_r = Py_None; __Pyx_INCREF(Py_None);
+ goto __pyx_L0;
+ __pyx_L1_error:;
+ __Pyx_XDECREF(__pyx_t_1);
+ __Pyx_XDECREF(__pyx_t_2);
+ __Pyx_XDECREF(__pyx_t_3);
+ __Pyx_AddTraceback("rmp220_middleware.main", __pyx_clineno, __pyx_lineno, __pyx_filename);
+ __pyx_r = NULL;
+ __pyx_L0:;
+ __Pyx_XDECREF(__pyx_v_node);
+ __Pyx_XGIVEREF(__pyx_r);
+ __Pyx_RefNannyFinishContext();
+ return __pyx_r;
+}
+
+static PyMethodDef __pyx_methods[] = {
+ {0, 0, 0, 0}
+};
+#ifndef CYTHON_SMALL_CODE
+#if defined(__clang__)
+ #define CYTHON_SMALL_CODE
+#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
+ #define CYTHON_SMALL_CODE __attribute__((cold))
+#else
+ #define CYTHON_SMALL_CODE
+#endif
+#endif
+/* #### Code section: pystring_table ### */
+
+static int __Pyx_CreateStringTabAndInitStrings(void) {
+ __Pyx_StringTabEntry __pyx_string_tab[] = {
+ {&__pyx_n_s_, __pyx_k_, sizeof(__pyx_k_), 0, 0, 1, 1},
+ {&__pyx_n_s_KeyboardInterrupt, __pyx_k_KeyboardInterrupt, sizeof(__pyx_k_KeyboardInterrupt), 0, 0, 1, 1},
+ {&__pyx_n_s_StateMachineNode, __pyx_k_StateMachineNode, sizeof(__pyx_k_StateMachineNode), 0, 0, 1, 1},
+ {&__pyx_kp_u__2, __pyx_k__2, sizeof(__pyx_k__2), 0, 1, 0, 0},
+ {&__pyx_n_s__6, __pyx_k__6, sizeof(__pyx_k__6), 0, 0, 1, 1},
+ {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1},
+ {&__pyx_n_s_asyncio_coroutines, __pyx_k_asyncio_coroutines, sizeof(__pyx_k_asyncio_coroutines), 0, 0, 1, 1},
+ {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
+ {&__pyx_n_s_destroy_node, __pyx_k_destroy_node, sizeof(__pyx_k_destroy_node), 0, 0, 1, 1},
+ {&__pyx_n_s_disable_chassis, __pyx_k_disable_chassis, sizeof(__pyx_k_disable_chassis), 0, 0, 1, 1},
+ {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
+ {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1},
+ {&__pyx_n_s_initializing, __pyx_k_initializing, sizeof(__pyx_k_initializing), 0, 0, 1, 1},
+ {&__pyx_n_s_is_coroutine, __pyx_k_is_coroutine, sizeof(__pyx_k_is_coroutine), 0, 0, 1, 1},
+ {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
+ {&__pyx_n_s_main_2, __pyx_k_main_2, sizeof(__pyx_k_main_2), 0, 0, 1, 1},
+ {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
+ {&__pyx_n_s_node, __pyx_k_node, sizeof(__pyx_k_node), 0, 0, 1, 1},
+ {&__pyx_n_s_rclpy, __pyx_k_rclpy, sizeof(__pyx_k_rclpy), 0, 0, 1, 1},
+ {&__pyx_n_s_rmp220_middleware, __pyx_k_rmp220_middleware, sizeof(__pyx_k_rmp220_middleware), 0, 0, 1, 1},
+ {&__pyx_kp_s_rmp220_middleware_rmp220_middlew, __pyx_k_rmp220_middleware_rmp220_middlew, sizeof(__pyx_k_rmp220_middleware_rmp220_middlew), 0, 0, 1, 0},
+ {&__pyx_n_s_shutdown, __pyx_k_shutdown, sizeof(__pyx_k_shutdown), 0, 0, 1, 1},
+ {&__pyx_n_s_spec, __pyx_k_spec, sizeof(__pyx_k_spec), 0, 0, 1, 1},
+ {&__pyx_n_s_spin, __pyx_k_spin, sizeof(__pyx_k_spin), 0, 0, 1, 1},
+ {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
+ {0, 0, 0, 0, 0, 0, 0}
+ };
+ return __Pyx_InitStrings(__pyx_string_tab);
+}
+/* #### Code section: cached_builtins ### */
+static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
+ __pyx_builtin_KeyboardInterrupt = __Pyx_GetBuiltinName(__pyx_n_s_KeyboardInterrupt); if (!__pyx_builtin_KeyboardInterrupt) __PYX_ERR(0, 11, __pyx_L1_error)
+ return 0;
+ __pyx_L1_error:;
+ return -1;
+}
+/* #### Code section: cached_constants ### */
+
+static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
+ __Pyx_RefNannyDeclarations
+ __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
+
+ /* "rmp220_middleware.py":6
+ * from rmp220_middleware import StateMachineNode
+ *
+ * def main(args=None): # <<<<<<<<<<<<<<
+ * rclpy.init(args=args)
+ * node = StateMachineNode()
+ */
+ __pyx_tuple__3 = PyTuple_Pack(2, __pyx_n_s_args, __pyx_n_s_node); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 6, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_tuple__3);
+ __Pyx_GIVEREF(__pyx_tuple__3);
+ __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__3, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_rmp220_middleware_rmp220_middlew, __pyx_n_s_main_2, 6, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 6, __pyx_L1_error)
+ __pyx_tuple__5 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 6, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_tuple__5);
+ __Pyx_GIVEREF(__pyx_tuple__5);
+ __Pyx_RefNannyFinishContext();
+ return 0;
+ __pyx_L1_error:;
+ __Pyx_RefNannyFinishContext();
+ return -1;
+}
+/* #### Code section: init_constants ### */
+
+static CYTHON_SMALL_CODE int __Pyx_InitConstants(void) {
+ if (__Pyx_CreateStringTabAndInitStrings() < 0) __PYX_ERR(0, 1, __pyx_L1_error);
+ return 0;
+ __pyx_L1_error:;
+ return -1;
+}
+/* #### Code section: init_globals ### */
+
+static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
+ return 0;
+}
+/* #### Code section: init_module ### */
+
+static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
+static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
+static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
+static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
+static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
+static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
+static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/
+
+static int __Pyx_modinit_global_init_code(void) {
+ __Pyx_RefNannyDeclarations
+ __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
+ /*--- Global init code ---*/
+ __Pyx_RefNannyFinishContext();
+ return 0;
+}
+
+static int __Pyx_modinit_variable_export_code(void) {
+ __Pyx_RefNannyDeclarations
+ __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
+ /*--- Variable export code ---*/
+ __Pyx_RefNannyFinishContext();
+ return 0;
+}
+
+static int __Pyx_modinit_function_export_code(void) {
+ __Pyx_RefNannyDeclarations
+ __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
+ /*--- Function export code ---*/
+ __Pyx_RefNannyFinishContext();
+ return 0;
+}
+
+static int __Pyx_modinit_type_init_code(void) {
+ __Pyx_RefNannyDeclarations
+ __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
+ /*--- Type init code ---*/
+ __Pyx_RefNannyFinishContext();
+ return 0;
+}
+
+static int __Pyx_modinit_type_import_code(void) {
+ __Pyx_RefNannyDeclarations
+ __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
+ /*--- Type import code ---*/
+ __Pyx_RefNannyFinishContext();
+ return 0;
+}
+
+static int __Pyx_modinit_variable_import_code(void) {
+ __Pyx_RefNannyDeclarations
+ __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
+ /*--- Variable import code ---*/
+ __Pyx_RefNannyFinishContext();
+ return 0;
+}
+
+static int __Pyx_modinit_function_import_code(void) {
+ __Pyx_RefNannyDeclarations
+ __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
+ /*--- Function import code ---*/
+ __Pyx_RefNannyFinishContext();
+ return 0;
+}
+
+
+#if PY_MAJOR_VERSION >= 3
+#if CYTHON_PEP489_MULTI_PHASE_INIT
+static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
+static int __pyx_pymod_exec_rmp220_middleware(PyObject* module); /*proto*/
+static PyModuleDef_Slot __pyx_moduledef_slots[] = {
+ {Py_mod_create, (void*)__pyx_pymod_create},
+ {Py_mod_exec, (void*)__pyx_pymod_exec_rmp220_middleware},
+ {0, NULL}
+};
+#endif
+
+#ifdef __cplusplus
+namespace {
+ struct PyModuleDef __pyx_moduledef =
+ #else
+ static struct PyModuleDef __pyx_moduledef =
+ #endif
+ {
+ PyModuleDef_HEAD_INIT,
+ "rmp220_middleware",
+ 0, /* m_doc */
+ #if CYTHON_PEP489_MULTI_PHASE_INIT
+ 0, /* m_size */
+ #elif CYTHON_USE_MODULE_STATE
+ sizeof(__pyx_mstate), /* m_size */
+ #else
+ -1, /* m_size */
+ #endif
+ __pyx_methods /* m_methods */,
+ #if CYTHON_PEP489_MULTI_PHASE_INIT
+ __pyx_moduledef_slots, /* m_slots */
+ #else
+ NULL, /* m_reload */
+ #endif
+ #if CYTHON_USE_MODULE_STATE
+ __pyx_m_traverse, /* m_traverse */
+ __pyx_m_clear, /* m_clear */
+ NULL /* m_free */
+ #else
+ NULL, /* m_traverse */
+ NULL, /* m_clear */
+ NULL /* m_free */
+ #endif
+ };
+ #ifdef __cplusplus
+} /* anonymous namespace */
+#endif
+#endif
+
+#ifndef CYTHON_NO_PYINIT_EXPORT
+#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
+#elif PY_MAJOR_VERSION < 3
+#ifdef __cplusplus
+#define __Pyx_PyMODINIT_FUNC extern "C" void
+#else
+#define __Pyx_PyMODINIT_FUNC void
+#endif
+#else
+#ifdef __cplusplus
+#define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
+#else
+#define __Pyx_PyMODINIT_FUNC PyObject *
+#endif
+#endif
+
+
+#if PY_MAJOR_VERSION < 3
+__Pyx_PyMODINIT_FUNC initrmp220_middleware(void) CYTHON_SMALL_CODE; /*proto*/
+__Pyx_PyMODINIT_FUNC initrmp220_middleware(void)
+#else
+__Pyx_PyMODINIT_FUNC PyInit_rmp220_middleware(void) CYTHON_SMALL_CODE; /*proto*/
+__Pyx_PyMODINIT_FUNC PyInit_rmp220_middleware(void)
+#if CYTHON_PEP489_MULTI_PHASE_INIT
+{
+ return PyModuleDef_Init(&__pyx_moduledef);
+}
+static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
+ #if PY_VERSION_HEX >= 0x030700A1
+ static PY_INT64_T main_interpreter_id = -1;
+ PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
+ if (main_interpreter_id == -1) {
+ main_interpreter_id = current_id;
+ return (unlikely(current_id == -1)) ? -1 : 0;
+ } else if (unlikely(main_interpreter_id != current_id))
+ #else
+ static PyInterpreterState *main_interpreter = NULL;
+ PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
+ if (!main_interpreter) {
+ main_interpreter = current_interpreter;
+ } else if (unlikely(main_interpreter != current_interpreter))
+ #endif
+ {
+ PyErr_SetString(
+ PyExc_ImportError,
+ "Interpreter change detected - this module can only be loaded into one interpreter per process.");
+ return -1;
+ }
+ return 0;
+}
+#if CYTHON_COMPILING_IN_LIMITED_API
+static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *module, const char* from_name, const char* to_name, int allow_none)
+#else
+static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
+#endif
+{
+ PyObject *value = PyObject_GetAttrString(spec, from_name);
+ int result = 0;
+ if (likely(value)) {
+ if (allow_none || value != Py_None) {
+#if CYTHON_COMPILING_IN_LIMITED_API
+ result = PyModule_AddObject(module, to_name, value);
+#else
+ result = PyDict_SetItemString(moddict, to_name, value);
+#endif
+ }
+ Py_DECREF(value);
+ } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
+ PyErr_Clear();
+ } else {
+ result = -1;
+ }
+ return result;
+}
+static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) {
+ PyObject *module = NULL, *moddict, *modname;
+ CYTHON_UNUSED_VAR(def);
+ if (__Pyx_check_single_interpreter())
+ return NULL;
+ if (__pyx_m)
+ return __Pyx_NewRef(__pyx_m);
+ modname = PyObject_GetAttrString(spec, "name");
+ if (unlikely(!modname)) goto bad;
+ module = PyModule_NewObject(modname);
+ Py_DECREF(modname);
+ if (unlikely(!module)) goto bad;
+#if CYTHON_COMPILING_IN_LIMITED_API
+ moddict = module;
+#else
+ moddict = PyModule_GetDict(module);
+ if (unlikely(!moddict)) goto bad;
+#endif
+ if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
+ if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
+ if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
+ if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
+ return module;
+bad:
+ Py_XDECREF(module);
+ return NULL;
+}
+
+
+static CYTHON_SMALL_CODE int __pyx_pymod_exec_rmp220_middleware(PyObject *__pyx_pyinit_module)
+#endif
+#endif
+{
+ int stringtab_initialized = 0;
+ #if CYTHON_USE_MODULE_STATE
+ int pystate_addmodule_run = 0;
+ #endif
+ PyObject *__pyx_t_1 = NULL;
+ PyObject *__pyx_t_2 = NULL;
+ PyObject *__pyx_t_3 = NULL;
+ int __pyx_t_4;
+ int __pyx_lineno = 0;
+ const char *__pyx_filename = NULL;
+ int __pyx_clineno = 0;
+ __Pyx_RefNannyDeclarations
+ #if CYTHON_PEP489_MULTI_PHASE_INIT
+ if (__pyx_m) {
+ if (__pyx_m == __pyx_pyinit_module) return 0;
+ PyErr_SetString(PyExc_RuntimeError, "Module 'rmp220_middleware' has already been imported. Re-initialisation is not supported.");
+ return -1;
+ }
+ #elif PY_MAJOR_VERSION >= 3
+ if (__pyx_m) return __Pyx_NewRef(__pyx_m);
+ #endif
+ /*--- Module creation code ---*/
+ #if CYTHON_PEP489_MULTI_PHASE_INIT
+ __pyx_m = __pyx_pyinit_module;
+ Py_INCREF(__pyx_m);
+ #else
+ #if PY_MAJOR_VERSION < 3
+ __pyx_m = Py_InitModule4("rmp220_middleware", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
+ if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
+ #elif CYTHON_USE_MODULE_STATE
+ __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
+ {
+ int add_module_result = PyState_AddModule(__pyx_t_1, &__pyx_moduledef);
+ __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to rmp220_middleware pseudovariable */
+ if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
+ pystate_addmodule_run = 1;
+ }
+ #else
+ __pyx_m = PyModule_Create(&__pyx_moduledef);
+ if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
+ #endif
+ #endif
+ CYTHON_UNUSED_VAR(__pyx_t_1);
+ __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
+ Py_INCREF(__pyx_d);
+ __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
+ Py_INCREF(__pyx_b);
+ __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
+ Py_INCREF(__pyx_cython_runtime);
+ if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #if CYTHON_REFNANNY
+__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
+if (!__Pyx_RefNanny) {
+ PyErr_Clear();
+ __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
+ if (!__Pyx_RefNanny)
+ Py_FatalError("failed to import 'refnanny' module");
+}
+#endif
+ __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_rmp220_middleware(void)", 0);
+ if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #ifdef __Pxy_PyFrame_Initialize_Offsets
+ __Pxy_PyFrame_Initialize_Offsets();
+ #endif
+ __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
+ __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
+ __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
+ #ifdef __Pyx_CyFunction_USED
+ if (__pyx_CyFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #endif
+ #ifdef __Pyx_FusedFunction_USED
+ if (__pyx_FusedFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #endif
+ #ifdef __Pyx_Coroutine_USED
+ if (__pyx_Coroutine_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #endif
+ #ifdef __Pyx_Generator_USED
+ if (__pyx_Generator_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #endif
+ #ifdef __Pyx_AsyncGen_USED
+ if (__pyx_AsyncGen_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #endif
+ #ifdef __Pyx_StopAsyncIteration_USED
+ if (__pyx_StopAsyncIteration_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #endif
+ /*--- Library function declarations ---*/
+ /*--- Threads initialization code ---*/
+ #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
+ PyEval_InitThreads();
+ #endif
+ /*--- Initialize various global constants etc. ---*/
+ if (__Pyx_InitConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ stringtab_initialized = 1;
+ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
+ if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #endif
+ if (__pyx_module_is_main_rmp220_middleware) {
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ }
+ #if PY_MAJOR_VERSION >= 3
+ {
+ PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
+ if (!PyDict_GetItemString(modules, "rmp220_middleware")) {
+ if (unlikely((PyDict_SetItemString(modules, "rmp220_middleware", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
+ }
+ }
+ #endif
+ /*--- Builtin init code ---*/
+ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ /*--- Constants init code ---*/
+ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ /*--- Global type/function init code ---*/
+ (void)__Pyx_modinit_global_init_code();
+ (void)__Pyx_modinit_variable_export_code();
+ (void)__Pyx_modinit_function_export_code();
+ (void)__Pyx_modinit_type_init_code();
+ (void)__Pyx_modinit_type_import_code();
+ (void)__Pyx_modinit_variable_import_code();
+ (void)__Pyx_modinit_function_import_code();
+ /*--- Execution code ---*/
+ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
+ if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ #endif
+
+ /* "rmp220_middleware.py":3
+ * # main.py
+ *
+ * import rclpy # <<<<<<<<<<<<<<
+ * from rmp220_middleware import StateMachineNode
+ *
+ */
+ __pyx_t_2 = __Pyx_ImportDottedModule(__pyx_n_s_rclpy, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_rclpy, __pyx_t_2) < 0) __PYX_ERR(0, 3, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+
+ /* "rmp220_middleware.py":4
+ *
+ * import rclpy
+ * from rmp220_middleware import StateMachineNode # <<<<<<<<<<<<<<
+ *
+ * def main(args=None):
+ */
+ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_INCREF(__pyx_n_s_StateMachineNode);
+ __Pyx_GIVEREF(__pyx_n_s_StateMachineNode);
+ PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_StateMachineNode);
+ __pyx_t_3 = __Pyx_Import(__pyx_n_s_rmp220_middleware, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_StateMachineNode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_StateMachineNode, __pyx_t_2) < 0) __PYX_ERR(0, 4, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+
+ /* "rmp220_middleware.py":6
+ * from rmp220_middleware import StateMachineNode
+ *
+ * def main(args=None): # <<<<<<<<<<<<<<
+ * rclpy.init(args=args)
+ * node = StateMachineNode()
+ */
+ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_17rmp220_middleware_1main, 0, __pyx_n_s_main_2, NULL, __pyx_n_s_rmp220_middleware, __pyx_d, ((PyObject *)__pyx_codeobj__4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__5);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_main_2, __pyx_t_3) < 0) __PYX_ERR(0, 6, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+
+ /* "rmp220_middleware.py":18
+ * rclpy.shutdown()
+ *
+ * if __name__ == '__main__': # <<<<<<<<<<<<<<
+ * main()
+ */
+ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __pyx_t_4 = (__Pyx_PyString_Equals(__pyx_t_3, __pyx_n_s_main, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 18, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+ if (__pyx_t_4) {
+
+ /* "rmp220_middleware.py":19
+ *
+ * if __name__ == '__main__':
+ * main() # <<<<<<<<<<<<<<
+ */
+ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_main_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_3);
+ __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+
+ /* "rmp220_middleware.py":18
+ * rclpy.shutdown()
+ *
+ * if __name__ == '__main__': # <<<<<<<<<<<<<<
+ * main()
+ */
+ }
+
+ /* "rmp220_middleware.py":1
+ * # main.py # <<<<<<<<<<<<<<
+ *
+ * import rclpy
+ */
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+
+ /*--- Wrapped vars code ---*/
+
+ goto __pyx_L0;
+ __pyx_L1_error:;
+ __Pyx_XDECREF(__pyx_t_2);
+ __Pyx_XDECREF(__pyx_t_3);
+ if (__pyx_m) {
+ if (__pyx_d && stringtab_initialized) {
+ __Pyx_AddTraceback("init rmp220_middleware", __pyx_clineno, __pyx_lineno, __pyx_filename);
+ }
+ #if !CYTHON_USE_MODULE_STATE
+ Py_CLEAR(__pyx_m);
+ #else
+ Py_DECREF(__pyx_m);
+ if (pystate_addmodule_run) {
+ PyObject *tp, *value, *tb;
+ PyErr_Fetch(&tp, &value, &tb);
+ PyState_RemoveModule(&__pyx_moduledef);
+ PyErr_Restore(tp, value, tb);
+ }
+ #endif
+ } else if (!PyErr_Occurred()) {
+ PyErr_SetString(PyExc_ImportError, "init rmp220_middleware");
+ }
+ __pyx_L0:;
+ __Pyx_RefNannyFinishContext();
+ #if CYTHON_PEP489_MULTI_PHASE_INIT
+ return (__pyx_m != NULL) ? 0 : -1;
+ #elif PY_MAJOR_VERSION >= 3
+ return __pyx_m;
+ #else
+ return;
+ #endif
+}
+/* #### Code section: cleanup_globals ### */
+/* #### Code section: cleanup_module ### */
+/* #### Code section: main_method ### */
+/* #### Code section: utility_code_pragmas ### */
+#ifdef _MSC_VER
+#pragma warning( push )
+/* Warning 4127: conditional expression is constant
+ * Cython uses constant conditional expressions to allow in inline functions to be optimized at
+ * compile-time, so this warning is not useful
+ */
+#pragma warning( disable : 4127 )
+#endif
+
+
+
+/* #### Code section: utility_code_def ### */
+
+/* --- Runtime support code --- */
+/* Refnanny */
+#if CYTHON_REFNANNY
+static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
+ PyObject *m = NULL, *p = NULL;
+ void *r = NULL;
+ m = PyImport_ImportModule(modname);
+ if (!m) goto end;
+ p = PyObject_GetAttrString(m, "RefNannyAPI");
+ if (!p) goto end;
+ r = PyLong_AsVoidPtr(p);
+end:
+ Py_XDECREF(p);
+ Py_XDECREF(m);
+ return (__Pyx_RefNannyAPIStruct *)r;
+}
+#endif
+
+/* PyErrExceptionMatches */
+#if CYTHON_FAST_THREAD_STATE
+static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
+ Py_ssize_t i, n;
+ n = PyTuple_GET_SIZE(tuple);
+#if PY_MAJOR_VERSION >= 3
+ for (i=0; i= 0x030C00A6
+ PyObject *current_exception = tstate->current_exception;
+ if (unlikely(!current_exception)) return 0;
+ exc_type = (PyObject*) Py_TYPE(current_exception);
+ if (exc_type == err) return 1;
+#else
+ exc_type = tstate->curexc_type;
+ if (exc_type == err) return 1;
+ if (unlikely(!exc_type)) return 0;
+#endif
+ #if CYTHON_AVOID_BORROWED_REFS
+ Py_INCREF(exc_type);
+ #endif
+ if (unlikely(PyTuple_Check(err))) {
+ result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
+ } else {
+ result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
+ }
+ #if CYTHON_AVOID_BORROWED_REFS
+ Py_DECREF(exc_type);
+ #endif
+ return result;
+}
+#endif
+
+/* PyErrFetchRestore */
+#if CYTHON_FAST_THREAD_STATE
+static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
+#if PY_VERSION_HEX >= 0x030C00A6
+ PyObject *tmp_value;
+ assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)));
+ if (value) {
+ #if CYTHON_COMPILING_IN_CPYTHON
+ if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb))
+ #endif
+ PyException_SetTraceback(value, tb);
+ }
+ tmp_value = tstate->current_exception;
+ tstate->current_exception = value;
+ Py_XDECREF(tmp_value);
+#else
+ PyObject *tmp_type, *tmp_value, *tmp_tb;
+ tmp_type = tstate->curexc_type;
+ tmp_value = tstate->curexc_value;
+ tmp_tb = tstate->curexc_traceback;
+ tstate->curexc_type = type;
+ tstate->curexc_value = value;
+ tstate->curexc_traceback = tb;
+ Py_XDECREF(tmp_type);
+ Py_XDECREF(tmp_value);
+ Py_XDECREF(tmp_tb);
+#endif
+}
+static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
+#if PY_VERSION_HEX >= 0x030C00A6
+ PyObject* exc_value;
+ exc_value = tstate->current_exception;
+ tstate->current_exception = 0;
+ *value = exc_value;
+ *type = NULL;
+ *tb = NULL;
+ if (exc_value) {
+ *type = (PyObject*) Py_TYPE(exc_value);
+ Py_INCREF(*type);
+ #if CYTHON_COMPILING_IN_CPYTHON
+ *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
+ Py_XINCREF(*tb);
+ #else
+ *tb = PyException_GetTraceback(exc_value);
+ #endif
+ }
+#else
+ *type = tstate->curexc_type;
+ *value = tstate->curexc_value;
+ *tb = tstate->curexc_traceback;
+ tstate->curexc_type = 0;
+ tstate->curexc_value = 0;
+ tstate->curexc_traceback = 0;
+#endif
+}
+#endif
+
+/* PyObjectGetAttrStr */
+#if CYTHON_USE_TYPE_SLOTS
+static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
+ PyTypeObject* tp = Py_TYPE(obj);
+ if (likely(tp->tp_getattro))
+ return tp->tp_getattro(obj, attr_name);
+#if PY_MAJOR_VERSION < 3
+ if (likely(tp->tp_getattr))
+ return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
+#endif
+ return PyObject_GetAttr(obj, attr_name);
+}
+#endif
+
+/* PyObjectGetAttrStrNoError */
+static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
+ __Pyx_PyThreadState_declare
+ __Pyx_PyThreadState_assign
+ if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
+ __Pyx_PyErr_Clear();
+}
+static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
+ PyObject *result;
+#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1
+ PyTypeObject* tp = Py_TYPE(obj);
+ if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
+ return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
+ }
+#endif
+ result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
+ if (unlikely(!result)) {
+ __Pyx_PyObject_GetAttrStr_ClearAttributeError();
+ }
+ return result;
+}
+
+/* GetBuiltinName */
+static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
+ PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_b, name);
+ if (unlikely(!result) && !PyErr_Occurred()) {
+ PyErr_Format(PyExc_NameError,
+#if PY_MAJOR_VERSION >= 3
+ "name '%U' is not defined", name);
+#else
+ "name '%.200s' is not defined", PyString_AS_STRING(name));
+#endif
+ }
+ return result;
+}
+
+/* TupleAndListFromArray */
+#if CYTHON_COMPILING_IN_CPYTHON
+static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
+ PyObject *v;
+ Py_ssize_t i;
+ for (i = 0; i < length; i++) {
+ v = dest[i] = src[i];
+ Py_INCREF(v);
+ }
+}
+static CYTHON_INLINE PyObject *
+__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
+{
+ PyObject *res;
+ if (n <= 0) {
+ Py_INCREF(__pyx_empty_tuple);
+ return __pyx_empty_tuple;
+ }
+ res = PyTuple_New(n);
+ if (unlikely(res == NULL)) return NULL;
+ __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
+ return res;
+}
+static CYTHON_INLINE PyObject *
+__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
+{
+ PyObject *res;
+ if (n <= 0) {
+ return PyList_New(0);
+ }
+ res = PyList_New(n);
+ if (unlikely(res == NULL)) return NULL;
+ __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
+ return res;
+}
+#endif
+
+/* BytesEquals */
+static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
+#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API
+ return PyObject_RichCompareBool(s1, s2, equals);
+#else
+ if (s1 == s2) {
+ return (equals == Py_EQ);
+ } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
+ const char *ps1, *ps2;
+ Py_ssize_t length = PyBytes_GET_SIZE(s1);
+ if (length != PyBytes_GET_SIZE(s2))
+ return (equals == Py_NE);
+ ps1 = PyBytes_AS_STRING(s1);
+ ps2 = PyBytes_AS_STRING(s2);
+ if (ps1[0] != ps2[0]) {
+ return (equals == Py_NE);
+ } else if (length == 1) {
+ return (equals == Py_EQ);
+ } else {
+ int result;
+#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
+ Py_hash_t hash1, hash2;
+ hash1 = ((PyBytesObject*)s1)->ob_shash;
+ hash2 = ((PyBytesObject*)s2)->ob_shash;
+ if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
+ return (equals == Py_NE);
+ }
+#endif
+ result = memcmp(ps1, ps2, (size_t)length);
+ return (equals == Py_EQ) ? (result == 0) : (result != 0);
+ }
+ } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
+ return (equals == Py_NE);
+ } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
+ return (equals == Py_NE);
+ } else {
+ int result;
+ PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
+ if (!py_result)
+ return -1;
+ result = __Pyx_PyObject_IsTrue(py_result);
+ Py_DECREF(py_result);
+ return result;
+ }
+#endif
+}
+
+/* UnicodeEquals */
+static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
+#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API
+ return PyObject_RichCompareBool(s1, s2, equals);
+#else
+#if PY_MAJOR_VERSION < 3
+ PyObject* owned_ref = NULL;
+#endif
+ int s1_is_unicode, s2_is_unicode;
+ if (s1 == s2) {
+ goto return_eq;
+ }
+ s1_is_unicode = PyUnicode_CheckExact(s1);
+ s2_is_unicode = PyUnicode_CheckExact(s2);
+#if PY_MAJOR_VERSION < 3
+ if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) {
+ owned_ref = PyUnicode_FromObject(s2);
+ if (unlikely(!owned_ref))
+ return -1;
+ s2 = owned_ref;
+ s2_is_unicode = 1;
+ } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) {
+ owned_ref = PyUnicode_FromObject(s1);
+ if (unlikely(!owned_ref))
+ return -1;
+ s1 = owned_ref;
+ s1_is_unicode = 1;
+ } else if (((!s2_is_unicode) & (!s1_is_unicode))) {
+ return __Pyx_PyBytes_Equals(s1, s2, equals);
+ }
+#endif
+ if (s1_is_unicode & s2_is_unicode) {
+ Py_ssize_t length;
+ int kind;
+ void *data1, *data2;
+ if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
+ return -1;
+ length = __Pyx_PyUnicode_GET_LENGTH(s1);
+ if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) {
+ goto return_ne;
+ }
+#if CYTHON_USE_UNICODE_INTERNALS
+ {
+ Py_hash_t hash1, hash2;
+ #if CYTHON_PEP393_ENABLED
+ hash1 = ((PyASCIIObject*)s1)->hash;
+ hash2 = ((PyASCIIObject*)s2)->hash;
+ #else
+ hash1 = ((PyUnicodeObject*)s1)->hash;
+ hash2 = ((PyUnicodeObject*)s2)->hash;
+ #endif
+ if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
+ goto return_ne;
+ }
+ }
+#endif
+ kind = __Pyx_PyUnicode_KIND(s1);
+ if (kind != __Pyx_PyUnicode_KIND(s2)) {
+ goto return_ne;
+ }
+ data1 = __Pyx_PyUnicode_DATA(s1);
+ data2 = __Pyx_PyUnicode_DATA(s2);
+ if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
+ goto return_ne;
+ } else if (length == 1) {
+ goto return_eq;
+ } else {
+ int result = memcmp(data1, data2, (size_t)(length * kind));
+ #if PY_MAJOR_VERSION < 3
+ Py_XDECREF(owned_ref);
+ #endif
+ return (equals == Py_EQ) ? (result == 0) : (result != 0);
+ }
+ } else if ((s1 == Py_None) & s2_is_unicode) {
+ goto return_ne;
+ } else if ((s2 == Py_None) & s1_is_unicode) {
+ goto return_ne;
+ } else {
+ int result;
+ PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
+ #if PY_MAJOR_VERSION < 3
+ Py_XDECREF(owned_ref);
+ #endif
+ if (!py_result)
+ return -1;
+ result = __Pyx_PyObject_IsTrue(py_result);
+ Py_DECREF(py_result);
+ return result;
+ }
+return_eq:
+ #if PY_MAJOR_VERSION < 3
+ Py_XDECREF(owned_ref);
+ #endif
+ return (equals == Py_EQ);
+return_ne:
+ #if PY_MAJOR_VERSION < 3
+ Py_XDECREF(owned_ref);
+ #endif
+ return (equals == Py_NE);
+#endif
+}
+
+/* fastcall */
+#if CYTHON_METH_FASTCALL
+static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
+{
+ Py_ssize_t i, n = PyTuple_GET_SIZE(kwnames);
+ for (i = 0; i < n; i++)
+ {
+ if (s == PyTuple_GET_ITEM(kwnames, i)) return kwvalues[i];
+ }
+ for (i = 0; i < n; i++)
+ {
+ int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i), Py_EQ);
+ if (unlikely(eq != 0)) {
+ if (unlikely(eq < 0)) return NULL; // error
+ return kwvalues[i];
+ }
+ }
+ return NULL; // not found (no exception set)
+}
+#endif
+
+/* RaiseDoubleKeywords */
+static void __Pyx_RaiseDoubleKeywordsError(
+ const char* func_name,
+ PyObject* kw_name)
+{
+ PyErr_Format(PyExc_TypeError,
+ #if PY_MAJOR_VERSION >= 3
+ "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
+ #else
+ "%s() got multiple values for keyword argument '%s'", func_name,
+ PyString_AsString(kw_name));
+ #endif
+}
+
+/* ParseKeywords */
+static int __Pyx_ParseOptionalKeywords(
+ PyObject *kwds,
+ PyObject *const *kwvalues,
+ PyObject **argnames[],
+ PyObject *kwds2,
+ PyObject *values[],
+ Py_ssize_t num_pos_args,
+ const char* function_name)
+{
+ PyObject *key = 0, *value = 0;
+ Py_ssize_t pos = 0;
+ PyObject*** name;
+ PyObject*** first_kw_arg = argnames + num_pos_args;
+ int kwds_is_tuple = CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds));
+ while (1) {
+ if (kwds_is_tuple) {
+ if (pos >= PyTuple_GET_SIZE(kwds)) break;
+ key = PyTuple_GET_ITEM(kwds, pos);
+ value = kwvalues[pos];
+ pos++;
+ }
+ else
+ {
+ if (!PyDict_Next(kwds, &pos, &key, &value)) break;
+ }
+ name = first_kw_arg;
+ while (*name && (**name != key)) name++;
+ if (*name) {
+ values[name-argnames] = value;
+ continue;
+ }
+ name = first_kw_arg;
+ #if PY_MAJOR_VERSION < 3
+ if (likely(PyString_Check(key))) {
+ while (*name) {
+ if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
+ && _PyString_Eq(**name, key)) {
+ values[name-argnames] = value;
+ break;
+ }
+ name++;
+ }
+ if (*name) continue;
+ else {
+ PyObject*** argname = argnames;
+ while (argname != first_kw_arg) {
+ if ((**argname == key) || (
+ (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
+ && _PyString_Eq(**argname, key))) {
+ goto arg_passed_twice;
+ }
+ argname++;
+ }
+ }
+ } else
+ #endif
+ if (likely(PyUnicode_Check(key))) {
+ while (*name) {
+ int cmp = (
+ #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
+ (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
+ #endif
+ PyUnicode_Compare(**name, key)
+ );
+ if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
+ if (cmp == 0) {
+ values[name-argnames] = value;
+ break;
+ }
+ name++;
+ }
+ if (*name) continue;
+ else {
+ PyObject*** argname = argnames;
+ while (argname != first_kw_arg) {
+ int cmp = (**argname == key) ? 0 :
+ #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
+ (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
+ #endif
+ PyUnicode_Compare(**argname, key);
+ if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
+ if (cmp == 0) goto arg_passed_twice;
+ argname++;
+ }
+ }
+ } else
+ goto invalid_keyword_type;
+ if (kwds2) {
+ if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
+ } else {
+ goto invalid_keyword;
+ }
+ }
+ return 0;
+arg_passed_twice:
+ __Pyx_RaiseDoubleKeywordsError(function_name, key);
+ goto bad;
+invalid_keyword_type:
+ PyErr_Format(PyExc_TypeError,
+ "%.200s() keywords must be strings", function_name);
+ goto bad;
+invalid_keyword:
+ #if PY_MAJOR_VERSION < 3
+ PyErr_Format(PyExc_TypeError,
+ "%.200s() got an unexpected keyword argument '%.200s'",
+ function_name, PyString_AsString(key));
+ #else
+ PyErr_Format(PyExc_TypeError,
+ "%s() got an unexpected keyword argument '%U'",
+ function_name, key);
+ #endif
+bad:
+ return -1;
+}
+
+/* RaiseArgTupleInvalid */
+static void __Pyx_RaiseArgtupleInvalid(
+ const char* func_name,
+ int exact,
+ Py_ssize_t num_min,
+ Py_ssize_t num_max,
+ Py_ssize_t num_found)
+{
+ Py_ssize_t num_expected;
+ const char *more_or_less;
+ if (num_found < num_min) {
+ num_expected = num_min;
+ more_or_less = "at least";
+ } else {
+ num_expected = num_max;
+ more_or_less = "at most";
+ }
+ if (exact) {
+ more_or_less = "exactly";
+ }
+ PyErr_Format(PyExc_TypeError,
+ "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
+ func_name, more_or_less, num_expected,
+ (num_expected == 1) ? "" : "s", num_found);
+}
+
+/* PyDictVersioning */
+#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
+static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
+ PyObject *dict = Py_TYPE(obj)->tp_dict;
+ return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
+}
+static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
+ PyObject **dictptr = NULL;
+ Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
+ if (offset) {
+#if CYTHON_COMPILING_IN_CPYTHON
+ dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
+#else
+ dictptr = _PyObject_GetDictPtr(obj);
+#endif
+ }
+ return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
+}
+static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
+ PyObject *dict = Py_TYPE(obj)->tp_dict;
+ if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
+ return 0;
+ return obj_dict_version == __Pyx_get_object_dict_version(obj);
+}
+#endif
+
+/* GetModuleGlobalName */
+#if CYTHON_USE_DICT_VERSIONS
+static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
+#else
+static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
+#endif
+{
+ PyObject *result;
+#if !CYTHON_AVOID_BORROWED_REFS
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
+ result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
+ __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
+ if (likely(result)) {
+ return __Pyx_NewRef(result);
+ } else if (unlikely(PyErr_Occurred())) {
+ return NULL;
+ }
+#elif CYTHON_COMPILING_IN_LIMITED_API
+ if (unlikely(!__pyx_m)) {
+ return NULL;
+ }
+ result = PyObject_GetAttr(__pyx_m, name);
+ if (likely(result)) {
+ return result;
+ }
+#else
+ result = PyDict_GetItem(__pyx_d, name);
+ __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
+ if (likely(result)) {
+ return __Pyx_NewRef(result);
+ }
+#endif
+#else
+ result = PyObject_GetItem(__pyx_d, name);
+ __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
+ if (likely(result)) {
+ return __Pyx_NewRef(result);
+ }
+ PyErr_Clear();
+#endif
+ return __Pyx_GetBuiltinName(name);
+}
+
+/* PyObjectCall */
+#if CYTHON_COMPILING_IN_CPYTHON
+static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
+ PyObject *result;
+ ternaryfunc call = Py_TYPE(func)->tp_call;
+ if (unlikely(!call))
+ return PyObject_Call(func, arg, kw);
+ if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
+ return NULL;
+ result = (*call)(func, arg, kw);
+ Py_LeaveRecursiveCall();
+ if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
+ PyErr_SetString(
+ PyExc_SystemError,
+ "NULL result without error in PyObject_Call");
+ }
+ return result;
+}
+#endif
+
+/* PyFunctionFastCall */
+#if CYTHON_FAST_PYCALL && !CYTHON_VECTORCALL
+static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
+ PyObject *globals) {
+ PyFrameObject *f;
+ PyThreadState *tstate = __Pyx_PyThreadState_Current;
+ PyObject **fastlocals;
+ Py_ssize_t i;
+ PyObject *result;
+ assert(globals != NULL);
+ /* XXX Perhaps we should create a specialized
+ PyFrame_New() that doesn't take locals, but does
+ take builtins without sanity checking them.
+ */
+ assert(tstate != NULL);
+ f = PyFrame_New(tstate, co, globals, NULL);
+ if (f == NULL) {
+ return NULL;
+ }
+ fastlocals = __Pyx_PyFrame_GetLocalsplus(f);
+ for (i = 0; i < na; i++) {
+ Py_INCREF(*args);
+ fastlocals[i] = *args++;
+ }
+ result = PyEval_EvalFrameEx(f,0);
+ ++tstate->recursion_depth;
+ Py_DECREF(f);
+ --tstate->recursion_depth;
+ return result;
+}
+static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
+ PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
+ PyObject *globals = PyFunction_GET_GLOBALS(func);
+ PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
+ PyObject *closure;
+#if PY_MAJOR_VERSION >= 3
+ PyObject *kwdefs;
+#endif
+ PyObject *kwtuple, **k;
+ PyObject **d;
+ Py_ssize_t nd;
+ Py_ssize_t nk;
+ PyObject *result;
+ assert(kwargs == NULL || PyDict_Check(kwargs));
+ nk = kwargs ? PyDict_Size(kwargs) : 0;
+ if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) {
+ return NULL;
+ }
+ if (
+#if PY_MAJOR_VERSION >= 3
+ co->co_kwonlyargcount == 0 &&
+#endif
+ likely(kwargs == NULL || nk == 0) &&
+ co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
+ if (argdefs == NULL && co->co_argcount == nargs) {
+ result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
+ goto done;
+ }
+ else if (nargs == 0 && argdefs != NULL
+ && co->co_argcount == Py_SIZE(argdefs)) {
+ /* function called with no arguments, but all parameters have
+ a default value: use default values as arguments .*/
+ args = &PyTuple_GET_ITEM(argdefs, 0);
+ result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
+ goto done;
+ }
+ }
+ if (kwargs != NULL) {
+ Py_ssize_t pos, i;
+ kwtuple = PyTuple_New(2 * nk);
+ if (kwtuple == NULL) {
+ result = NULL;
+ goto done;
+ }
+ k = &PyTuple_GET_ITEM(kwtuple, 0);
+ pos = i = 0;
+ while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
+ Py_INCREF(k[i]);
+ Py_INCREF(k[i+1]);
+ i += 2;
+ }
+ nk = i / 2;
+ }
+ else {
+ kwtuple = NULL;
+ k = NULL;
+ }
+ closure = PyFunction_GET_CLOSURE(func);
+#if PY_MAJOR_VERSION >= 3
+ kwdefs = PyFunction_GET_KW_DEFAULTS(func);
+#endif
+ if (argdefs != NULL) {
+ d = &PyTuple_GET_ITEM(argdefs, 0);
+ nd = Py_SIZE(argdefs);
+ }
+ else {
+ d = NULL;
+ nd = 0;
+ }
+#if PY_MAJOR_VERSION >= 3
+ result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
+ args, (int)nargs,
+ k, (int)nk,
+ d, (int)nd, kwdefs, closure);
+#else
+ result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
+ args, (int)nargs,
+ k, (int)nk,
+ d, (int)nd, closure);
+#endif
+ Py_XDECREF(kwtuple);
+done:
+ Py_LeaveRecursiveCall();
+ return result;
+}
+#endif
+
+/* PyObjectCallMethO */
+#if CYTHON_COMPILING_IN_CPYTHON
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
+ PyObject *self, *result;
+ PyCFunction cfunc;
+ cfunc = PyCFunction_GET_FUNCTION(func);
+ self = PyCFunction_GET_SELF(func);
+ if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
+ return NULL;
+ result = cfunc(self, arg);
+ Py_LeaveRecursiveCall();
+ if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
+ PyErr_SetString(
+ PyExc_SystemError,
+ "NULL result without error in PyObject_Call");
+ }
+ return result;
+}
+#endif
+
+/* PyObjectFastCall */
+static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs) {
+ PyObject *argstuple;
+ PyObject *result;
+ size_t i;
+ argstuple = PyTuple_New((Py_ssize_t)nargs);
+ if (unlikely(!argstuple)) return NULL;
+ for (i = 0; i < nargs; i++) {
+ Py_INCREF(args[i]);
+ PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]);
+ }
+ result = __Pyx_PyObject_Call(func, argstuple, kwargs);
+ Py_DECREF(argstuple);
+ return result;
+}
+static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t _nargs, PyObject *kwargs) {
+ Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
+#if CYTHON_COMPILING_IN_CPYTHON
+ if (nargs == 0 && kwargs == NULL) {
+#if defined(__Pyx_CyFunction_USED) && defined(NDEBUG)
+ if (__Pyx_IsCyOrPyCFunction(func))
+#else
+ if (PyCFunction_Check(func))
+#endif
+ {
+ if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
+ return __Pyx_PyObject_CallMethO(func, NULL);
+ }
+ }
+ }
+ else if (nargs == 1 && kwargs == NULL) {
+ if (PyCFunction_Check(func))
+ {
+ if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
+ return __Pyx_PyObject_CallMethO(func, args[0]);
+ }
+ }
+ }
+#endif
+ #if PY_VERSION_HEX < 0x030800B1
+ #if CYTHON_FAST_PYCCALL
+ if (PyCFunction_Check(func)) {
+ if (kwargs) {
+ return _PyCFunction_FastCallDict(func, args, nargs, kwargs);
+ } else {
+ return _PyCFunction_FastCallKeywords(func, args, nargs, NULL);
+ }
+ }
+ #if PY_VERSION_HEX >= 0x030700A1
+ if (!kwargs && __Pyx_IS_TYPE(func, &PyMethodDescr_Type)) {
+ return _PyMethodDescr_FastCallKeywords(func, args, nargs, NULL);
+ }
+ #endif
+ #endif
+ #if CYTHON_FAST_PYCALL
+ if (PyFunction_Check(func)) {
+ return __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs);
+ }
+ #endif
+ #endif
+ #if CYTHON_VECTORCALL
+ vectorcallfunc f = _PyVectorcall_Function(func);
+ if (f) {
+ return f(func, args, (size_t)nargs, kwargs);
+ }
+ #elif defined(__Pyx_CyFunction_USED) && CYTHON_BACKPORT_VECTORCALL
+ if (__Pyx_CyFunction_CheckExact(func)) {
+ __pyx_vectorcallfunc f = __Pyx_CyFunction_func_vectorcall(func);
+ if (f) return f(func, args, (size_t)nargs, kwargs);
+ }
+ #endif
+ if (nargs == 0) {
+ return __Pyx_PyObject_Call(func, __pyx_empty_tuple, kwargs);
+ }
+ return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
+}
+
+/* GetTopmostException */
+#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
+static _PyErr_StackItem *
+__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
+{
+ _PyErr_StackItem *exc_info = tstate->exc_info;
+ while ((exc_info->exc_value == NULL || exc_info->exc_value == Py_None) &&
+ exc_info->previous_item != NULL)
+ {
+ exc_info = exc_info->previous_item;
+ }
+ return exc_info;
+}
+#endif
+
+/* SaveResetException */
+#if CYTHON_FAST_THREAD_STATE
+static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
+ #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
+ _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
+ PyObject *exc_value = exc_info->exc_value;
+ if (exc_value == NULL || exc_value == Py_None) {
+ *value = NULL;
+ *type = NULL;
+ *tb = NULL;
+ } else {
+ *value = exc_value;
+ Py_INCREF(*value);
+ *type = (PyObject*) Py_TYPE(exc_value);
+ Py_INCREF(*type);
+ *tb = PyException_GetTraceback(exc_value);
+ }
+ #elif CYTHON_USE_EXC_INFO_STACK
+ _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
+ *type = exc_info->exc_type;
+ *value = exc_info->exc_value;
+ *tb = exc_info->exc_traceback;
+ Py_XINCREF(*type);
+ Py_XINCREF(*value);
+ Py_XINCREF(*tb);
+ #else
+ *type = tstate->exc_type;
+ *value = tstate->exc_value;
+ *tb = tstate->exc_traceback;
+ Py_XINCREF(*type);
+ Py_XINCREF(*value);
+ Py_XINCREF(*tb);
+ #endif
+}
+static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
+ #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
+ _PyErr_StackItem *exc_info = tstate->exc_info;
+ PyObject *tmp_value = exc_info->exc_value;
+ exc_info->exc_value = value;
+ Py_XDECREF(tmp_value);
+ Py_XDECREF(type);
+ Py_XDECREF(tb);
+ #else
+ PyObject *tmp_type, *tmp_value, *tmp_tb;
+ #if CYTHON_USE_EXC_INFO_STACK
+ _PyErr_StackItem *exc_info = tstate->exc_info;
+ tmp_type = exc_info->exc_type;
+ tmp_value = exc_info->exc_value;
+ tmp_tb = exc_info->exc_traceback;
+ exc_info->exc_type = type;
+ exc_info->exc_value = value;
+ exc_info->exc_traceback = tb;
+ #else
+ tmp_type = tstate->exc_type;
+ tmp_value = tstate->exc_value;
+ tmp_tb = tstate->exc_traceback;
+ tstate->exc_type = type;
+ tstate->exc_value = value;
+ tstate->exc_traceback = tb;
+ #endif
+ Py_XDECREF(tmp_type);
+ Py_XDECREF(tmp_value);
+ Py_XDECREF(tmp_tb);
+ #endif
+}
+#endif
+
+/* GetException */
+#if CYTHON_FAST_THREAD_STATE
+static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
+#else
+static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
+#endif
+{
+ PyObject *local_type = NULL, *local_value, *local_tb = NULL;
+#if CYTHON_FAST_THREAD_STATE
+ PyObject *tmp_type, *tmp_value, *tmp_tb;
+ #if PY_VERSION_HEX >= 0x030C00A6
+ local_value = tstate->current_exception;
+ tstate->current_exception = 0;
+ if (likely(local_value)) {
+ local_type = (PyObject*) Py_TYPE(local_value);
+ Py_INCREF(local_type);
+ local_tb = PyException_GetTraceback(local_value);
+ }
+ #else
+ local_type = tstate->curexc_type;
+ local_value = tstate->curexc_value;
+ local_tb = tstate->curexc_traceback;
+ tstate->curexc_type = 0;
+ tstate->curexc_value = 0;
+ tstate->curexc_traceback = 0;
+ #endif
+#else
+ PyErr_Fetch(&local_type, &local_value, &local_tb);
+#endif
+ PyErr_NormalizeException(&local_type, &local_value, &local_tb);
+#if CYTHON_FAST_THREAD_STATE && PY_VERSION_HEX >= 0x030C00A6
+ if (unlikely(tstate->current_exception))
+#elif CYTHON_FAST_THREAD_STATE
+ if (unlikely(tstate->curexc_type))
+#else
+ if (unlikely(PyErr_Occurred()))
+#endif
+ goto bad;
+ #if PY_MAJOR_VERSION >= 3
+ if (local_tb) {
+ if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
+ goto bad;
+ }
+ #endif
+ Py_XINCREF(local_tb);
+ Py_XINCREF(local_type);
+ Py_XINCREF(local_value);
+ *type = local_type;
+ *value = local_value;
+ *tb = local_tb;
+#if CYTHON_FAST_THREAD_STATE
+ #if CYTHON_USE_EXC_INFO_STACK
+ {
+ _PyErr_StackItem *exc_info = tstate->exc_info;
+ #if PY_VERSION_HEX >= 0x030B00a4
+ tmp_value = exc_info->exc_value;
+ exc_info->exc_value = local_value;
+ tmp_type = NULL;
+ tmp_tb = NULL;
+ Py_XDECREF(local_type);
+ Py_XDECREF(local_tb);
+ #else
+ tmp_type = exc_info->exc_type;
+ tmp_value = exc_info->exc_value;
+ tmp_tb = exc_info->exc_traceback;
+ exc_info->exc_type = local_type;
+ exc_info->exc_value = local_value;
+ exc_info->exc_traceback = local_tb;
+ #endif
+ }
+ #else
+ tmp_type = tstate->exc_type;
+ tmp_value = tstate->exc_value;
+ tmp_tb = tstate->exc_traceback;
+ tstate->exc_type = local_type;
+ tstate->exc_value = local_value;
+ tstate->exc_traceback = local_tb;
+ #endif
+ Py_XDECREF(tmp_type);
+ Py_XDECREF(tmp_value);
+ Py_XDECREF(tmp_tb);
+#else
+ PyErr_SetExcInfo(local_type, local_value, local_tb);
+#endif
+ return 0;
+bad:
+ *type = 0;
+ *value = 0;
+ *tb = 0;
+ Py_XDECREF(local_type);
+ Py_XDECREF(local_value);
+ Py_XDECREF(local_tb);
+ return -1;
+}
+
+/* SwapException */
+#if CYTHON_FAST_THREAD_STATE
+static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
+ PyObject *tmp_type, *tmp_value, *tmp_tb;
+ #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
+ _PyErr_StackItem *exc_info = tstate->exc_info;
+ tmp_value = exc_info->exc_value;
+ exc_info->exc_value = *value;
+ if (tmp_value == NULL || tmp_value == Py_None) {
+ Py_XDECREF(tmp_value);
+ tmp_value = NULL;
+ tmp_type = NULL;
+ tmp_tb = NULL;
+ } else {
+ tmp_type = (PyObject*) Py_TYPE(tmp_value);
+ Py_INCREF(tmp_type);
+ #if CYTHON_COMPILING_IN_CPYTHON
+ tmp_tb = ((PyBaseExceptionObject*) tmp_value)->traceback;
+ Py_XINCREF(tmp_tb);
+ #else
+ tmp_tb = PyException_GetTraceback(tmp_value);
+ #endif
+ }
+ #elif CYTHON_USE_EXC_INFO_STACK
+ _PyErr_StackItem *exc_info = tstate->exc_info;
+ tmp_type = exc_info->exc_type;
+ tmp_value = exc_info->exc_value;
+ tmp_tb = exc_info->exc_traceback;
+ exc_info->exc_type = *type;
+ exc_info->exc_value = *value;
+ exc_info->exc_traceback = *tb;
+ #else
+ tmp_type = tstate->exc_type;
+ tmp_value = tstate->exc_value;
+ tmp_tb = tstate->exc_traceback;
+ tstate->exc_type = *type;
+ tstate->exc_value = *value;
+ tstate->exc_traceback = *tb;
+ #endif
+ *type = tmp_type;
+ *value = tmp_value;
+ *tb = tmp_tb;
+}
+#else
+static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
+ PyObject *tmp_type, *tmp_value, *tmp_tb;
+ PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
+ PyErr_SetExcInfo(*type, *value, *tb);
+ *type = tmp_type;
+ *value = tmp_value;
+ *tb = tmp_tb;
+}
+#endif
+
+/* Import */
+static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
+ PyObject *module = 0;
+ PyObject *empty_dict = 0;
+ PyObject *empty_list = 0;
+ #if PY_MAJOR_VERSION < 3
+ PyObject *py_import;
+ py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
+ if (unlikely(!py_import))
+ goto bad;
+ if (!from_list) {
+ empty_list = PyList_New(0);
+ if (unlikely(!empty_list))
+ goto bad;
+ from_list = empty_list;
+ }
+ #endif
+ empty_dict = PyDict_New();
+ if (unlikely(!empty_dict))
+ goto bad;
+ {
+ #if PY_MAJOR_VERSION >= 3
+ if (level == -1) {
+ if ((1) && (strchr(__Pyx_MODULE_NAME, '.'))) {
+ #if CYTHON_COMPILING_IN_LIMITED_API
+ module = PyImport_ImportModuleLevelObject(
+ name, empty_dict, empty_dict, from_list, 1);
+ #else
+ module = PyImport_ImportModuleLevelObject(
+ name, __pyx_d, empty_dict, from_list, 1);
+ #endif
+ if (unlikely(!module)) {
+ if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError)))
+ goto bad;
+ PyErr_Clear();
+ }
+ }
+ level = 0;
+ }
+ #endif
+ if (!module) {
+ #if PY_MAJOR_VERSION < 3
+ PyObject *py_level = PyInt_FromLong(level);
+ if (unlikely(!py_level))
+ goto bad;
+ module = PyObject_CallFunctionObjArgs(py_import,
+ name, __pyx_d, empty_dict, from_list, py_level, (PyObject *)NULL);
+ Py_DECREF(py_level);
+ #else
+ #if CYTHON_COMPILING_IN_LIMITED_API
+ module = PyImport_ImportModuleLevelObject(
+ name, empty_dict, empty_dict, from_list, level);
+ #else
+ module = PyImport_ImportModuleLevelObject(
+ name, __pyx_d, empty_dict, from_list, level);
+ #endif
+ #endif
+ }
+ }
+bad:
+ Py_XDECREF(empty_dict);
+ Py_XDECREF(empty_list);
+ #if PY_MAJOR_VERSION < 3
+ Py_XDECREF(py_import);
+ #endif
+ return module;
+}
+
+/* ImportDottedModule */
+#if PY_MAJOR_VERSION >= 3
+static PyObject *__Pyx__ImportDottedModule_Error(PyObject *name, PyObject *parts_tuple, Py_ssize_t count) {
+ PyObject *partial_name = NULL, *slice = NULL, *sep = NULL;
+ if (unlikely(PyErr_Occurred())) {
+ PyErr_Clear();
+ }
+ if (likely(PyTuple_GET_SIZE(parts_tuple) == count)) {
+ partial_name = name;
+ } else {
+ slice = PySequence_GetSlice(parts_tuple, 0, count);
+ if (unlikely(!slice))
+ goto bad;
+ sep = PyUnicode_FromStringAndSize(".", 1);
+ if (unlikely(!sep))
+ goto bad;
+ partial_name = PyUnicode_Join(sep, slice);
+ }
+ PyErr_Format(
+#if PY_MAJOR_VERSION < 3
+ PyExc_ImportError,
+ "No module named '%s'", PyString_AS_STRING(partial_name));
+#else
+#if PY_VERSION_HEX >= 0x030600B1
+ PyExc_ModuleNotFoundError,
+#else
+ PyExc_ImportError,
+#endif
+ "No module named '%U'", partial_name);
+#endif
+bad:
+ Py_XDECREF(sep);
+ Py_XDECREF(slice);
+ Py_XDECREF(partial_name);
+ return NULL;
+}
+#endif
+#if PY_MAJOR_VERSION >= 3
+static PyObject *__Pyx__ImportDottedModule_Lookup(PyObject *name) {
+ PyObject *imported_module;
+#if PY_VERSION_HEX < 0x030700A1 || (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030400)
+ PyObject *modules = PyImport_GetModuleDict();
+ if (unlikely(!modules))
+ return NULL;
+ imported_module = __Pyx_PyDict_GetItemStr(modules, name);
+ Py_XINCREF(imported_module);
+#else
+ imported_module = PyImport_GetModule(name);
+#endif
+ return imported_module;
+}
+#endif
+#if PY_MAJOR_VERSION >= 3
+static PyObject *__Pyx_ImportDottedModule_WalkParts(PyObject *module, PyObject *name, PyObject *parts_tuple) {
+ Py_ssize_t i, nparts;
+ nparts = PyTuple_GET_SIZE(parts_tuple);
+ for (i=1; i < nparts && module; i++) {
+ PyObject *part, *submodule;
+#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
+ part = PyTuple_GET_ITEM(parts_tuple, i);
+#else
+ part = PySequence_ITEM(parts_tuple, i);
+#endif
+ submodule = __Pyx_PyObject_GetAttrStrNoError(module, part);
+#if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
+ Py_DECREF(part);
+#endif
+ Py_DECREF(module);
+ module = submodule;
+ }
+ if (unlikely(!module)) {
+ return __Pyx__ImportDottedModule_Error(name, parts_tuple, i);
+ }
+ return module;
+}
+#endif
+static PyObject *__Pyx__ImportDottedModule(PyObject *name, PyObject *parts_tuple) {
+#if PY_MAJOR_VERSION < 3
+ PyObject *module, *from_list, *star = __pyx_n_s_;
+ CYTHON_UNUSED_VAR(parts_tuple);
+ from_list = PyList_New(1);
+ if (unlikely(!from_list))
+ return NULL;
+ Py_INCREF(star);
+ PyList_SET_ITEM(from_list, 0, star);
+ module = __Pyx_Import(name, from_list, 0);
+ Py_DECREF(from_list);
+ return module;
+#else
+ PyObject *imported_module;
+ PyObject *module = __Pyx_Import(name, NULL, 0);
+ if (!parts_tuple || unlikely(!module))
+ return module;
+ imported_module = __Pyx__ImportDottedModule_Lookup(name);
+ if (likely(imported_module)) {
+ Py_DECREF(module);
+ return imported_module;
+ }
+ PyErr_Clear();
+ return __Pyx_ImportDottedModule_WalkParts(module, name, parts_tuple);
+#endif
+}
+static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple) {
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030400B1
+ PyObject *module = __Pyx__ImportDottedModule_Lookup(name);
+ if (likely(module)) {
+ PyObject *spec = __Pyx_PyObject_GetAttrStrNoError(module, __pyx_n_s_spec);
+ if (likely(spec)) {
+ PyObject *unsafe = __Pyx_PyObject_GetAttrStrNoError(spec, __pyx_n_s_initializing);
+ if (likely(!unsafe || !__Pyx_PyObject_IsTrue(unsafe))) {
+ Py_DECREF(spec);
+ spec = NULL;
+ }
+ Py_XDECREF(unsafe);
+ }
+ if (likely(!spec)) {
+ PyErr_Clear();
+ return module;
+ }
+ Py_DECREF(spec);
+ Py_DECREF(module);
+ } else if (PyErr_Occurred()) {
+ PyErr_Clear();
+ }
+#endif
+ return __Pyx__ImportDottedModule(name, parts_tuple);
+}
+
+/* ImportFrom */
+static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
+ PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
+ if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
+ const char* module_name_str = 0;
+ PyObject* module_name = 0;
+ PyObject* module_dot = 0;
+ PyObject* full_name = 0;
+ PyErr_Clear();
+ module_name_str = PyModule_GetName(module);
+ if (unlikely(!module_name_str)) { goto modbad; }
+ module_name = PyUnicode_FromString(module_name_str);
+ if (unlikely(!module_name)) { goto modbad; }
+ module_dot = PyUnicode_Concat(module_name, __pyx_kp_u__2);
+ if (unlikely(!module_dot)) { goto modbad; }
+ full_name = PyUnicode_Concat(module_dot, name);
+ if (unlikely(!full_name)) { goto modbad; }
+ #if PY_VERSION_HEX < 0x030700A1 || (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030400)
+ {
+ PyObject *modules = PyImport_GetModuleDict();
+ if (unlikely(!modules))
+ goto modbad;
+ value = PyObject_GetItem(modules, full_name);
+ }
+ #else
+ value = PyImport_GetModule(full_name);
+ #endif
+ modbad:
+ Py_XDECREF(full_name);
+ Py_XDECREF(module_dot);
+ Py_XDECREF(module_name);
+ }
+ if (unlikely(!value)) {
+ PyErr_Format(PyExc_ImportError,
+ #if PY_MAJOR_VERSION < 3
+ "cannot import name %.230s", PyString_AS_STRING(name));
+ #else
+ "cannot import name %S", name);
+ #endif
+ }
+ return value;
+}
+
+/* FixUpExtensionType */
+#if CYTHON_USE_TYPE_SPECS
+static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) {
+#if PY_VERSION_HEX > 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
+ CYTHON_UNUSED_VAR(spec);
+ CYTHON_UNUSED_VAR(type);
+#else
+ const PyType_Slot *slot = spec->slots;
+ while (slot && slot->slot && slot->slot != Py_tp_members)
+ slot++;
+ if (slot && slot->slot == Py_tp_members) {
+ int changed = 0;
+#if !(PY_VERSION_HEX <= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON)
+ const
+#endif
+ PyMemberDef *memb = (PyMemberDef*) slot->pfunc;
+ while (memb && memb->name) {
+ if (memb->name[0] == '_' && memb->name[1] == '_') {
+#if PY_VERSION_HEX < 0x030900b1
+ if (strcmp(memb->name, "__weaklistoffset__") == 0) {
+ assert(memb->type == T_PYSSIZET);
+ assert(memb->flags == READONLY);
+ type->tp_weaklistoffset = memb->offset;
+ changed = 1;
+ }
+ else if (strcmp(memb->name, "__dictoffset__") == 0) {
+ assert(memb->type == T_PYSSIZET);
+ assert(memb->flags == READONLY);
+ type->tp_dictoffset = memb->offset;
+ changed = 1;
+ }
+#if CYTHON_METH_FASTCALL
+ else if (strcmp(memb->name, "__vectorcalloffset__") == 0) {
+ assert(memb->type == T_PYSSIZET);
+ assert(memb->flags == READONLY);
+#if PY_VERSION_HEX >= 0x030800b4
+ type->tp_vectorcall_offset = memb->offset;
+#else
+ type->tp_print = (printfunc) memb->offset;
+#endif
+ changed = 1;
+ }
+#endif
+#else
+ if ((0));
+#endif
+#if PY_VERSION_HEX <= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON
+ else if (strcmp(memb->name, "__module__") == 0) {
+ PyObject *descr;
+ assert(memb->type == T_OBJECT);
+ assert(memb->flags == 0 || memb->flags == READONLY);
+ descr = PyDescr_NewMember(type, memb);
+ if (unlikely(!descr))
+ return -1;
+ if (unlikely(PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr) < 0)) {
+ Py_DECREF(descr);
+ return -1;
+ }
+ Py_DECREF(descr);
+ changed = 1;
+ }
+#endif
+ }
+ memb++;
+ }
+ if (changed)
+ PyType_Modified(type);
+ }
+#endif
+ return 0;
+}
+#endif
+
+/* FetchSharedCythonModule */
+static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
+ PyObject *abi_module = PyImport_AddModule((char*) __PYX_ABI_MODULE_NAME);
+ if (unlikely(!abi_module)) return NULL;
+ Py_INCREF(abi_module);
+ return abi_module;
+}
+
+/* FetchCommonType */
+static int __Pyx_VerifyCachedType(PyObject *cached_type,
+ const char *name,
+ Py_ssize_t basicsize,
+ Py_ssize_t expected_basicsize) {
+ if (!PyType_Check(cached_type)) {
+ PyErr_Format(PyExc_TypeError,
+ "Shared Cython type %.200s is not a type object", name);
+ return -1;
+ }
+ if (basicsize != expected_basicsize) {
+ PyErr_Format(PyExc_TypeError,
+ "Shared Cython type %.200s has the wrong size, try recompiling",
+ name);
+ return -1;
+ }
+ return 0;
+}
+#if !CYTHON_USE_TYPE_SPECS
+static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) {
+ PyObject* abi_module;
+ const char* object_name;
+ PyTypeObject *cached_type = NULL;
+ abi_module = __Pyx_FetchSharedCythonABIModule();
+ if (!abi_module) return NULL;
+ object_name = strrchr(type->tp_name, '.');
+ object_name = object_name ? object_name+1 : type->tp_name;
+ cached_type = (PyTypeObject*) PyObject_GetAttrString(abi_module, object_name);
+ if (cached_type) {
+ if (__Pyx_VerifyCachedType(
+ (PyObject *)cached_type,
+ object_name,
+ cached_type->tp_basicsize,
+ type->tp_basicsize) < 0) {
+ goto bad;
+ }
+ goto done;
+ }
+ if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
+ PyErr_Clear();
+ if (PyType_Ready(type) < 0) goto bad;
+ if (PyObject_SetAttrString(abi_module, object_name, (PyObject *)type) < 0)
+ goto bad;
+ Py_INCREF(type);
+ cached_type = type;
+done:
+ Py_DECREF(abi_module);
+ return cached_type;
+bad:
+ Py_XDECREF(cached_type);
+ cached_type = NULL;
+ goto done;
+}
+#else
+static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases) {
+ PyObject *abi_module, *cached_type = NULL;
+ const char* object_name = strrchr(spec->name, '.');
+ object_name = object_name ? object_name+1 : spec->name;
+ abi_module = __Pyx_FetchSharedCythonABIModule();
+ if (!abi_module) return NULL;
+ cached_type = PyObject_GetAttrString(abi_module, object_name);
+ if (cached_type) {
+ Py_ssize_t basicsize;
+#if CYTHON_COMPILING_IN_LIMITED_API
+ PyObject *py_basicsize;
+ py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
+ if (unlikely(!py_basicsize)) goto bad;
+ basicsize = PyLong_AsSsize_t(py_basicsize);
+ Py_DECREF(py_basicsize);
+ py_basicsize = 0;
+ if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
+#else
+ basicsize = likely(PyType_Check(cached_type)) ? ((PyTypeObject*) cached_type)->tp_basicsize : -1;
+#endif
+ if (__Pyx_VerifyCachedType(
+ cached_type,
+ object_name,
+ basicsize,
+ spec->basicsize) < 0) {
+ goto bad;
+ }
+ goto done;
+ }
+ if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
+ PyErr_Clear();
+ CYTHON_UNUSED_VAR(module);
+ cached_type = __Pyx_PyType_FromModuleAndSpec(abi_module, spec, bases);
+ if (unlikely(!cached_type)) goto bad;
+ if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad;
+ if (PyObject_SetAttrString(abi_module, object_name, cached_type) < 0) goto bad;
+done:
+ Py_DECREF(abi_module);
+ assert(cached_type == NULL || PyType_Check(cached_type));
+ return (PyTypeObject *) cached_type;
+bad:
+ Py_XDECREF(cached_type);
+ cached_type = NULL;
+ goto done;
+}
+#endif
+
+/* PyVectorcallFastCallDict */
+#if CYTHON_METH_FASTCALL
+static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
+{
+ PyObject *res = NULL;
+ PyObject *kwnames;
+ PyObject **newargs;
+ PyObject **kwvalues;
+ Py_ssize_t i, pos;
+ size_t j;
+ PyObject *key, *value;
+ unsigned long keys_are_strings;
+ Py_ssize_t nkw = PyDict_GET_SIZE(kw);
+ newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0]));
+ if (unlikely(newargs == NULL)) {
+ PyErr_NoMemory();
+ return NULL;
+ }
+ for (j = 0; j < nargs; j++) newargs[j] = args[j];
+ kwnames = PyTuple_New(nkw);
+ if (unlikely(kwnames == NULL)) {
+ PyMem_Free(newargs);
+ return NULL;
+ }
+ kwvalues = newargs + nargs;
+ pos = i = 0;
+ keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS;
+ while (PyDict_Next(kw, &pos, &key, &value)) {
+ keys_are_strings &= Py_TYPE(key)->tp_flags;
+ Py_INCREF(key);
+ Py_INCREF(value);
+ PyTuple_SET_ITEM(kwnames, i, key);
+ kwvalues[i] = value;
+ i++;
+ }
+ if (unlikely(!keys_are_strings)) {
+ PyErr_SetString(PyExc_TypeError, "keywords must be strings");
+ goto cleanup;
+ }
+ res = vc(func, newargs, nargs, kwnames);
+cleanup:
+ Py_DECREF(kwnames);
+ for (i = 0; i < nkw; i++)
+ Py_DECREF(kwvalues[i]);
+ PyMem_Free(newargs);
+ return res;
+}
+static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
+{
+ if (likely(kw == NULL) || PyDict_GET_SIZE(kw) == 0) {
+ return vc(func, args, nargs, NULL);
+ }
+ return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
+}
+#endif
+
+/* CythonFunctionShared */
+static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
+#if PY_VERSION_HEX < 0x030900B1
+ __Pyx_Py_XDECREF_SET(
+ __Pyx_CyFunction_GetClassObj(f),
+ ((classobj) ? __Pyx_NewRef(classobj) : NULL));
+#else
+ __Pyx_Py_XDECREF_SET(
+ ((PyCMethodObject *) (f))->mm_class,
+ (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL));
+#endif
+}
+static PyObject *
+__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure)
+{
+ CYTHON_UNUSED_VAR(closure);
+ if (unlikely(op->func_doc == NULL)) {
+ if (((PyCFunctionObject*)op)->m_ml->ml_doc) {
+#if PY_MAJOR_VERSION >= 3
+ op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
+#else
+ op->func_doc = PyString_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
+#endif
+ if (unlikely(op->func_doc == NULL))
+ return NULL;
+ } else {
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+ }
+ Py_INCREF(op->func_doc);
+ return op->func_doc;
+}
+static int
+__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context)
+{
+ CYTHON_UNUSED_VAR(context);
+ if (value == NULL) {
+ value = Py_None;
+ }
+ Py_INCREF(value);
+ __Pyx_Py_XDECREF_SET(op->func_doc, value);
+ return 0;
+}
+static PyObject *
+__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context)
+{
+ CYTHON_UNUSED_VAR(context);
+ if (unlikely(op->func_name == NULL)) {
+#if PY_MAJOR_VERSION >= 3
+ op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
+#else
+ op->func_name = PyString_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
+#endif
+ if (unlikely(op->func_name == NULL))
+ return NULL;
+ }
+ Py_INCREF(op->func_name);
+ return op->func_name;
+}
+static int
+__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context)
+{
+ CYTHON_UNUSED_VAR(context);
+#if PY_MAJOR_VERSION >= 3
+ if (unlikely(value == NULL || !PyUnicode_Check(value)))
+#else
+ if (unlikely(value == NULL || !PyString_Check(value)))
+#endif
+ {
+ PyErr_SetString(PyExc_TypeError,
+ "__name__ must be set to a string object");
+ return -1;
+ }
+ Py_INCREF(value);
+ __Pyx_Py_XDECREF_SET(op->func_name, value);
+ return 0;
+}
+static PyObject *
+__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context)
+{
+ CYTHON_UNUSED_VAR(context);
+ Py_INCREF(op->func_qualname);
+ return op->func_qualname;
+}
+static int
+__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context)
+{
+ CYTHON_UNUSED_VAR(context);
+#if PY_MAJOR_VERSION >= 3
+ if (unlikely(value == NULL || !PyUnicode_Check(value)))
+#else
+ if (unlikely(value == NULL || !PyString_Check(value)))
+#endif
+ {
+ PyErr_SetString(PyExc_TypeError,
+ "__qualname__ must be set to a string object");
+ return -1;
+ }
+ Py_INCREF(value);
+ __Pyx_Py_XDECREF_SET(op->func_qualname, value);
+ return 0;
+}
+static PyObject *
+__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context)
+{
+ CYTHON_UNUSED_VAR(context);
+ if (unlikely(op->func_dict == NULL)) {
+ op->func_dict = PyDict_New();
+ if (unlikely(op->func_dict == NULL))
+ return NULL;
+ }
+ Py_INCREF(op->func_dict);
+ return op->func_dict;
+}
+static int
+__Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, void *context)
+{
+ CYTHON_UNUSED_VAR(context);
+ if (unlikely(value == NULL)) {
+ PyErr_SetString(PyExc_TypeError,
+ "function's dictionary may not be deleted");
+ return -1;
+ }
+ if (unlikely(!PyDict_Check(value))) {
+ PyErr_SetString(PyExc_TypeError,
+ "setting function's dictionary to a non-dict");
+ return -1;
+ }
+ Py_INCREF(value);
+ __Pyx_Py_XDECREF_SET(op->func_dict, value);
+ return 0;
+}
+static PyObject *
+__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context)
+{
+ CYTHON_UNUSED_VAR(context);
+ Py_INCREF(op->func_globals);
+ return op->func_globals;
+}
+static PyObject *
+__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context)
+{
+ CYTHON_UNUSED_VAR(op);
+ CYTHON_UNUSED_VAR(context);
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+static PyObject *
+__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context)
+{
+ PyObject* result = (op->func_code) ? op->func_code : Py_None;
+ CYTHON_UNUSED_VAR(context);
+ Py_INCREF(result);
+ return result;
+}
+static int
+__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
+ int result = 0;
+ PyObject *res = op->defaults_getter((PyObject *) op);
+ if (unlikely(!res))
+ return -1;
+ #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
+ op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
+ Py_INCREF(op->defaults_tuple);
+ op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
+ Py_INCREF(op->defaults_kwdict);
+ #else
+ op->defaults_tuple = PySequence_ITEM(res, 0);
+ if (unlikely(!op->defaults_tuple)) result = -1;
+ else {
+ op->defaults_kwdict = PySequence_ITEM(res, 1);
+ if (unlikely(!op->defaults_kwdict)) result = -1;
+ }
+ #endif
+ Py_DECREF(res);
+ return result;
+}
+static int
+__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
+ CYTHON_UNUSED_VAR(context);
+ if (!value) {
+ value = Py_None;
+ } else if (unlikely(value != Py_None && !PyTuple_Check(value))) {
+ PyErr_SetString(PyExc_TypeError,
+ "__defaults__ must be set to a tuple object");
+ return -1;
+ }
+ PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not "
+ "currently affect the values used in function calls", 1);
+ Py_INCREF(value);
+ __Pyx_Py_XDECREF_SET(op->defaults_tuple, value);
+ return 0;
+}
+static PyObject *
+__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) {
+ PyObject* result = op->defaults_tuple;
+ CYTHON_UNUSED_VAR(context);
+ if (unlikely(!result)) {
+ if (op->defaults_getter) {
+ if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
+ result = op->defaults_tuple;
+ } else {
+ result = Py_None;
+ }
+ }
+ Py_INCREF(result);
+ return result;
+}
+static int
+__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
+ CYTHON_UNUSED_VAR(context);
+ if (!value) {
+ value = Py_None;
+ } else if (unlikely(value != Py_None && !PyDict_Check(value))) {
+ PyErr_SetString(PyExc_TypeError,
+ "__kwdefaults__ must be set to a dict object");
+ return -1;
+ }
+ PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not "
+ "currently affect the values used in function calls", 1);
+ Py_INCREF(value);
+ __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value);
+ return 0;
+}
+static PyObject *
+__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) {
+ PyObject* result = op->defaults_kwdict;
+ CYTHON_UNUSED_VAR(context);
+ if (unlikely(!result)) {
+ if (op->defaults_getter) {
+ if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
+ result = op->defaults_kwdict;
+ } else {
+ result = Py_None;
+ }
+ }
+ Py_INCREF(result);
+ return result;
+}
+static int
+__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
+ CYTHON_UNUSED_VAR(context);
+ if (!value || value == Py_None) {
+ value = NULL;
+ } else if (unlikely(!PyDict_Check(value))) {
+ PyErr_SetString(PyExc_TypeError,
+ "__annotations__ must be set to a dict object");
+ return -1;
+ }
+ Py_XINCREF(value);
+ __Pyx_Py_XDECREF_SET(op->func_annotations, value);
+ return 0;
+}
+static PyObject *
+__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) {
+ PyObject* result = op->func_annotations;
+ CYTHON_UNUSED_VAR(context);
+ if (unlikely(!result)) {
+ result = PyDict_New();
+ if (unlikely(!result)) return NULL;
+ op->func_annotations = result;
+ }
+ Py_INCREF(result);
+ return result;
+}
+static PyObject *
+__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) {
+ int is_coroutine;
+ CYTHON_UNUSED_VAR(context);
+ if (op->func_is_coroutine) {
+ return __Pyx_NewRef(op->func_is_coroutine);
+ }
+ is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE;
+#if PY_VERSION_HEX >= 0x03050000
+ if (is_coroutine) {
+ PyObject *module, *fromlist, *marker = __pyx_n_s_is_coroutine;
+ fromlist = PyList_New(1);
+ if (unlikely(!fromlist)) return NULL;
+ Py_INCREF(marker);
+ PyList_SET_ITEM(fromlist, 0, marker);
+ module = PyImport_ImportModuleLevelObject(__pyx_n_s_asyncio_coroutines, NULL, NULL, fromlist, 0);
+ Py_DECREF(fromlist);
+ if (unlikely(!module)) goto ignore;
+ op->func_is_coroutine = __Pyx_PyObject_GetAttrStr(module, marker);
+ Py_DECREF(module);
+ if (likely(op->func_is_coroutine)) {
+ return __Pyx_NewRef(op->func_is_coroutine);
+ }
+ignore:
+ PyErr_Clear();
+ }
+#endif
+ op->func_is_coroutine = __Pyx_PyBool_FromLong(is_coroutine);
+ return __Pyx_NewRef(op->func_is_coroutine);
+}
+static PyGetSetDef __pyx_CyFunction_getsets[] = {
+ {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
+ {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
+ {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
+ {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
+ {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
+ {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
+ {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
+ {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
+ {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
+ {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
+ {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
+ {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
+ {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
+ {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
+ {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
+ {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
+ {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
+ {(char *) "_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0},
+ {0, 0, 0, 0, 0}
+};
+static PyMemberDef __pyx_CyFunction_members[] = {
+ {(char *) "__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0},
+#if CYTHON_USE_TYPE_SPECS
+ {(char *) "__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0},
+#if CYTHON_METH_FASTCALL
+#if CYTHON_BACKPORT_VECTORCALL
+ {(char *) "__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0},
+#else
+ {(char *) "__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0},
+#endif
+#endif
+#if PY_VERSION_HEX < 0x030500A0
+ {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0},
+#else
+ {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0},
+#endif
+#endif
+ {0, 0, 0, 0, 0}
+};
+static PyObject *
+__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args)
+{
+ CYTHON_UNUSED_VAR(args);
+#if PY_MAJOR_VERSION >= 3
+ Py_INCREF(m->func_qualname);
+ return m->func_qualname;
+#else
+ return PyString_FromString(((PyCFunctionObject*)m)->m_ml->ml_name);
+#endif
+}
+static PyMethodDef __pyx_CyFunction_methods[] = {
+ {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
+ {0, 0, 0, 0}
+};
+#if PY_VERSION_HEX < 0x030500A0
+#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
+#else
+#define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist)
+#endif
+static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
+ PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
+ PyCFunctionObject *cf = (PyCFunctionObject*) op;
+ if (unlikely(op == NULL))
+ return NULL;
+ op->flags = flags;
+ __Pyx_CyFunction_weakreflist(op) = NULL;
+ cf->m_ml = ml;
+ cf->m_self = (PyObject *) op;
+ Py_XINCREF(closure);
+ op->func_closure = closure;
+ Py_XINCREF(module);
+ cf->m_module = module;
+ op->func_dict = NULL;
+ op->func_name = NULL;
+ Py_INCREF(qualname);
+ op->func_qualname = qualname;
+ op->func_doc = NULL;
+#if PY_VERSION_HEX < 0x030900B1
+ op->func_classobj = NULL;
+#else
+ ((PyCMethodObject*)op)->mm_class = NULL;
+#endif
+ op->func_globals = globals;
+ Py_INCREF(op->func_globals);
+ Py_XINCREF(code);
+ op->func_code = code;
+ op->defaults_pyobjects = 0;
+ op->defaults_size = 0;
+ op->defaults = NULL;
+ op->defaults_tuple = NULL;
+ op->defaults_kwdict = NULL;
+ op->defaults_getter = NULL;
+ op->func_annotations = NULL;
+ op->func_is_coroutine = NULL;
+#if CYTHON_METH_FASTCALL
+ switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) {
+ case METH_NOARGS:
+ __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS;
+ break;
+ case METH_O:
+ __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O;
+ break;
+ case METH_METHOD | METH_FASTCALL | METH_KEYWORDS:
+ __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD;
+ break;
+ case METH_FASTCALL | METH_KEYWORDS:
+ __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
+ break;
+ case METH_VARARGS | METH_KEYWORDS:
+ __Pyx_CyFunction_func_vectorcall(op) = NULL;
+ break;
+ default:
+ PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
+ Py_DECREF(op);
+ return NULL;
+ }
+#endif
+ return (PyObject *) op;
+}
+static int
+__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
+{
+ Py_CLEAR(m->func_closure);
+ Py_CLEAR(((PyCFunctionObject*)m)->m_module);
+ Py_CLEAR(m->func_dict);
+ Py_CLEAR(m->func_name);
+ Py_CLEAR(m->func_qualname);
+ Py_CLEAR(m->func_doc);
+ Py_CLEAR(m->func_globals);
+ Py_CLEAR(m->func_code);
+#if PY_VERSION_HEX < 0x030900B1
+ Py_CLEAR(__Pyx_CyFunction_GetClassObj(m));
+#else
+ {
+ PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class;
+ ((PyCMethodObject *) (m))->mm_class = NULL;
+ Py_XDECREF(cls);
+ }
+#endif
+ Py_CLEAR(m->defaults_tuple);
+ Py_CLEAR(m->defaults_kwdict);
+ Py_CLEAR(m->func_annotations);
+ Py_CLEAR(m->func_is_coroutine);
+ if (m->defaults) {
+ PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m);
+ int i;
+ for (i = 0; i < m->defaults_pyobjects; i++)
+ Py_XDECREF(pydefaults[i]);
+ PyObject_Free(m->defaults);
+ m->defaults = NULL;
+ }
+ return 0;
+}
+static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
+{
+ if (__Pyx_CyFunction_weakreflist(m) != NULL)
+ PyObject_ClearWeakRefs((PyObject *) m);
+ __Pyx_CyFunction_clear(m);
+ __Pyx_PyHeapTypeObject_GC_Del(m);
+}
+static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
+{
+ PyObject_GC_UnTrack(m);
+ __Pyx__CyFunction_dealloc(m);
+}
+static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
+{
+ Py_VISIT(m->func_closure);
+ Py_VISIT(((PyCFunctionObject*)m)->m_module);
+ Py_VISIT(m->func_dict);
+ Py_VISIT(m->func_name);
+ Py_VISIT(m->func_qualname);
+ Py_VISIT(m->func_doc);
+ Py_VISIT(m->func_globals);
+ Py_VISIT(m->func_code);
+ Py_VISIT(__Pyx_CyFunction_GetClassObj(m));
+ Py_VISIT(m->defaults_tuple);
+ Py_VISIT(m->defaults_kwdict);
+ Py_VISIT(m->func_is_coroutine);
+ if (m->defaults) {
+ PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m);
+ int i;
+ for (i = 0; i < m->defaults_pyobjects; i++)
+ Py_VISIT(pydefaults[i]);
+ }
+ return 0;
+}
+static PyObject*
+__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
+{
+#if PY_MAJOR_VERSION >= 3
+ return PyUnicode_FromFormat("",
+ op->func_qualname, (void *)op);
+#else
+ return PyString_FromFormat("",
+ PyString_AsString(op->func_qualname), (void *)op);
+#endif
+}
+static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
+ PyCFunctionObject* f = (PyCFunctionObject*)func;
+ PyCFunction meth = f->m_ml->ml_meth;
+ Py_ssize_t size;
+ switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
+ case METH_VARARGS:
+ if (likely(kw == NULL || PyDict_Size(kw) == 0))
+ return (*meth)(self, arg);
+ break;
+ case METH_VARARGS | METH_KEYWORDS:
+ return (*(PyCFunctionWithKeywords)(void*)meth)(self, arg, kw);
+ case METH_NOARGS:
+ if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
+ size = PyTuple_GET_SIZE(arg);
+ if (likely(size == 0))
+ return (*meth)(self, NULL);
+ PyErr_Format(PyExc_TypeError,
+ "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)",
+ f->m_ml->ml_name, size);
+ return NULL;
+ }
+ break;
+ case METH_O:
+ if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
+ size = PyTuple_GET_SIZE(arg);
+ if (likely(size == 1)) {
+ PyObject *result, *arg0;
+ #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
+ arg0 = PyTuple_GET_ITEM(arg, 0);
+ #else
+ arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL;
+ #endif
+ result = (*meth)(self, arg0);
+ #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
+ Py_DECREF(arg0);
+ #endif
+ return result;
+ }
+ PyErr_Format(PyExc_TypeError,
+ "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)",
+ f->m_ml->ml_name, size);
+ return NULL;
+ }
+ break;
+ default:
+ PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
+ return NULL;
+ }
+ PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments",
+ f->m_ml->ml_name);
+ return NULL;
+}
+static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
+ return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw);
+}
+static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
+ PyObject *result;
+ __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
+#if CYTHON_METH_FASTCALL
+ __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
+ if (vc) {
+#if CYTHON_ASSUME_SAFE_MACROS
+ return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
+#else
+ (void) &__Pyx_PyVectorcall_FastCallDict;
+ return PyVectorcall_Call(func, args, kw);
+#endif
+ }
+#endif
+ if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
+ Py_ssize_t argc;
+ PyObject *new_args;
+ PyObject *self;
+ argc = PyTuple_GET_SIZE(args);
+ new_args = PyTuple_GetSlice(args, 1, argc);
+ if (unlikely(!new_args))
+ return NULL;
+ self = PyTuple_GetItem(args, 0);
+ if (unlikely(!self)) {
+ Py_DECREF(new_args);
+#if PY_MAJOR_VERSION > 2
+ PyErr_Format(PyExc_TypeError,
+ "unbound method %.200S() needs an argument",
+ cyfunc->func_qualname);
+#else
+ PyErr_SetString(PyExc_TypeError,
+ "unbound method needs an argument");
+#endif
+ return NULL;
+ }
+ result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
+ Py_DECREF(new_args);
+ } else {
+ result = __Pyx_CyFunction_Call(func, args, kw);
+ }
+ return result;
+}
+#if CYTHON_METH_FASTCALL
+static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
+{
+ int ret = 0;
+ if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
+ if (unlikely(nargs < 1)) {
+ PyErr_Format(PyExc_TypeError, "%.200s() needs an argument",
+ ((PyCFunctionObject*)cyfunc)->m_ml->ml_name);
+ return -1;
+ }
+ ret = 1;
+ }
+ if (unlikely(kwnames) && unlikely(PyTuple_GET_SIZE(kwnames))) {
+ PyErr_Format(PyExc_TypeError,
+ "%.200s() takes no keyword arguments", ((PyCFunctionObject*)cyfunc)->m_ml->ml_name);
+ return -1;
+ }
+ return ret;
+}
+static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
+{
+ __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
+ PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
+#if CYTHON_BACKPORT_VECTORCALL
+ Py_ssize_t nargs = (Py_ssize_t)nargsf;
+#else
+ Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
+#endif
+ PyObject *self;
+ switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
+ case 1:
+ self = args[0];
+ args += 1;
+ nargs -= 1;
+ break;
+ case 0:
+ self = ((PyCFunctionObject*)cyfunc)->m_self;
+ break;
+ default:
+ return NULL;
+ }
+ if (unlikely(nargs != 0)) {
+ PyErr_Format(PyExc_TypeError,
+ "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)",
+ def->ml_name, nargs);
+ return NULL;
+ }
+ return def->ml_meth(self, NULL);
+}
+static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
+{
+ __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
+ PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
+#if CYTHON_BACKPORT_VECTORCALL
+ Py_ssize_t nargs = (Py_ssize_t)nargsf;
+#else
+ Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
+#endif
+ PyObject *self;
+ switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
+ case 1:
+ self = args[0];
+ args += 1;
+ nargs -= 1;
+ break;
+ case 0:
+ self = ((PyCFunctionObject*)cyfunc)->m_self;
+ break;
+ default:
+ return NULL;
+ }
+ if (unlikely(nargs != 1)) {
+ PyErr_Format(PyExc_TypeError,
+ "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)",
+ def->ml_name, nargs);
+ return NULL;
+ }
+ return def->ml_meth(self, args[0]);
+}
+static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
+{
+ __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
+ PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
+#if CYTHON_BACKPORT_VECTORCALL
+ Py_ssize_t nargs = (Py_ssize_t)nargsf;
+#else
+ Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
+#endif
+ PyObject *self;
+ switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
+ case 1:
+ self = args[0];
+ args += 1;
+ nargs -= 1;
+ break;
+ case 0:
+ self = ((PyCFunctionObject*)cyfunc)->m_self;
+ break;
+ default:
+ return NULL;
+ }
+ return ((_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames);
+}
+static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
+{
+ __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
+ PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml;
+ PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc);
+#if CYTHON_BACKPORT_VECTORCALL
+ Py_ssize_t nargs = (Py_ssize_t)nargsf;
+#else
+ Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
+#endif
+ PyObject *self;
+ switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
+ case 1:
+ self = args[0];
+ args += 1;
+ nargs -= 1;
+ break;
+ case 0:
+ self = ((PyCFunctionObject*)cyfunc)->m_self;
+ break;
+ default:
+ return NULL;
+ }
+ return ((__Pyx_PyCMethod)(void(*)(void))def->ml_meth)(self, cls, args, (size_t)nargs, kwnames);
+}
+#endif
+#if CYTHON_USE_TYPE_SPECS
+static PyType_Slot __pyx_CyFunctionType_slots[] = {
+ {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc},
+ {Py_tp_repr, (void *)__Pyx_CyFunction_repr},
+ {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod},
+ {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse},
+ {Py_tp_clear, (void *)__Pyx_CyFunction_clear},
+ {Py_tp_methods, (void *)__pyx_CyFunction_methods},
+ {Py_tp_members, (void *)__pyx_CyFunction_members},
+ {Py_tp_getset, (void *)__pyx_CyFunction_getsets},
+ {Py_tp_descr_get, (void *)__Pyx_PyMethod_New},
+ {0, 0},
+};
+static PyType_Spec __pyx_CyFunctionType_spec = {
+ __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
+ sizeof(__pyx_CyFunctionObject),
+ 0,
+#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
+ Py_TPFLAGS_METHOD_DESCRIPTOR |
+#endif
+#if (defined(_Py_TPFLAGS_HAVE_VECTORCALL) && CYTHON_METH_FASTCALL)
+ _Py_TPFLAGS_HAVE_VECTORCALL |
+#endif
+ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
+ __pyx_CyFunctionType_slots
+};
+#else
+static PyTypeObject __pyx_CyFunctionType_type = {
+ PyVarObject_HEAD_INIT(0, 0)
+ __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
+ sizeof(__pyx_CyFunctionObject),
+ 0,
+ (destructor) __Pyx_CyFunction_dealloc,
+#if !CYTHON_METH_FASTCALL
+ 0,
+#elif CYTHON_BACKPORT_VECTORCALL
+ (printfunc)offsetof(__pyx_CyFunctionObject, func_vectorcall),
+#else
+ offsetof(PyCFunctionObject, vectorcall),
+#endif
+ 0,
+ 0,
+#if PY_MAJOR_VERSION < 3
+ 0,
+#else
+ 0,
+#endif
+ (reprfunc) __Pyx_CyFunction_repr,
+ 0,
+ 0,
+ 0,
+ 0,
+ __Pyx_CyFunction_CallAsMethod,
+ 0,
+ 0,
+ 0,
+ 0,
+#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
+ Py_TPFLAGS_METHOD_DESCRIPTOR |
+#endif
+#ifdef _Py_TPFLAGS_HAVE_VECTORCALL
+ _Py_TPFLAGS_HAVE_VECTORCALL |
+#endif
+ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
+ 0,
+ (traverseproc) __Pyx_CyFunction_traverse,
+ (inquiry) __Pyx_CyFunction_clear,
+ 0,
+#if PY_VERSION_HEX < 0x030500A0
+ offsetof(__pyx_CyFunctionObject, func_weakreflist),
+#else
+ offsetof(PyCFunctionObject, m_weakreflist),
+#endif
+ 0,
+ 0,
+ __pyx_CyFunction_methods,
+ __pyx_CyFunction_members,
+ __pyx_CyFunction_getsets,
+ 0,
+ 0,
+ __Pyx_PyMethod_New,
+ 0,
+ offsetof(__pyx_CyFunctionObject, func_dict),
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+#if PY_VERSION_HEX >= 0x030400a1
+ 0,
+#endif
+#if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
+ 0,
+#endif
+#if __PYX_NEED_TP_PRINT_SLOT
+ 0,
+#endif
+#if PY_VERSION_HEX >= 0x030C0000
+ 0,
+#endif
+#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
+ 0,
+#endif
+};
+#endif
+static int __pyx_CyFunction_init(PyObject *module) {
+#if CYTHON_USE_TYPE_SPECS
+ __pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(module, &__pyx_CyFunctionType_spec, NULL);
+#else
+ CYTHON_UNUSED_VAR(module);
+ __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type);
+#endif
+ if (unlikely(__pyx_CyFunctionType == NULL)) {
+ return -1;
+ }
+ return 0;
+}
+static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) {
+ __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
+ m->defaults = PyObject_Malloc(size);
+ if (unlikely(!m->defaults))
+ return PyErr_NoMemory();
+ memset(m->defaults, 0, size);
+ m->defaults_pyobjects = pyobjects;
+ m->defaults_size = size;
+ return m->defaults;
+}
+static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
+ __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
+ m->defaults_tuple = tuple;
+ Py_INCREF(tuple);
+}
+static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
+ __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
+ m->defaults_kwdict = dict;
+ Py_INCREF(dict);
+}
+static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
+ __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
+ m->func_annotations = dict;
+ Py_INCREF(dict);
+}
+
+/* CythonFunction */
+static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
+ PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
+ PyObject *op = __Pyx_CyFunction_Init(
+ PyObject_GC_New(__pyx_CyFunctionObject, __pyx_CyFunctionType),
+ ml, flags, qualname, closure, module, globals, code
+ );
+ if (likely(op)) {
+ PyObject_GC_Track(op);
+ }
+ return op;
+}
+
+/* PyObjectCallNoArg */
+static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
+ PyObject *arg = NULL;
+ return __Pyx_PyObject_FastCall(func, (&arg)+1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
+}
+
+/* CLineInTraceback */
+#ifndef CYTHON_CLINE_IN_TRACEBACK
+static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
+ PyObject *use_cline;
+ PyObject *ptype, *pvalue, *ptraceback;
+#if CYTHON_COMPILING_IN_CPYTHON
+ PyObject **cython_runtime_dict;
+#endif
+ CYTHON_MAYBE_UNUSED_VAR(tstate);
+ if (unlikely(!__pyx_cython_runtime)) {
+ return c_line;
+ }
+ __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
+#if CYTHON_COMPILING_IN_CPYTHON
+ cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
+ if (likely(cython_runtime_dict)) {
+ __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
+ use_cline, *cython_runtime_dict,
+ __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
+ } else
+#endif
+ {
+ PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStrNoError(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
+ if (use_cline_obj) {
+ use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
+ Py_DECREF(use_cline_obj);
+ } else {
+ PyErr_Clear();
+ use_cline = NULL;
+ }
+ }
+ if (!use_cline) {
+ c_line = 0;
+ (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
+ }
+ else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
+ c_line = 0;
+ }
+ __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
+ return c_line;
+}
+#endif
+
+/* CodeObjectCache */
+#if !CYTHON_COMPILING_IN_LIMITED_API
+static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
+ int start = 0, mid = 0, end = count - 1;
+ if (end >= 0 && code_line > entries[end].code_line) {
+ return count;
+ }
+ while (start < end) {
+ mid = start + (end - start) / 2;
+ if (code_line < entries[mid].code_line) {
+ end = mid;
+ } else if (code_line > entries[mid].code_line) {
+ start = mid + 1;
+ } else {
+ return mid;
+ }
+ }
+ if (code_line <= entries[mid].code_line) {
+ return mid;
+ } else {
+ return mid + 1;
+ }
+}
+static PyCodeObject *__pyx_find_code_object(int code_line) {
+ PyCodeObject* code_object;
+ int pos;
+ if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
+ return NULL;
+ }
+ pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
+ if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
+ return NULL;
+ }
+ code_object = __pyx_code_cache.entries[pos].code_object;
+ Py_INCREF(code_object);
+ return code_object;
+}
+static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
+ int pos, i;
+ __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
+ if (unlikely(!code_line)) {
+ return;
+ }
+ if (unlikely(!entries)) {
+ entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
+ if (likely(entries)) {
+ __pyx_code_cache.entries = entries;
+ __pyx_code_cache.max_count = 64;
+ __pyx_code_cache.count = 1;
+ entries[0].code_line = code_line;
+ entries[0].code_object = code_object;
+ Py_INCREF(code_object);
+ }
+ return;
+ }
+ pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
+ if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
+ PyCodeObject* tmp = entries[pos].code_object;
+ entries[pos].code_object = code_object;
+ Py_DECREF(tmp);
+ return;
+ }
+ if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
+ int new_max = __pyx_code_cache.max_count + 64;
+ entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
+ __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
+ if (unlikely(!entries)) {
+ return;
+ }
+ __pyx_code_cache.entries = entries;
+ __pyx_code_cache.max_count = new_max;
+ }
+ for (i=__pyx_code_cache.count; i>pos; i--) {
+ entries[i] = entries[i-1];
+ }
+ entries[pos].code_line = code_line;
+ entries[pos].code_object = code_object;
+ __pyx_code_cache.count++;
+ Py_INCREF(code_object);
+}
+#endif
+
+/* AddTraceback */
+#include "compile.h"
+#include "frameobject.h"
+#include "traceback.h"
+#if PY_VERSION_HEX >= 0x030b00a6
+ #ifndef Py_BUILD_CORE
+ #define Py_BUILD_CORE 1
+ #endif
+ #include "internal/pycore_frame.h"
+#endif
+#if CYTHON_COMPILING_IN_LIMITED_API
+static void __Pyx_AddTraceback(const char *funcname, int c_line,
+ int py_line, const char *filename) {
+ if (c_line) {
+ (void) __pyx_cfilenm;
+ (void) __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
+ }
+ _PyTraceback_Add(funcname, filename, py_line);
+}
+#else
+static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
+ const char *funcname, int c_line,
+ int py_line, const char *filename) {
+ PyCodeObject *py_code = NULL;
+ PyObject *py_funcname = NULL;
+ #if PY_MAJOR_VERSION < 3
+ PyObject *py_srcfile = NULL;
+ py_srcfile = PyString_FromString(filename);
+ if (!py_srcfile) goto bad;
+ #endif
+ if (c_line) {
+ #if PY_MAJOR_VERSION < 3
+ py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
+ if (!py_funcname) goto bad;
+ #else
+ py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
+ if (!py_funcname) goto bad;
+ funcname = PyUnicode_AsUTF8(py_funcname);
+ if (!funcname) goto bad;
+ #endif
+ }
+ else {
+ #if PY_MAJOR_VERSION < 3
+ py_funcname = PyString_FromString(funcname);
+ if (!py_funcname) goto bad;
+ #endif
+ }
+ #if PY_MAJOR_VERSION < 3
+ py_code = __Pyx_PyCode_New(
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ __pyx_empty_bytes, /*PyObject *code,*/
+ __pyx_empty_tuple, /*PyObject *consts,*/
+ __pyx_empty_tuple, /*PyObject *names,*/
+ __pyx_empty_tuple, /*PyObject *varnames,*/
+ __pyx_empty_tuple, /*PyObject *freevars,*/
+ __pyx_empty_tuple, /*PyObject *cellvars,*/
+ py_srcfile, /*PyObject *filename,*/
+ py_funcname, /*PyObject *name,*/
+ py_line,
+ __pyx_empty_bytes /*PyObject *lnotab*/
+ );
+ Py_DECREF(py_srcfile);
+ #else
+ py_code = PyCode_NewEmpty(filename, funcname, py_line);
+ #endif
+ Py_XDECREF(py_funcname); // XDECREF since it's only set on Py3 if cline
+ return py_code;
+bad:
+ Py_XDECREF(py_funcname);
+ #if PY_MAJOR_VERSION < 3
+ Py_XDECREF(py_srcfile);
+ #endif
+ return NULL;
+}
+static void __Pyx_AddTraceback(const char *funcname, int c_line,
+ int py_line, const char *filename) {
+ PyCodeObject *py_code = 0;
+ PyFrameObject *py_frame = 0;
+ PyThreadState *tstate = __Pyx_PyThreadState_Current;
+ PyObject *ptype, *pvalue, *ptraceback;
+ if (c_line) {
+ c_line = __Pyx_CLineForTraceback(tstate, c_line);
+ }
+ py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
+ if (!py_code) {
+ __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
+ py_code = __Pyx_CreateCodeObjectForTraceback(
+ funcname, c_line, py_line, filename);
+ if (!py_code) {
+ /* If the code object creation fails, then we should clear the
+ fetched exception references and propagate the new exception */
+ Py_XDECREF(ptype);
+ Py_XDECREF(pvalue);
+ Py_XDECREF(ptraceback);
+ goto bad;
+ }
+ __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
+ __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
+ }
+ py_frame = PyFrame_New(
+ tstate, /*PyThreadState *tstate,*/
+ py_code, /*PyCodeObject *code,*/
+ __pyx_d, /*PyObject *globals,*/
+ 0 /*PyObject *locals*/
+ );
+ if (!py_frame) goto bad;
+ __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
+ PyTraceBack_Here(py_frame);
+bad:
+ Py_XDECREF(py_code);
+ Py_XDECREF(py_frame);
+}
+#endif
+
+/* FormatTypeName */
+#if CYTHON_COMPILING_IN_LIMITED_API
+static __Pyx_TypeName
+__Pyx_PyType_GetName(PyTypeObject* tp)
+{
+ PyObject *name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
+ __pyx_n_s_name);
+ if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) {
+ PyErr_Clear();
+ Py_XSETREF(name, __Pyx_NewRef(__pyx_n_s__6));
+ }
+ return name;
+}
+#endif
+
+/* CIntToPy */
+static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
+#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wconversion"
+#endif
+ const long neg_one = (long) -1, const_zero = (long) 0;
+#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
+#pragma GCC diagnostic pop
+#endif
+ const int is_unsigned = neg_one > const_zero;
+ if (is_unsigned) {
+ if (sizeof(long) < sizeof(long)) {
+ return PyInt_FromLong((long) value);
+ } else if (sizeof(long) <= sizeof(unsigned long)) {
+ return PyLong_FromUnsignedLong((unsigned long) value);
+#ifdef HAVE_LONG_LONG
+ } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
+ return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
+#endif
+ }
+ } else {
+ if (sizeof(long) <= sizeof(long)) {
+ return PyInt_FromLong((long) value);
+#ifdef HAVE_LONG_LONG
+ } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
+ return PyLong_FromLongLong((PY_LONG_LONG) value);
+#endif
+ }
+ }
+ {
+ int one = 1; int little = (int)*(unsigned char *)&one;
+ unsigned char *bytes = (unsigned char *)&value;
+ return _PyLong_FromByteArray(bytes, sizeof(long),
+ little, !is_unsigned);
+ }
+}
+
+/* CIntFromPyVerify */
+#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
+ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
+#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
+ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
+#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
+ {\
+ func_type value = func_value;\
+ if (sizeof(target_type) < sizeof(func_type)) {\
+ if (unlikely(value != (func_type) (target_type) value)) {\
+ func_type zero = 0;\
+ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
+ return (target_type) -1;\
+ if (is_unsigned && unlikely(value < zero))\
+ goto raise_neg_overflow;\
+ else\
+ goto raise_overflow;\
+ }\
+ }\
+ return (target_type) value;\
+ }
+
+/* CIntFromPy */
+static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
+#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wconversion"
+#endif
+ const long neg_one = (long) -1, const_zero = (long) 0;
+#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
+#pragma GCC diagnostic pop
+#endif
+ const int is_unsigned = neg_one > const_zero;
+#if PY_MAJOR_VERSION < 3
+ if (likely(PyInt_Check(x))) {
+ if ((sizeof(long) < sizeof(long))) {
+ __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
+ } else {
+ long val = PyInt_AS_LONG(x);
+ if (is_unsigned && unlikely(val < 0)) {
+ goto raise_neg_overflow;
+ }
+ return (long) val;
+ }
+ } else
+#endif
+ if (likely(PyLong_Check(x))) {
+ if (is_unsigned) {
+#if CYTHON_USE_PYLONG_INTERNALS
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
+ goto raise_neg_overflow;
+ } else if (__Pyx_PyLong_IsCompact(x)) {
+ __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
+ } else {
+ const digit* digits = __Pyx_PyLong_Digits(x);
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
+ switch (__Pyx_PyLong_DigitCount(x)) {
+ case 2:
+ if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
+ return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
+ }
+ }
+ break;
+ case 3:
+ if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
+ return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
+ }
+ }
+ break;
+ case 4:
+ if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
+ return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
+ }
+ }
+ break;
+ }
+ }
+#endif
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
+ if (unlikely(Py_SIZE(x) < 0)) {
+ goto raise_neg_overflow;
+ }
+#else
+ {
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
+ if (unlikely(result < 0))
+ return (long) -1;
+ if (unlikely(result == 1))
+ goto raise_neg_overflow;
+ }
+#endif
+ if ((sizeof(long) <= sizeof(unsigned long))) {
+ __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
+#ifdef HAVE_LONG_LONG
+ } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
+ __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
+#endif
+ }
+ } else {
+#if CYTHON_USE_PYLONG_INTERNALS
+ if (__Pyx_PyLong_IsCompact(x)) {
+ __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
+ } else {
+ const digit* digits = __Pyx_PyLong_Digits(x);
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
+ case -2:
+ if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
+ return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
+ }
+ }
+ break;
+ case 2:
+ if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
+ return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
+ }
+ }
+ break;
+ case -3:
+ if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
+ return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
+ }
+ }
+ break;
+ case 3:
+ if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
+ return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
+ }
+ }
+ break;
+ case -4:
+ if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
+ return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
+ }
+ }
+ break;
+ case 4:
+ if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
+ return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
+ }
+ }
+ break;
+ }
+ }
+#endif
+ if ((sizeof(long) <= sizeof(long))) {
+ __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
+#ifdef HAVE_LONG_LONG
+ } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
+ __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
+#endif
+ }
+ }
+ {
+ long val;
+ PyObject *v = __Pyx_PyNumber_IntOrLong(x);
+#if PY_MAJOR_VERSION < 3
+ if (likely(v) && !PyLong_Check(v)) {
+ PyObject *tmp = v;
+ v = PyNumber_Long(tmp);
+ Py_DECREF(tmp);
+ }
+#endif
+ if (likely(v)) {
+ int ret = -1;
+#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
+ unsigned char *bytes = (unsigned char *)&val;
+ ret = _PyLong_AsByteArray((PyLongObject *)v,
+ bytes, sizeof(val),
+ is_little, !is_unsigned);
+#else
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
+ int bits, remaining_bits, is_negative = 0;
+ long idigit;
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
+ if (unlikely(!PyLong_CheckExact(v))) {
+ PyObject *tmp = v;
+ v = PyNumber_Long(v);
+ assert(PyLong_CheckExact(v));
+ Py_DECREF(tmp);
+ if (unlikely(!v)) return (long) -1;
+ }
+#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
+ if (Py_SIZE(x) == 0)
+ return (long) 0;
+ is_negative = Py_SIZE(x) < 0;
+#else
+ {
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
+ if (unlikely(result < 0))
+ return (long) -1;
+ is_negative = result == 1;
+ }
+#endif
+ if (is_unsigned && unlikely(is_negative)) {
+ goto raise_neg_overflow;
+ } else if (is_negative) {
+ stepval = PyNumber_Invert(v);
+ if (unlikely(!stepval))
+ return (long) -1;
+ } else {
+ stepval = __Pyx_NewRef(v);
+ }
+ val = (long) 0;
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
+ for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
+ PyObject *tmp, *digit;
+ digit = PyNumber_And(stepval, mask);
+ if (unlikely(!digit)) goto done;
+ idigit = PyLong_AsLong(digit);
+ Py_DECREF(digit);
+ if (unlikely(idigit < 0)) goto done;
+ tmp = PyNumber_Rshift(stepval, shift);
+ if (unlikely(!tmp)) goto done;
+ Py_DECREF(stepval); stepval = tmp;
+ val |= ((long) idigit) << bits;
+ #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
+ if (Py_SIZE(stepval) == 0)
+ goto unpacking_done;
+ #endif
+ }
+ idigit = PyLong_AsLong(stepval);
+ if (unlikely(idigit < 0)) goto done;
+ remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
+ if (unlikely(idigit >= (1L << remaining_bits)))
+ goto raise_overflow;
+ val |= ((long) idigit) << bits;
+ #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
+ unpacking_done:
+ #endif
+ if (!is_unsigned) {
+ if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
+ goto raise_overflow;
+ if (is_negative)
+ val = ~val;
+ }
+ ret = 0;
+ done:
+ Py_XDECREF(shift);
+ Py_XDECREF(mask);
+ Py_XDECREF(stepval);
+#endif
+ Py_DECREF(v);
+ if (likely(!ret))
+ return val;
+ }
+ return (long) -1;
+ }
+ } else {
+ long val;
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
+ if (!tmp) return (long) -1;
+ val = __Pyx_PyInt_As_long(tmp);
+ Py_DECREF(tmp);
+ return val;
+ }
+raise_overflow:
+ PyErr_SetString(PyExc_OverflowError,
+ "value too large to convert to long");
+ return (long) -1;
+raise_neg_overflow:
+ PyErr_SetString(PyExc_OverflowError,
+ "can't convert negative value to long");
+ return (long) -1;
+}
+
+/* CIntFromPy */
+static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
+#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wconversion"
+#endif
+ const int neg_one = (int) -1, const_zero = (int) 0;
+#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
+#pragma GCC diagnostic pop
+#endif
+ const int is_unsigned = neg_one > const_zero;
+#if PY_MAJOR_VERSION < 3
+ if (likely(PyInt_Check(x))) {
+ if ((sizeof(int) < sizeof(long))) {
+ __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
+ } else {
+ long val = PyInt_AS_LONG(x);
+ if (is_unsigned && unlikely(val < 0)) {
+ goto raise_neg_overflow;
+ }
+ return (int) val;
+ }
+ } else
+#endif
+ if (likely(PyLong_Check(x))) {
+ if (is_unsigned) {
+#if CYTHON_USE_PYLONG_INTERNALS
+ if (unlikely(__Pyx_PyLong_IsNeg(x))) {
+ goto raise_neg_overflow;
+ } else if (__Pyx_PyLong_IsCompact(x)) {
+ __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
+ } else {
+ const digit* digits = __Pyx_PyLong_Digits(x);
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
+ switch (__Pyx_PyLong_DigitCount(x)) {
+ case 2:
+ if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
+ return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
+ }
+ }
+ break;
+ case 3:
+ if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
+ return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
+ }
+ }
+ break;
+ case 4:
+ if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
+ return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
+ }
+ }
+ break;
+ }
+ }
+#endif
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
+ if (unlikely(Py_SIZE(x) < 0)) {
+ goto raise_neg_overflow;
+ }
+#else
+ {
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
+ if (unlikely(result < 0))
+ return (int) -1;
+ if (unlikely(result == 1))
+ goto raise_neg_overflow;
+ }
+#endif
+ if ((sizeof(int) <= sizeof(unsigned long))) {
+ __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
+#ifdef HAVE_LONG_LONG
+ } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
+ __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
+#endif
+ }
+ } else {
+#if CYTHON_USE_PYLONG_INTERNALS
+ if (__Pyx_PyLong_IsCompact(x)) {
+ __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
+ } else {
+ const digit* digits = __Pyx_PyLong_Digits(x);
+ assert(__Pyx_PyLong_DigitCount(x) > 1);
+ switch (__Pyx_PyLong_SignedDigitCount(x)) {
+ case -2:
+ if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
+ return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
+ }
+ }
+ break;
+ case 2:
+ if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
+ return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
+ }
+ }
+ break;
+ case -3:
+ if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
+ return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
+ }
+ }
+ break;
+ case 3:
+ if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
+ return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
+ }
+ }
+ break;
+ case -4:
+ if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
+ return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
+ }
+ }
+ break;
+ case 4:
+ if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
+ if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
+ __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
+ } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
+ return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
+ }
+ }
+ break;
+ }
+ }
+#endif
+ if ((sizeof(int) <= sizeof(long))) {
+ __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
+#ifdef HAVE_LONG_LONG
+ } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
+ __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
+#endif
+ }
+ }
+ {
+ int val;
+ PyObject *v = __Pyx_PyNumber_IntOrLong(x);
+#if PY_MAJOR_VERSION < 3
+ if (likely(v) && !PyLong_Check(v)) {
+ PyObject *tmp = v;
+ v = PyNumber_Long(tmp);
+ Py_DECREF(tmp);
+ }
+#endif
+ if (likely(v)) {
+ int ret = -1;
+#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
+ int one = 1; int is_little = (int)*(unsigned char *)&one;
+ unsigned char *bytes = (unsigned char *)&val;
+ ret = _PyLong_AsByteArray((PyLongObject *)v,
+ bytes, sizeof(val),
+ is_little, !is_unsigned);
+#else
+ PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
+ int bits, remaining_bits, is_negative = 0;
+ long idigit;
+ int chunk_size = (sizeof(long) < 8) ? 30 : 62;
+ if (unlikely(!PyLong_CheckExact(v))) {
+ PyObject *tmp = v;
+ v = PyNumber_Long(v);
+ assert(PyLong_CheckExact(v));
+ Py_DECREF(tmp);
+ if (unlikely(!v)) return (int) -1;
+ }
+#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
+ if (Py_SIZE(x) == 0)
+ return (int) 0;
+ is_negative = Py_SIZE(x) < 0;
+#else
+ {
+ int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
+ if (unlikely(result < 0))
+ return (int) -1;
+ is_negative = result == 1;
+ }
+#endif
+ if (is_unsigned && unlikely(is_negative)) {
+ goto raise_neg_overflow;
+ } else if (is_negative) {
+ stepval = PyNumber_Invert(v);
+ if (unlikely(!stepval))
+ return (int) -1;
+ } else {
+ stepval = __Pyx_NewRef(v);
+ }
+ val = (int) 0;
+ mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
+ shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
+ for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
+ PyObject *tmp, *digit;
+ digit = PyNumber_And(stepval, mask);
+ if (unlikely(!digit)) goto done;
+ idigit = PyLong_AsLong(digit);
+ Py_DECREF(digit);
+ if (unlikely(idigit < 0)) goto done;
+ tmp = PyNumber_Rshift(stepval, shift);
+ if (unlikely(!tmp)) goto done;
+ Py_DECREF(stepval); stepval = tmp;
+ val |= ((int) idigit) << bits;
+ #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
+ if (Py_SIZE(stepval) == 0)
+ goto unpacking_done;
+ #endif
+ }
+ idigit = PyLong_AsLong(stepval);
+ if (unlikely(idigit < 0)) goto done;
+ remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
+ if (unlikely(idigit >= (1L << remaining_bits)))
+ goto raise_overflow;
+ val |= ((int) idigit) << bits;
+ #if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030B0000
+ unpacking_done:
+ #endif
+ if (!is_unsigned) {
+ if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
+ goto raise_overflow;
+ if (is_negative)
+ val = ~val;
+ }
+ ret = 0;
+ done:
+ Py_XDECREF(shift);
+ Py_XDECREF(mask);
+ Py_XDECREF(stepval);
+#endif
+ Py_DECREF(v);
+ if (likely(!ret))
+ return val;
+ }
+ return (int) -1;
+ }
+ } else {
+ int val;
+ PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
+ if (!tmp) return (int) -1;
+ val = __Pyx_PyInt_As_int(tmp);
+ Py_DECREF(tmp);
+ return val;
+ }
+raise_overflow:
+ PyErr_SetString(PyExc_OverflowError,
+ "value too large to convert to int");
+ return (int) -1;
+raise_neg_overflow:
+ PyErr_SetString(PyExc_OverflowError,
+ "can't convert negative value to int");
+ return (int) -1;
+}
+
+/* FastTypeChecks */
+#if CYTHON_COMPILING_IN_CPYTHON
+static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
+ while (a) {
+ a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*);
+ if (a == b)
+ return 1;
+ }
+ return b == &PyBaseObject_Type;
+}
+static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
+ PyObject *mro;
+ if (a == b) return 1;
+ mro = a->tp_mro;
+ if (likely(mro)) {
+ Py_ssize_t i, n;
+ n = PyTuple_GET_SIZE(mro);
+ for (i = 0; i < n; i++) {
+ if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
+ return 1;
+ }
+ return 0;
+ }
+ return __Pyx_InBases(a, b);
+}
+static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
+ PyObject *mro;
+ if (cls == a || cls == b) return 1;
+ mro = cls->tp_mro;
+ if (likely(mro)) {
+ Py_ssize_t i, n;
+ n = PyTuple_GET_SIZE(mro);
+ for (i = 0; i < n; i++) {
+ PyObject *base = PyTuple_GET_ITEM(mro, i);
+ if (base == (PyObject *)a || base == (PyObject *)b)
+ return 1;
+ }
+ return 0;
+ }
+ return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
+}
+#if PY_MAJOR_VERSION == 2
+static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
+ PyObject *exception, *value, *tb;
+ int res;
+ __Pyx_PyThreadState_declare
+ __Pyx_PyThreadState_assign
+ __Pyx_ErrFetch(&exception, &value, &tb);
+ res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
+ if (unlikely(res == -1)) {
+ PyErr_WriteUnraisable(err);
+ res = 0;
+ }
+ if (!res) {
+ res = PyObject_IsSubclass(err, exc_type2);
+ if (unlikely(res == -1)) {
+ PyErr_WriteUnraisable(err);
+ res = 0;
+ }
+ }
+ __Pyx_ErrRestore(exception, value, tb);
+ return res;
+}
+#else
+static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
+ if (exc_type1) {
+ return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
+ } else {
+ return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
+ }
+}
+#endif
+static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
+ Py_ssize_t i, n;
+ assert(PyExceptionClass_Check(exc_type));
+ n = PyTuple_GET_SIZE(tuple);
+#if PY_MAJOR_VERSION >= 3
+ for (i=0; i '9');
+ break;
+ }
+ if (rt_from_call[i] != ctversion[i]) {
+ same = 0;
+ break;
+ }
+ }
+ if (!same) {
+ char rtversion[5] = {'\0'};
+ char message[200];
+ for (i=0; i<4; ++i) {
+ if (rt_from_call[i] == '.') {
+ if (found_dot) break;
+ found_dot = 1;
+ } else if (rt_from_call[i] < '0' || rt_from_call[i] > '9') {
+ break;
+ }
+ rtversion[i] = rt_from_call[i];
+ }
+ PyOS_snprintf(message, sizeof(message),
+ "compile time version %s of module '%.100s' "
+ "does not match runtime version %s",
+ ctversion, __Pyx_MODULE_NAME, rtversion);
+ return PyErr_WarnEx(NULL, message, 1);
+ }
+ return 0;
+}
+
+/* InitStrings */
+#if PY_MAJOR_VERSION >= 3
+static int __Pyx_InitString(__Pyx_StringTabEntry t, PyObject **str) {
+ if (t.is_unicode | t.is_str) {
+ if (t.intern) {
+ *str = PyUnicode_InternFromString(t.s);
+ } else if (t.encoding) {
+ *str = PyUnicode_Decode(t.s, t.n - 1, t.encoding, NULL);
+ } else {
+ *str = PyUnicode_FromStringAndSize(t.s, t.n - 1);
+ }
+ } else {
+ *str = PyBytes_FromStringAndSize(t.s, t.n - 1);
+ }
+ if (!*str)
+ return -1;
+ if (PyObject_Hash(*str) == -1)
+ return -1;
+ return 0;
+}
+#endif
+static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
+ while (t->p) {
+ #if PY_MAJOR_VERSION >= 3
+ __Pyx_InitString(*t, t->p);
+ #else
+ if (t->is_unicode) {
+ *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
+ } else if (t->intern) {
+ *t->p = PyString_InternFromString(t->s);
+ } else {
+ *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
+ }
+ if (!*t->p)
+ return -1;
+ if (PyObject_Hash(*t->p) == -1)
+ return -1;
+ #endif
+ ++t;
+ }
+ return 0;
+}
+
+static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
+ return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
+}
+static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
+ Py_ssize_t ignore;
+ return __Pyx_PyObject_AsStringAndSize(o, &ignore);
+}
+#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
+#if !CYTHON_PEP393_ENABLED
+static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
+ char* defenc_c;
+ PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
+ if (!defenc) return NULL;
+ defenc_c = PyBytes_AS_STRING(defenc);
+#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
+ {
+ char* end = defenc_c + PyBytes_GET_SIZE(defenc);
+ char* c;
+ for (c = defenc_c; c < end; c++) {
+ if ((unsigned char) (*c) >= 128) {
+ PyUnicode_AsASCIIString(o);
+ return NULL;
+ }
+ }
+ }
+#endif
+ *length = PyBytes_GET_SIZE(defenc);
+ return defenc_c;
+}
+#else
+static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
+ if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
+#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
+ if (likely(PyUnicode_IS_ASCII(o))) {
+ *length = PyUnicode_GET_LENGTH(o);
+ return PyUnicode_AsUTF8(o);
+ } else {
+ PyUnicode_AsASCIIString(o);
+ return NULL;
+ }
+#else
+ return PyUnicode_AsUTF8AndSize(o, length);
+#endif
+}
+#endif
+#endif
+static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
+#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
+ if (
+#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
+ __Pyx_sys_getdefaultencoding_not_ascii &&
+#endif
+ PyUnicode_Check(o)) {
+ return __Pyx_PyUnicode_AsStringAndSize(o, length);
+ } else
+#endif
+#if (!CYTHON_COMPILING_IN_PYPY && !CYTHON_COMPILING_IN_LIMITED_API) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
+ if (PyByteArray_Check(o)) {
+ *length = PyByteArray_GET_SIZE(o);
+ return PyByteArray_AS_STRING(o);
+ } else
+#endif
+ {
+ char* result;
+ int r = PyBytes_AsStringAndSize(o, &result, length);
+ if (unlikely(r < 0)) {
+ return NULL;
+ } else {
+ return result;
+ }
+ }
+}
+static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
+ int is_true = x == Py_True;
+ if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
+ else return PyObject_IsTrue(x);
+}
+static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
+ int retval;
+ if (unlikely(!x)) return -1;
+ retval = __Pyx_PyObject_IsTrue(x);
+ Py_DECREF(x);
+ return retval;
+}
+static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
+ __Pyx_TypeName result_type_name = __Pyx_PyType_GetName(Py_TYPE(result));
+#if PY_MAJOR_VERSION >= 3
+ if (PyLong_Check(result)) {
+ if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
+ "__int__ returned non-int (type " __Pyx_FMT_TYPENAME "). "
+ "The ability to return an instance of a strict subclass of int is deprecated, "
+ "and may be removed in a future version of Python.",
+ result_type_name)) {
+ __Pyx_DECREF_TypeName(result_type_name);
+ Py_DECREF(result);
+ return NULL;
+ }
+ __Pyx_DECREF_TypeName(result_type_name);
+ return result;
+ }
+#endif
+ PyErr_Format(PyExc_TypeError,
+ "__%.4s__ returned non-%.4s (type " __Pyx_FMT_TYPENAME ")",
+ type_name, type_name, result_type_name);
+ __Pyx_DECREF_TypeName(result_type_name);
+ Py_DECREF(result);
+ return NULL;
+}
+static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
+#if CYTHON_USE_TYPE_SLOTS
+ PyNumberMethods *m;
+#endif
+ const char *name = NULL;
+ PyObject *res = NULL;
+#if PY_MAJOR_VERSION < 3
+ if (likely(PyInt_Check(x) || PyLong_Check(x)))
+#else
+ if (likely(PyLong_Check(x)))
+#endif
+ return __Pyx_NewRef(x);
+#if CYTHON_USE_TYPE_SLOTS
+ m = Py_TYPE(x)->tp_as_number;
+ #if PY_MAJOR_VERSION < 3
+ if (m && m->nb_int) {
+ name = "int";
+ res = m->nb_int(x);
+ }
+ else if (m && m->nb_long) {
+ name = "long";
+ res = m->nb_long(x);
+ }
+ #else
+ if (likely(m && m->nb_int)) {
+ name = "int";
+ res = m->nb_int(x);
+ }
+ #endif
+#else
+ if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
+ res = PyNumber_Int(x);
+ }
+#endif
+ if (likely(res)) {
+#if PY_MAJOR_VERSION < 3
+ if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
+#else
+ if (unlikely(!PyLong_CheckExact(res))) {
+#endif
+ return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
+ }
+ }
+ else if (!PyErr_Occurred()) {
+ PyErr_SetString(PyExc_TypeError,
+ "an integer is required");
+ }
+ return res;
+}
+static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
+ Py_ssize_t ival;
+ PyObject *x;
+#if PY_MAJOR_VERSION < 3
+ if (likely(PyInt_CheckExact(b))) {
+ if (sizeof(Py_ssize_t) >= sizeof(long))
+ return PyInt_AS_LONG(b);
+ else
+ return PyInt_AsSsize_t(b);
+ }
+#endif
+ if (likely(PyLong_CheckExact(b))) {
+ #if CYTHON_USE_PYLONG_INTERNALS
+ if (likely(__Pyx_PyLong_IsCompact(b))) {
+ return __Pyx_PyLong_CompactValue(b);
+ } else {
+ const digit* digits = __Pyx_PyLong_Digits(b);
+ const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b);
+ switch (size) {
+ case 2:
+ if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
+ return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
+ }
+ break;
+ case -2:
+ if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
+ return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
+ }
+ break;
+ case 3:
+ if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
+ return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
+ }
+ break;
+ case -3:
+ if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
+ return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
+ }
+ break;
+ case 4:
+ if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
+ return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
+ }
+ break;
+ case -4:
+ if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
+ return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
+ }
+ break;
+ }
+ }
+ #endif
+ return PyLong_AsSsize_t(b);
+ }
+ x = PyNumber_Index(b);
+ if (!x) return -1;
+ ival = PyInt_AsSsize_t(x);
+ Py_DECREF(x);
+ return ival;
+}
+static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
+ if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
+ return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
+#if PY_MAJOR_VERSION < 3
+ } else if (likely(PyInt_CheckExact(o))) {
+ return PyInt_AS_LONG(o);
+#endif
+ } else {
+ Py_ssize_t ival;
+ PyObject *x;
+ x = PyNumber_Index(o);
+ if (!x) return -1;
+ ival = PyInt_AsLong(x);
+ Py_DECREF(x);
+ return ival;
+ }
+}
+static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
+ return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
+}
+static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
+ return PyInt_FromSize_t(ival);
+}
+
+
+/* #### Code section: utility_code_pragmas_end ### */
+#ifdef _MSC_VER
+#pragma warning( pop )
+#endif
+
+
+
+/* #### Code section: end ### */
+#endif /* Py_PYTHON_H */
diff --git a/rmp220_middleware/rmp220_middleware.py b/rmp220_middleware/rmp220_middleware.py
index 595c6ce..854f071 100644
--- a/rmp220_middleware/rmp220_middleware.py
+++ b/rmp220_middleware/rmp220_middleware.py
@@ -1,92 +1,7 @@
-#!/usr/bin/env python3
+# main.py
import rclpy
-from rclpy.node import Node
-from std_msgs.msg import Bool
-from geometry_msgs.msg import Twist
-from sensor_msgs.msg import Joy
-from enum import Enum
-from segway_msgs.srv import RosSetChassisEnableCmd
-
-
-import atexit
-import signal
-import sys
-
-class State(Enum):
- DISABLED = 0
- ENABLED = 1
-
-class StateMachineNode(Node):
- def __init__(self):
- super().__init__('state_machine_node')
-
- # Initialize state and other variables
- self.state = State.DISABLED
- self.timeout = 20.0 # Timeout in seconds
- #self.limit = 0.5 # Limit for linear and angular velocity
-
- # Create publishers, subscribers, timers, and service clients
- self.cmd_vel_pub = self.create_publisher(Twist, '/cmd_vel_out', 10)
- self.cmd_vel_sub = self.create_subscription(Twist, '/cmd_vel_mux', self.cmd_vel_callback, 10)
- self.joy_sub = self.create_subscription(Joy, '/joy', self.joy_callback, 10)
- self.timer = self.create_timer(0.01, self.timer_callback)
-
- # Create twist class for publishing velocities
- self.twist = Twist()
-
- self.latest_cmd_vel = Twist()
-
- # Create service clients for chassis enable and disable
- self.chassis_enable_client = self.create_client(RosSetChassisEnableCmd, 'set_chassis_enable')
- while not self.chassis_enable_client.wait_for_service(timeout_sec=1.0):
- self.get_logger().info('Service not available, waiting for chassis enable service...')
- self.get_logger().info('Chassis enable service available.')
-
- def enable_chassis(self):
- req = RosSetChassisEnableCmd.Request()
- req.ros_set_chassis_enable_cmd = True
- self.chassis_enable_client.call_async(req)
- self.get_logger().info('Enabling chassis...')
-
- def disable_chassis(self):
- req = RosSetChassisEnableCmd.Request()
- req.ros_set_chassis_enable_cmd = False
- self.chassis_enable_client.call_async(req)
- self.get_logger().info('Disabling chassis...')
-
- def joy_callback(self, msg):
- # if self.state == State.DISABLED and msg.buttons[7] == 1: # Joystick button 'start'
- if msg.buttons[7] == 1: # Joystick button 'start'
- self.state = State.ENABLED
- self.get_logger().info("State: ENABLED (Button 'start')")
- self.enable_chassis()
- # if self.state == State.ENABLED and msg.buttons[6] == 1: # Joystick button 'select'
- if msg.buttons[6] == 1: # Joystick button 'select'
- self.state = State.DISABLED
- self.get_logger().info("State: DISABLED (Button 'select')")
- self.disable_chassis()
-
- def cmd_vel_callback(self, msg):
- # This method shall only update the latest_cmd_vel attribute so it can be republished by the timer_callback with 100 HZ. Should have a look at performance though.
- self.latest_cmd_vel = msg
- self.timeout = 20.0 # Reset timeout when receiving commands
-
- def timer_callback(self):
- if self.state == State.ENABLED:
- if self.timeout <= 0:
- self.state = State.DISABLED
- self.get_logger().info("State: DISABLED (Timeout)")
- self.disable_chassis()
- else:
- self.timeout -= 0.01
- self.cmd_vel_pub.publish(self.latest_cmd_vel)
- if self.state == State.DISABLED and (abs(self.latest_cmd_vel.linear) > 0.1 or abs(self.latest_cmd_vel.angular > 0.1)): # This is a hack to enable the chassis when receiving commands e.g. from Nav2
- self.state = State.ENABLED
- self.get_logger().info("State: ENABLED (cmd_vel)")
- self.enable_chassis()
- else:
- self.cmd_vel_pub.publish(self.twist)
+from rmp220_middleware import StateMachineNode
def main(args=None):
rclpy.init(args=args)
diff --git a/rmp220_middleware/rmp220_middleware.py.bak b/rmp220_middleware/rmp220_middleware.py.bak
new file mode 100644
index 0000000..fff87c5
--- /dev/null
+++ b/rmp220_middleware/rmp220_middleware.py.bak
@@ -0,0 +1,107 @@
+#!/usr/bin/env python3
+
+import rclpy
+from rclpy.node import Node
+from std_msgs.msg import Bool
+from geometry_msgs.msg import Twist
+from sensor_msgs.msg import Joy
+from enum import Enum
+from segway_msgs.srv import RosSetChassisEnableCmd
+
+
+import atexit
+import signal
+import sys
+
+class State(Enum):
+ DISABLED = 0
+ ENABLED = 1
+
+class StateMachineNode(Node):
+ def __init__(self):
+ super().__init__('state_machine_node')
+
+ # Initialize state and other variables
+ self.state = State.DISABLED
+ self.timeout = 20.0 # Timeout in seconds
+ #self.limit = 0.5 # Limit for linear and angular velocity
+
+ # Create publishers, subscribers, timers, and service clients
+ self.cmd_vel_pub = self.create_publisher(Twist, '/cmd_vel_out', 10)
+ self.cmd_vel_sub = self.create_subscription(Twist, '/cmd_vel_mux', self.cmd_vel_callback, 10)
+ self.joy_sub = self.create_subscription(Joy, '/joy', self.joy_callback, 10)
+ self.timer = self.create_timer(0.01, self.timer_callback)
+
+ # Create twist class for publishing velocities
+ self.twist = Twist()
+
+ self.latest_cmd_vel = Twist()
+
+ # Create service clients for chassis enable and disable
+ self.chassis_enable_client = self.create_client(RosSetChassisEnableCmd, 'set_chassis_enable')
+ while not self.chassis_enable_client.wait_for_service(timeout_sec=1.0):
+ self.get_logger().info('Service not available, waiting for chassis enable service...')
+ self.get_logger().info('Chassis enable service available.')
+
+ def enable_chassis(self):
+ req = RosSetChassisEnableCmd.Request()
+ req.ros_set_chassis_enable_cmd = True
+ self.chassis_enable_client.call_async(req)
+ self.get_logger().info('Enabling chassis...')
+
+ def disable_chassis(self):
+ req = RosSetChassisEnableCmd.Request()
+ req.ros_set_chassis_enable_cmd = False
+ self.chassis_enable_client.call_async(req)
+ self.get_logger().info('Disabling chassis...')
+
+ def joy_callback(self, msg):
+ start_button = msg.buttons[7] # Joystick button 'start'
+ select_button = msg.buttons[6] # Joystick button 'select'
+
+ if start_button == 1:
+ self.state = State.ENABLED
+ self.get_logger().info("State: ENABLED (Button 'start')")
+ self.enable_chassis()
+ elif select_button == 1:
+ self.state = State.DISABLED
+ self.get_logger().info("State: DISABLED (Button 'select')")
+ self.disable_chassis()
+
+ def cmd_vel_callback(self, msg):
+ # This method shall only update the latest_cmd_vel attribute so it can be republished by the timer_callback with 100 HZ. Should have a look at performance though.
+ self.latest_cmd_vel = msg
+ self.linear_abs = abs(self.latest_cmd_vel.linear)
+ self.angular_abs = abs(self.latest_cmd_vel.angular)
+ self.timeout = 20.0 # Reset timeout when receiving commands
+
+ def timer_callback(self):
+ if self.state == State.ENABLED:
+ if self.timeout <= 0:
+ self.state = State.DISABLED
+ self.get_logger().info("State: DISABLED (Timeout)")
+ self.disable_chassis()
+ else:
+ self.timeout -= 0.01
+ self.cmd_vel_pub.publish(self.latest_cmd_vel)
+ if self.state == State.DISABLED and (self.linear_abs > 0.1 or self.angular_abs > 0.1): # This is a hack to enable the chassis when receiving commands e.g. from Nav2
+ self.state = State.ENABLED
+ self.get_logger().info("State: ENABLED (cmd_vel)")
+ self.enable_chassis()
+ else:
+ self.cmd_vel_pub.publish(self.twist)
+
+def main(args=None):
+ rclpy.init(args=args)
+ node = StateMachineNode()
+ try:
+ rclpy.spin(node)
+ except KeyboardInterrupt:
+ pass
+ finally:
+ node.disable_chassis()
+ node.destroy_node()
+ rclpy.shutdown()
+
+if __name__ == '__main__':
+ main()
diff --git a/rmp220_middleware/rmp220_middleware_cython.pyx b/rmp220_middleware/rmp220_middleware_cython.pyx
new file mode 100644
index 0000000..623f64e
--- /dev/null
+++ b/rmp220_middleware/rmp220_middleware_cython.pyx
@@ -0,0 +1,98 @@
+# state_machine_cython.pyx
+
+cimport cython
+from libcpp.vector cimport vector
+from rclpy.node cimport Node
+from std_msgs.msg cimport Bool, Twist
+from geometry_msgs.msg cimport Joy
+from enum import Enum
+from segway_msgs.srv cimport RosSetChassisEnableCmd
+
+cdef extern from "Python.h":
+ void Py_INCREF(object obj)
+ void Py_DECREF(object obj)
+
+# Enum definition
+cdef enum State:
+ DISABLED = 0
+ ENABLED = 1
+
+# Cythonized StateMachineNode class
+@cython.cclass
+cdef class StateMachineNode(Node):
+ cdef State state
+ cdef float timeout
+ cdef float linear_abs
+ cdef float angular_abs
+
+ def __init__(self):
+ super().__init__('state_machine_node')
+
+ # Initialize state and other variables
+ self.state = State.DISABLED
+ self.timeout = 20.0
+
+ # Create publishers, subscribers, timers, and service clients
+ self.cmd_vel_pub = self.create_publisher(Twist, '/cmd_vel_out', 10)
+ self.cmd_vel_sub = self.create_subscription(Twist, '/cmd_vel_mux', self.cmd_vel_callback, 10)
+ self.joy_sub = self.create_subscription(Joy, '/joy', self.joy_callback, 10)
+ self.timer = self.create_timer(0.01, self.timer_callback)
+
+ # Create twist class for publishing velocities
+ self.twist = Twist()
+
+ self.latest_cmd_vel = Twist()
+
+ # Create service clients for chassis enable and disable
+ self.chassis_enable_client = self.create_client(RosSetChassisEnableCmd, 'set_chassis_enable')
+ while not self.chassis_enable_client.wait_for_service(timeout_sec=1.0):
+ self.get_logger().info('Service not available, waiting for chassis enable service...')
+ self.get_logger().info('Chassis enable service available.')
+
+ def enable_chassis(self):
+ req = RosSetChassisEnableCmd.Request()
+ req.ros_set_chassis_enable_cmd = True
+ self.chassis_enable_client.call_async(req)
+ self.get_logger().info('Enabling chassis...')
+
+ def disable_chassis(self):
+ req = RosSetChassisEnableCmd.Request()
+ req.ros_set_chassis_enable_cmd = False
+ self.chassis_enable_client.call_async(req)
+ self.get_logger().info('Disabling chassis...')
+
+ def joy_callback(self, msg):
+ start_button = msg.buttons[7] # Joystick button 'start'
+ select_button = msg.buttons[6] # Joystick button 'select'
+
+ if start_button == 1:
+ self.state = State.ENABLED
+ self.get_logger().info("State: ENABLED (Button 'start')")
+ self.enable_chassis()
+ elif select_button == 1:
+ self.state = State.DISABLED
+ self.get_logger().info("State: DISABLED (Button 'select')")
+ self.disable_chassis()
+
+ def cmd_vel_callback(self, msg):
+ # This method shall only update the latest_cmd_vel attribute so it can be republished by the timer_callback with 100 HZ. Should have a look at performance though.
+ self.latest_cmd_vel = msg
+ self.linear_abs = abs(self.latest_cmd_vel.linear)
+ self.angular_abs = abs(self.latest_cmd_vel.angular)
+ self.timeout = 20.0 # Reset timeout when receiving commands
+
+ def timer_callback(self):
+ if self.state == State.ENABLED:
+ if self.timeout <= 0:
+ self.state = State.DISABLED
+ self.get_logger().info("State: DISABLED (Timeout)")
+ self.disable_chassis()
+ else:
+ self.timeout -= 0.01
+ self.cmd_vel_pub.publish(self.latest_cmd_vel)
+ if self.state == State.DISABLED and (self.linear_abs > 0.1 or self.angular_abs > 0.1): # This is a hack to enable the chassis when receiving commands e.g. from Nav2
+ self.state = State.ENABLED
+ self.get_logger().info("State: ENABLED (cmd_vel)")
+ self.enable_chassis()
+ else:
+ self.cmd_vel_pub.publish(self.twist)
diff --git a/setup.py b/setup.py
index d1e0099..d85b380 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,13 @@
from setuptools import setup
+from Cython.Build import cythonize
package_name = 'rmp220_middleware'
+files = package_name + "/*.py"
+
setup(
+ #ext_modules=cythonize(files,compiler_directives={'language_level' : "3"},force=True,quiet=True),
+ ext_modules = cythonize(files,force=True,quiet=True),
name=package_name,
version='0.0.0',
packages=[package_name],
@@ -11,7 +16,7 @@ setup(
['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
],
- install_requires=['setuptools'],
+ install_requires=['setuptools', "wheel", "Cython"],
zip_safe=True,
maintainer='bjorn',
maintainer_email='bjoern.ellensohn@gmail.com',