Skip to content

Instantly share code, notes, and snippets.

View mxgrey's full-sized avatar
🦀
Rustacean

Grey mxgrey

🦀
Rustacean
View GitHub Profile
@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),
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 / 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
@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,
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 / spelling_bee_output.txt
Created May 6, 2020 06:52
Expected output of the spelling bee challenge, given T (required), A, R, N, G, F, L
Basic words:
- LANTANA
- TAAR
- TRAFALGAR
- GANTANG
- TARRA
- RATAN
- TARR
- RATTAN
- ARRANT
@mxgrey
mxgrey / amethyst_example_pong_output.txt
Last active November 10, 2019 12:51
From running `cargo run --example pong --features "vulkan"` on Ubuntu 18.04 with a Radeon RX Vega 64 graphics card. amdgpu-pro drivers are installed.
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.12.0
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: c72063f13f90bae4ae96b6c96e04a2206493bbf3
[INFO][amethyst::app] Rustc version: 1.38.0 Stable
[INFO][amethyst::app] Rustc git commit: 625451e376bb2e5283fc4741caa0a3e8a2ca4d54
[WARN][rendy_factory::factory] Slow safety checks are enabled! Disable them in production by enabling the 'no-slow-safety-checks' feature!
[INFO][rendy_util::wrap] Slow safety checks are enabled! You can disable them in production by enabling the 'no-slow-safety-checks' feature!
[INFO][gfx_backend_vulkan]
GENERAL [Loader Message (0)] : Device Extension: VK_KHR_bind_memory2 (/usr/lib/x86_64-linux-gnu/libvulkan_radeon.so) version 0.0.1
@mxgrey
mxgrey / gist:9ac28c8ad30f61de670ba45de698aacc
Created November 10, 2019 12:13
From runningcargo run --example pong --features "vulkan"
Finished dev [unoptimized + debuginfo] target(s) in 0.16s
Running `target/debug/examples/pong`
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.12.0
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: c72063f13f90bae4ae96b6c96e04a2206493bbf3
[INFO][amethyst::app] Rustc version: 1.38.0 Stable
[INFO][amethyst::app] Rustc git commit: 625451e376bb2e5283fc4741caa0a3e8a2ca4d54
[INFO][gfx_backend_vulkan]
GENERAL | VALIDATION [ObjectTracker (0)] : OBJ[0x1] : CREATE DebugUtilsMessengerEXT object 0x55e40ebaf920
@mxgrey
mxgrey / gist:0e38a0a12e430dab8d4bf8e5c803eff7
Created November 10, 2019 12:13
From runningcargo run --example pong --features "vulkan"
Finished dev [unoptimized + debuginfo] target(s) in 0.16s
Running `target/debug/examples/pong`
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.12.0
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: c72063f13f90bae4ae96b6c96e04a2206493bbf3
[INFO][amethyst::app] Rustc version: 1.38.0 Stable
[INFO][amethyst::app] Rustc git commit: 625451e376bb2e5283fc4741caa0a3e8a2ca4d54
[INFO][gfx_backend_vulkan]
GENERAL | VALIDATION [ObjectTracker (0)] : OBJ[0x1] : CREATE DebugUtilsMessengerEXT object 0x55e40ebaf920
0 : 0 0 0 0 0 10
0.001 : 0 0 0 0 0 9.99999
0.002 : 0 0 0 0 0 9.99997
0.003 : 0 0 0 0 0 9.99994
0.004 : 0 0 0 0 0 9.9999
0.005 : 0 0 0 0 0 9.99985
0.006 : 0 0 0 0 0 9.99979
0.007 : 0 0 0 0 0 9.99973
0.008 : 0 0 0 0 0 9.99965
0.009 : 0 0 0 0 0 9.99956