This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Reproducer for rclpy issue #1455: | |
| "Failed to get number of ready entities for action client: | |
| wait set index for status subscription is out of bounds" | |
| GitHub Issue: https://github.com/ros2/rclpy/issues/1455 | |
| ROOT CAUSE: | |
| The race condition occurs when multiple threads create different wait_sets: | |
| 1. Thread A calls add_to_wait_set(wait_set_A) -> stores indices in action_client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/home/szobov/.nix-profile/bin/python3 | |
| import re | |
| import sys | |
| from subprocess import check_output, CalledProcessError | |
| JIRA_PROJECT_PREFIX = 'JIRA-' | |
| def append_branch_number(prefix): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Copyright © 2023 Sergei Zobov | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the “Software”), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://shapenet.cs.stanford.edu/media/modelnet40_ply_hdf5_2048.zip --no-check-certificate | |
| unzip modelnet40_ply_hdf5_2048.zip | |
| cd modelnet40_ply_hdf5_2048 | |
| wget https://gist.githubusercontent.com/szobov/4fe7e6cba08be7044426bedaae67b206/raw/2f79acb796b3860aef81d9e96521c26593f87607/split_to_ply.py | |
| python3 -m pip install h5py | |
| python3 split_to_ply.py | |
| cd dataset | |
| wget https://github.com/fxia22/pointnet.pytorch/files/3659189/trainval.txt | |
| wget https://github.com/fxia22/pointnet.pytorch/files/3914859/test.txt | |
| wget https://github.com/fxia22/pointnet.pytorch/files/3914860/train.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun python-google-docstring () | |
| "Generate google-style docstring for python." | |
| (interactive) | |
| (if (region-active-p) | |
| (progn | |
| (call-process-region (region-beginning) (region-end) "python3" nil t t "/home/szobov/bin/scripts/format-g-docs.py") | |
| (message "Docs are generated") | |
| (deactivate-mark)) | |
| (message "No region active; can't generate docs!")) | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global | |
| log /dev/log local0 | |
| log /dev/log local1 notice | |
| chroot /var/lib/haproxy | |
| stats socket /run/haproxy/admin.sock mode 660 level admin | |
| stats timeout 30s | |
| user haproxy | |
| group haproxy | |
| daemon | |
| maxconn 2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ rostopic echo -n1 /diagnostics | |
| header: | |
| seq: 16 | |
| stamp: | |
| secs: 1564406373 | |
| nsecs: 813920028 | |
| frame_id: '' | |
| status: | |
| - | |
| level: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @pytest.fixture | |
| def mock_utcnow(monkeypatch): | |
| def wrapped(now=datetime.min): | |
| monkeypatch.setattr(utils, "get_utcnow", lambda: now) | |
| return wrapped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stages: | |
| - init | |
| - test | |
| - deploy | |
| cache: | |
| key: ${CI_COMMIT_REF_SLUG} | |
| paths: | |
| - deps/ | |
| - _build/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun copy-to-clipboard () | |
| "Copies selection to x-clipboard." | |
| (interactive) | |
| (if (display-graphic-p) | |
| (progn | |
| (message "Yanked region to x-clipboard!") | |
| (call-interactively 'clipboard-kill-ring-save) | |
| ) | |
| (if (region-active-p) | |
| (progn |
NewerOlder