Skip to content

Instantly share code, notes, and snippets.

View mxgrey's full-sized avatar
🦀
Rustacean

Grey mxgrey

🦀
Rustacean
View GitHub Profile
2: Test command: /usr/bin/python3 "-u" "/opt/ros/foxy/share/ament_cmake_test/cmake/run_test.py" "/home/runner/work/rmf_ros2/rmf_ros2/ros_ws/build/rmf_fleet_adapter/test_results/rmf_fleet_adapter/rmf_fleet_adapter_test.catch2.xml" "--package-name" "rmf_fleet_adapter" "--output-file" "/home/runner/work/rmf_ros2/rmf_ros2/ros_ws/build/rmf_fleet_adapter/ament_cmake_catch2/rmf_fleet_adapter_test.txt" "--command" "/home/runner/work/rmf_ros2/rmf_ros2/ros_ws/build/rmf_fleet_adapter/rmf_fleet_adapter_test" "-r junit" "-o /home/runner/work/rmf_ros2/rmf_ros2/ros_ws/build/rmf_fleet_adapter/test_results/rmf_fleet_adapter/rmf_fleet_adapter_test.catch2.xml"
2: Test timeout computed to be: 300
2: -- run_test.py: invoking following command in '/home/runner/work/rmf_ros2/rmf_ros2/ros_ws/build/rmf_fleet_adapter':
2: - /home/runner/work/rmf_ros2/rmf_ros2/ros_ws/build/rmf_fleet_adapter/rmf_fleet_adapter_test -r junit -o /home/runner/work/rmf_ros2/rmf_ros2/ros_ws/build/rmf_fleet_adapter/test_results/rmf_fleet_adapter/rmf_f
@mxgrey
mxgrey / executor.rs
Last active January 7, 2022 03:54
Rough draft of idea for safely blocking ros2_rust client
// The code in this file should be treated as a rough sketch. It probably contains errors, and it is definitely missing
// large chunks of implementation.
struct Executor {
// ... details ...
}
enum SpinError {
/// The spinning has timed out
Timeout,
@mxgrey
mxgrey / gist:1ab1bfdcc5fafeddeae46a9ae1fc43d1
Created February 2, 2022 05:08
setuptools email error??
--- stderr: pybind11_vendor
CMake Error at /usr/lib/cmake/pybind11/FindPythonLibsNew.cmake:96 (message):
Python config failure:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/grey/.local/lib/python3.6/site-packages/_distutils_hack/__init__.py", line 83, in create_module
return importlib.import_module('setuptools._distutils')
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
use sorted_vec::SortedSet;
use std::collections::BTreeSet;
#[derive(Debug)]
pub struct Mystruct {
value: u64,
id: std::string::String
}
impl std::cmp::PartialEq for Mystruct {
@mxgrey
mxgrey / office.site.ron
Created August 8, 2022 02:40
Serialization of the office demo in the .site.ron format
Site(
format_version: "0.1",
name: "building",
levels: {
179: Level(
name: "L1",
anchors: {
0: (-12.637225, -1.7334456),
1: (-8.400034, 6.576098),
2: (-11.126515, -5.1358128),
@mxgrey
mxgrey / input-remapper-crash.txt
Created October 28, 2022 06:29
Syslog related to input-remapper crashing
Oct 28 14:09:55 2B systemd-udevd[767]: input3: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2.
Oct 28 14:09:55 2B systemd-udevd[777]: input14: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2.
Oct 28 14:09:55 2B systemd-udevd[834]: input19: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2.
Oct 28 14:09:55 2B systemd-udevd[795]: input18: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2.
Oct 28 14:09:55 2B systemd-udevd[836]: input12: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2.
Oct 28 14:09:55 2B systemd-udevd[792]: input13: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2.
Oct 28 14:09:55 2B systemd-udevd[791]: input8: Process '/bin/input-remapper-control --command autoload --device ' failed with exit code 2.
Oct 28 14:09:55 2B systemd-udevd[776]: input20
@mxgrey
mxgrey / gist:537e5c8e9eab51904ae233c71966689c
Created December 1, 2022 07:35
libc failure backtrace
stack backtrace:
0: 0x55d5b430fc1a - std::backtrace_rs::backtrace::libunwind::trace::hd0524392467f58f0
at /rustc/c97b539e408ea353f4fde2f9251d598291fec421/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x55d5b430fc1a - std::backtrace_rs::backtrace::trace_unsynchronized::h2c36934e8f6e9be3
at /rustc/c97b539e408ea353f4fde2f9251d598291fec421/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x55d5b430fc1a - std::sys_common::backtrace::_print_fmt::he6e9d614e924de03
at /rustc/c97b539e408ea353f4fde2f9251d598291fec421/library/std/src/sys_common/backtrace.rs:65:5
3: 0x55d5b430fc1a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd3e316690863bea3
at /rustc/c97b539e408ea353f4fde2f9251d598291fec421/library/std/src/sys_common/backtrace.rs:44:22
4: 0x55d5b432d45e - core::fmt::write::
@mxgrey
mxgrey / gist:3bfc5761437f61cc8674663bc3fca923
Created December 11, 2022 03:06
gazebo suggested package list
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
freeglut3 gazebo-common gazebo-plugin-base i965-va-driver intel-media-va-driver libaacs0 libass9 libassimp5 libavcodec58
libavdevice58 libavfilter7 libavformat58 libavutil56 libbdplus0 libbluray2 libbs2b0 libbullet3.06 libchromaprint1
libcodec2-1.0 libconsole-bridge1.0 libdart-collision-bullet6.12 libdart-external-odelcpsolver6.12 libdart-utils6.12
libdart6.12 libdc1394-25 libdecor-0-0 libdecor-0-plugin-1-cairo libdraco4 libfcl0.7 libflite1 libfreeimage3 libgazebo11
libgme0 libgsm1 libigdgmm12 libignition-common3-3 libignition-fuel-tools4-4 libignition-math6-6 libignition-msgs5-5
libignition-transport8-8 libilmbase25 libjxr0 liblilv-0-0 libmfx1 libmysofa1 libnorm1 liboctomap1.9 libode8 libogre-1.9.0v5
Downloading model:
Name: officechairblack
Owner: openrobotics
Server:
URL: https://fuel.gazebosim.org
Version: 1.0
[Msg] Downloading model [https://fuel.gazebosim.org/openrobotics/models/officechairblack]
[Dbg] [Zip.cc:180] Created file [/home/grey/.ignition/fuel/fuel.gazebosim.org/openrobotics/models/officechairblack/1/meshes/OfficeChairBlack.mtl]
[Dbg] [Zip.cc:180] Created file [/home/grey/.ignition/fuel/fuel.gazebosim.org/openrobotics/models/officechairblack/1/meshes/OfficeChairBlack.obj]
#!/bin/bash
. /ros/install/setup.bash
echo "Same host publisher setting is $ROS_AUTOMATIC_DISCOVERY_RANGE, static peers is ${ROS_STATIC_PEERS}"
ROS_AUTOMATIC_DISCOVERY_RANGE=OFF ROS_STATIC_PEERS="" ros2 topic echo --timeout 15 --once /test_topic std_msgs/String > /results/no_discovery_no_static/subscriber &
ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST ROS_STATIC_PEERS="" ros2 topic echo --timeout 15 --once /test_topic std_msgs/String > /results/localhost_no_static/subscriber &
ROS_AUTOMATIC_DISCOVERY_RANGE=SUBNET ROS_STATIC_PEERS="" ros2 topic echo --timeout 15 --once /test_topic std_msgs/String > /results/subnet_no_static/subscriber &
ROS_AUTOMATIC_DISCOVERY_RANGE=OFF ROS_STATIC_PEERS="10.0.0.2" ros2 topic echo --timeout 15 --once /test_topic std_msgs/String > /results/no_discovery_static/subscriber &
ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST ROS_STATIC_PEERS="10.0.0.2" ros2 topic echo --timeout 15 --once /test_topic std_msgs/String > /results/localhost_static/subscriber &
ROS_AUTOMATIC_DISCOVERY_RANGE=SUBNET ROS_