Skip to content

Instantly share code, notes, and snippets.

View rwbot's full-sized avatar
🤖
robotting

Chris Rowe rwbot

🤖
robotting
View GitHub Profile
@rwbot
rwbot / GITCHEATSHEET.md
Last active May 29, 2018 04:13 — forked from hofmannsven/README.md
My simply Git Cheatsheet
static_transform_publisher
static_transform_publisher x y z yaw pitch roll frame_id child_frame_id period_in_ms
Publish a static coordinate transform to tf using an x/y/z offset in meters and yaw/pitch/roll in radians. (yaw is rotation about Z, pitch is rotation about Y, and roll is rotation about X). The period, in milliseconds, specifies how often to send a transform. 100ms (10hz) is a good value.
static_transform_publisher x y z qx qy qz qw frame_id child_frame_id period_in_ms
Publish a static coordinate transform to tf using an x/y/z offset in meters and quaternion. The period, in milliseconds, specifies how often to send a transform. 100ms (10hz) is a good value.
static_transform_publisher is designed both as a command-line tool for manual use, as well as for use within roslaunch files for setting static transforms. For example:
@rwbot
rwbot / gist:03866dd176ac514ae09691b2bb9fb98a
Created February 13, 2020 04:27
PCL Interactive ICP on Default Settings, monkey.ply (Code pasted from tutorial)
rwbot@carowe:~/test/build$ ./interactive_icp ../monkey.ply
[pcl::PLYReader] ../monkey.ply:14: property 'list uint8 uint32 vertex_indices' of element 'face' is not handled
Loaded file ../monkey.ply (1966 points) in 11 ms
Applying this rigid transformation to: cloud_in -> cloud_icp
Rotation matrix :
| 0.924 -0.383 0.000 |
R = | 0.383 0.924 0.000 |
| 0.000 0.000 1.000 |
@rwbot
rwbot / gist:8c3f24bbb61d825d140fcdba79cc7097
Created February 13, 2020 04:30
PCL Interactive ICP on monkey.ply. Only change is XYZ translation from (0,0,0.4) to (1,1,0)
rwbot@carowe:~/test/build$ ./interactive_icp ../monkey.ply
[pcl::PLYReader] ../monkey.ply:14: property 'list uint8 uint32 vertex_indices' of element 'face' is not handled
Loaded file ../monkey.ply (1966 points) in 9 ms
Applying this rigid transformation to: cloud_in -> cloud_icp
Rotation matrix :
| 0.924 -0.383 0.000 |
R = | 0.383 0.924 0.000 |
| 0.000 0.000 1.000 |
@rwbot
rwbot / cloudSettings
Last active May 17, 2021 21:39
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-05-17T21:39:40.358Z","extensionVersion":"v3.4.3"}
@rwbot
rwbot / gist:a18f0c28cdc986b0935a20e9796dbfef
Created June 30, 2020 00:59
demo_grid_driving_action ENUMs
tara -> demo_grid_driving_action
# Define the goal
int32 grid_drive_enum
int32 GRID_DRIVE_ENUM_ERROR = 0
int32 GRID_DRIVE_ENUM_DRIVE_TO_HOME_FROM_UNKNOWN_POS_PAST_HOMING_SENSOR = 1
int32 GRID_DRIVE_ENUM_DRIVE_TO_HOME_FROM_UNKNOWN_POS_BEFORE_HOMING_SENSOR = 2
int32 GRID_DRIVE_ENUM_DRIVE_TO_HOME_FROM_KNOWN_POS = 3
int32 GRID_DRIVE_ENUM_DRIVE_TO_GOAL_TOTE = 4
#include <ros/ros.h>
#include <std_msgs/String.h>
#include <geometry_msgs/Twist.h>
#include <sensor_msgs/LaserScan.h>
#include <math.h>
geometry_msgs::Twist twist;
geometry_msgs::Twist desired;
bool newMsg, newDesired;
#define PI 3.14159265

PCL_UNDERLAY

Debug

cd ~/dbg_source_pcl_ws
catkin config --extend /opt/ros/$ROS_DISTRO --install --cmake-args -DCMAKE_BUILD_TYPE=Debug
catkin build 
@rwbot
rwbot / Recursive "Save for Later".md
Last active October 17, 2023 03:16
Move all Amazon cart items to "Save for Later"

Open Chrome Developer Console, WIN Ctrl+Shift+J or MAC Cmd+Opt+J, paste and enter

function saveAllAmazonCartItemsForLater() {
  var query = document.querySelectorAll("#activeCartViewForm input[value='Save for later']")
  console.log('started');

  if (query.length) {
    console.log('query.length = ' + query.length);
 query[0].click();
@rwbot
rwbot / threads.json
Last active December 5, 2023 02:50
threads
{
"1": [0.2, 0.25],
"2": [0.25, 0.4],
"3": [0.35, 0.5],
"4": [0.5, 0.7, 1.0, 1.5, 2],
"5": [0.5, 0.8, 1.0, 1.5, 2],
"6": [0.75, 1.0, 1.5, 2],
"7": [0.75, 1.0, 1.5, 2],
"8": [0.75, 1.0, 1.25, 1.5, 2],
"9": [0.75, 1.0, 1.25, 1.5, 2],