This file contains 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
#!/usr/bin/python3 | |
# setup: pip install requests beautifulsoup4 | |
from decimal import Decimal | |
import requests | |
from bs4 import BeautifulSoup | |
import sys | |
# Session setup |
This file contains 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
#include <Bounce2.h> | |
#define RUNSTOP_DELAY 200 // Delay in ms, before runstops will be active after motor command | |
#define RUNSTOP_LEFT_PIN 12 // pull-up on 13 will not work | |
#define RUNSTOP_RIGHT_PIN 11 | |
#define RUNSTOP_CENTER_PIN 10 | |
#define BUTTON_RIGHT_PIN 9 | |
#define BUTTON_LEFT_PIN 8 |
This file contains 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
// Use cluster extraction to get rid of the outliers of the segmented table | |
pcl::search::KdTree<pcl::PointXYZRGB>::Ptr treeTable (new pcl::search::KdTree<pcl::PointXYZRGB>); | |
treeTable->setInputCloud (cloud_plane); | |
std::vector<pcl::PointIndices> table_cluster_indices; | |
pcl::EuclideanClusterExtraction<pcl::PointXYZRGB> ecTable; | |
ecTable.setClusterTolerance (ecClusterTolerance); // 2cm | |
ecTable.setMinClusterSize (ecMinClusterSize); | |
ecTable.setMaxClusterSize (ecMaxClusterSize); | |
ecTable.setSearchMethod (treeTable); | |
ecTable.setInputCloud (cloud_plane); |