Search is not available for this dataset
repo
stringlengths
2
152
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
la3dm
la3dm-master/.travis.yml
dist: trusty sudo: required language: - generic cache: - apt services: - docker # Global environment variables env: global: - ROS_DISTRO=kinetic - ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu # - ROS_CI_DESKTOP="`lsb_release -cs`" # - CI_SOURCE_PATH=$(pwd) # - ROS_PARALLEL_JOBS='-...
1,407
23.275862
124
yml
la3dm
la3dm-master/README.md
# Learning-Aided 3D Mapping [![Build Status](https://travis-ci.org/RobustFieldAutonomyLab/la3dm.svg?branch=master)](https://travis-ci.org/RobustFieldAutonomyLab/la3dm) A suite of algorithms for learning-aided mapping. Includes implementations of Gaussian process regression and Bayesian generalized kernel inference for...
4,718
43.102804
534
md
la3dm
la3dm-master/config/datasets/sim_structured.yaml
# sim_structured config # Information about range-finder data scan_num: 12 # How many scans to use max_range: 8 # Sensor max range (m) # Bounds on map height min_z: 0 max_z: 4.3 original_size: false predict: false
217
15.769231
37
yaml
la3dm
la3dm-master/config/datasets/sim_structured_long_term.yaml
# sim_structured_long_term config # Information about range-finder data scan_num: 15 # How many scans to use max_range: 8 # Sensor max range (m) # Bounds on map height min_z: 0 max_z: 4.3 original_size: true predict: false
226
16.461538
37
yaml
la3dm
la3dm-master/config/datasets/sim_unstructured.yaml
# sim_unstructured config # Information about range-finder data scan_num: 12 # How many scans to use max_range: 8 # Sensor max range (m) # Bounds on map height min_z: 0 max_z: 4.3 original_size: false predict: false
219
15.923077
37
yaml
la3dm
la3dm-master/config/methods/bgkloctomap.yaml
# BGKLOctoMap config # Map topic, grid cell mininum resolution topic: /occupied_cells_vis_array resolution: 0.1 block_depth: 3 # Test-data octree depth (see Wang & Englot ICRA 2016) # Kernel parameters sf2: 0.1 # Actually sigma_0 in sparse kernel ell: 0.2 # Length scale of the sparse kernel # Sampling resolutions fr...
695
28
69
yaml
la3dm
la3dm-master/config/methods/bgkloctomap_large_map.yaml
# BGKL Large Map config # Map topic, grid cell mininum resolution topic: /occupied_cells_vis_array resolution: 0.2 block_depth: 5 # Test-data octree depth (see Wang & Englot ICRA 2016) max_range: 30 # Sensor max range (m) original_size: true # Bounds on map height min_z: -3.0 max_z: 3.0 # Kernel parameters sf2: 0.1...
726
21.71875
83
yaml
la3dm
la3dm-master/config/methods/bgklvoctomap.yaml
# BGKLVOctoMap config # Map topic, grid cell mininum resolution topic: /occupied_cells_vis_array resolution: 0.1 block_depth: 5 # Test-data octree depth (see Wang & Englot ICRA 2016) # Kernel parameters sf2: 0.1 # Actually sigma_0 in sparse kernel ell: 0.2 # Length scale of the sparse kernel # Sampling resolutions f...
735
28.44
69
yaml
la3dm
la3dm-master/config/methods/bgklvoctomap_large_map.yaml
# BGKLV Large Map config # Map topic, grid cell mininum resolution topic: /occupied_cells_vis_array resolution: 0.2 block_depth: 6 # Test-data octree depth (see Wang & Englot ICRA 2016) max_range: 30 # Sensor max range (m) original_size: true # Bounds on map height min_z: -3.0 max_z: 3.0 # Kernel parameters sf2: 0....
703
21
70
yaml
la3dm
la3dm-master/config/methods/bgkoctomap.yaml
# BGKOctoMap config # Map topic, grid cell mininum resolution topic: /occupied_cells_vis_array resolution: 0.1 block_depth: 3 # Test-data octree depth (see Wang & Englot ICRA 2016) # Kernel parameters sf2: 1.0 # Actually sigma_0 in sparse kernel ell: 0.2 # Length scale of the sparse kernel # Sampling resolutions fre...
701
28.25
70
yaml
la3dm
la3dm-master/config/methods/bgkoctomap_large_map.yaml
# BGKOctoMap config # Map topic, grid cell mininum resolution topic: /occupied_cells_vis_array resolution: 0.2 block_depth: 3 # Test-data octree depth (see Wang & Englot ICRA 2016) max_range: 30 # Sensor max range (m) original_size: true # Bounds on map height min_z: -3.0 max_z: 3.0 # Kernel parameters sf2: 1.0 # A...
806
25.9
70
yaml
la3dm
la3dm-master/config/methods/gpoctomap.yaml
# GPOctoMap config # Map topic, grid cell mininum resolution topic: /occupied_cells_vis_array resolution: 0.1 block_depth: 3 # Test-data octree depth (see Wang & Englot ICRA 2016) # Kernel parameters sf2: 1.0 ell: 1.0 # Sampling resolutions free_resolution: 0.1 # Free space sampling resolution ds_resolution: 0.1 # D...
491
17.923077
69
yaml
la3dm
la3dm-master/config/methods/gpoctomap_large_map.yaml
# GP/BGKL+ Large Map config # Map topic, grid cell mininum resolution topic: /occupied_cells_vis_array resolution: 0.2 block_depth: 4 # Test-data octree depth (see Wang & Englot ICRA 2016) max_range: 30 # Sensor max range (m) original_size: true # Bounds on map height min_z: -3.0 max_z: 3.0 # Kernel parameters sf2:...
574
15.911765
69
yaml
la3dm
la3dm-master/include/bgkloctomap/bgklblock.h
#ifndef LA3DM_BGKL_BLOCK_H #define LA3DM_BGKL_BLOCK_H #include <unordered_map> #include <array> #include "point3f.h" #include "bgkloctree_node.h" #include "bgkloctree.h" namespace la3dm { /// Hask key to index Block given block's center. typedef int64_t BlockHashKey; /// Initialize Look-Up Table std...
3,715
32.781818
131
h
la3dm
la3dm-master/include/bgkloctomap/bgklinference.h
#ifndef LA3DM_BGKL_H #define LA3DM_BGKL_H namespace la3dm { /* * @brief Bayesian Generalized Kernel Inference on Bernoulli distribution * @param dim dimension of data (2, 3, etc.) * @param T data type (float, double, etc.) * @ref Nonparametric Bayesian inference on multivariate exponential famili...
8,306
38.183962
101
h
la3dm
la3dm-master/include/bgkloctomap/bgkloctomap.h
#ifndef LA3DM_BGKL_OCTOMAP_H #define LA3DM_BGKL_OCTOMAP_H #include <unordered_map> #include <vector> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include "rtree.h" #include "bgklblock.h" #include "bgkloctree_node.h" #include "point6f.h" namespace la3dm { /// PCL PointCloud types as input typede...
16,070
40.527132
140
h
la3dm
la3dm-master/include/bgkloctomap/bgkloctree.h
#ifndef LA3DM_BGKL_OCTREE_H #define LA3DM_BGKL_OCTREE_H #include <stack> #include <vector> #include "point3f.h" #include "bgkloctree_node.h" namespace la3dm { /// Hash key to index OcTree nodes given depth and the index in that layer. typedef int OcTreeHashKey; /// Convert from node to hask key. OcT...
5,281
31.604938
98
h
la3dm
la3dm-master/include/bgkloctomap/bgkloctree_node.h
#ifndef LA3DM_BGKL_OCCUPANCY_H #define LA3DM_BGKL_OCCUPANCY_H #include <iostream> #include <fstream> namespace la3dm { /// Occupancy state: before pruning: FREE, OCCUPIED, UNKNOWN; after pruning: PRUNED enum class State : char { FREE, OCCUPIED, UNKNOWN, PRUNED }; /* * @brief Inference o...
2,950
29.112245
117
h
la3dm
la3dm-master/include/bgklvoctomap/bgklvblock.h
#ifndef LA3DM_BGKLV_BLOCK_H #define LA3DM_BGKLV_BLOCK_H #include <unordered_map> #include <array> #include "point3f.h" #include "bgklvoctree_node.h" #include "bgklvoctree.h" namespace la3dm { /// Hask key to index Block given block's center. typedef int64_t BlockHashKey; /// Initialize Look-Up Table ...
3,747
32.765766
131
h
la3dm
la3dm-master/include/bgklvoctomap/bgklvinference.h
#ifndef LA3DM_BGKLV_H #define LA3DM_BGKLV_H namespace la3dm { /* * @brief Bayesian Generalized Kernel Inference on Bernoulli distribution * @param dim dimension of data (2, 3, etc.) * @param T data type (float, double, etc.) * @ref Nonparametric Bayesian inference on multivariate exponential fami...
6,530
36.97093
180
h
la3dm
la3dm-master/include/bgklvoctomap/bgklvoctomap.h
#ifndef LA3DM_BGKLV_OCTOMAP_H #define LA3DM_BGKLV_OCTOMAP_H #include <unordered_map> #include <vector> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include "rtree.h" #include "bgklvblock.h" #include "bgklvoctree_node.h" #include "point6f.h" namespace la3dm { /// PCL PointCloud types as input ty...
16,075
40.43299
140
h
la3dm
la3dm-master/include/bgklvoctomap/bgklvoctree.h
#ifndef LA3DM_BGKLV_OCTREE_H #define LA3DM_BGKLV_OCTREE_H #include <stack> #include <vector> #include "point3f.h" #include "bgklvoctree_node.h" namespace la3dm { /// Hash key to index OcTree nodes given depth and the index in that layer. typedef int OcTreeHashKey; /// Convert from node to hask key. ...
5,281
31.604938
98
h
la3dm
la3dm-master/include/bgklvoctomap/bgklvoctree_node.h
#ifndef LA3DM_BGKLV_OCCUPANCY_H #define LA3DM_BGKLV_OCCUPANCY_H #include <iostream> #include <fstream> #include <cmath> namespace la3dm { /// Occupancy state: before pruning: FREE, OCCUPIED, UNKNOWN, UNCERTAIN; after pruning: PRUNED enum class State : char { FREE, OCCUPIED, UNKNOWN, UNCERTAIN, PRUNED...
3,010
28.811881
117
h
la3dm
la3dm-master/include/bgkoctomap/bgkblock.h
#ifndef LA3DM_BGK_BLOCK_H #define LA3DM_BGK_BLOCK_H #include <unordered_map> #include <array> #include "point3f.h" #include "bgkoctree_node.h" #include "bgkoctree.h" namespace la3dm { /// Hask key to index Block given block's center. typedef int64_t BlockHashKey; /// Initialize Look-Up Table std::un...
3,709
32.727273
131
h
la3dm
la3dm-master/include/bgkoctomap/bgkinference.h
#ifndef LA3DM_BGK_H #define LA3DM_BGK_H namespace la3dm { /* * @brief Bayesian Generalized Kernel Inference on Bernoulli distribution * @param dim dimension of data (2, 3, etc.) * @param T data type (float, double, etc.) * @ref Nonparametric Bayesian inference on multivariate exponential families...
5,140
35.460993
101
h
la3dm
la3dm-master/include/bgkoctomap/bgkoctomap.h
#ifndef LA3DM_BGK_OCTOMAP_H #define LA3DM_BGK_OCTOMAP_H #include <unordered_map> #include <vector> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include "rtree.h" #include "bgkblock.h" #include "bgkoctree_node.h" namespace la3dm { /// PCL PointCloud types as input typedef pcl::PointXYZ PCLPointT...
15,848
40.273438
125
h
la3dm
la3dm-master/include/bgkoctomap/bgkoctree.h
#ifndef LA3DM_BGK_OCTREE_H #define LA3DM_BGK_OCTREE_H #include <stack> #include <vector> #include "point3f.h" #include "bgkoctree_node.h" namespace la3dm { /// Hash key to index OcTree nodes given depth and the index in that layer. typedef int OcTreeHashKey; /// Convert from node to hask key. OcTree...
5,276
31.574074
98
h
la3dm
la3dm-master/include/bgkoctomap/bgkoctree_node.h
#ifndef LA3DM_BGK_OCCUPANCY_H #define LA3DM_BGK_OCCUPANCY_H #include <iostream> #include <fstream> namespace la3dm { /// Occupancy state: before pruning: FREE, OCCUPIED, UNKNOWN; after pruning: PRUNED enum class State : char { FREE, OCCUPIED, UNKNOWN, PRUNED }; /* * @brief Inference oup...
2,946
29.071429
117
h
la3dm
la3dm-master/include/common/markerarray_pub.h
#include <pcl_ros/point_cloud.h> #include <geometry_msgs/Point.h> #include <visualization_msgs/MarkerArray.h> #include <visualization_msgs/Marker.h> #include <std_msgs/ColorRGBA.h> #include <cmath> #include <string> namespace la3dm { std_msgs::ColorRGBA heightMapColor(double h) { std_msgs::ColorRGBA...
5,869
29.572917
123
h
la3dm
la3dm-master/include/common/point3f.h
#ifndef LA3DM_VECTOR3_H #define LA3DM_VECTOR3_H #include <iostream> #include <math.h> namespace la3dm { /*! * \brief This class represents a three-dimensional vector * * The three-dimensional vector can be used to represent a * translation in three-dimensional space or to represent the *...
7,471
25.974729
114
h
la3dm
la3dm-master/include/common/point6f.h
#ifndef LA3DM_VECTOR6_H #define LA3DM_VECTOR6_H #include <iostream> #include <math.h> #include "point3f.h" namespace la3dm { /*! * \brief This class represents a six-dimensional vector * * We use the six-dimensional vector to represent the start * and end points of a line segment */ ...
9,678
26.188202
137
h
la3dm
la3dm-master/include/common/rtree.h
#ifndef RTREE_H #define RTREE_H // NOTE This file compiles under MSVC 6 SP5 and MSVC .Net 2003 it may not work on other compilers without modification. // NOTE These next few lines may be win32 specific, you may need to modify them to compile on other platform #include <stdio.h> #include <math.h> #include <assert.h> ...
44,357
26.671865
136
h
la3dm
la3dm-master/include/gpoctomap/gpblock.h
#ifndef LA3DM_GP_BLOCK_H #define LA3DM_GP_BLOCK_H #include <unordered_map> #include <array> #include "point3f.h" #include "gpoctree_node.h" #include "gpoctree.h" namespace la3dm { /// Hask key to index Block given block's center. typedef int64_t BlockHashKey; /// Initialize Look-Up Table std::unorde...
3,704
32.378378
131
h
la3dm
la3dm-master/include/gpoctomap/gpoctomap.h
#ifndef LA3DM_GP_OCTOMAP_H #define LA3DM_GP_OCTOMAP_H #include <unordered_map> #include <vector> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include "rtree.h" #include "gpblock.h" #include "gpoctree_node.h" namespace la3dm { /// PCL PointCloud types as input typedef pcl::PointXYZ PCLPointType; ...
15,859
40.957672
125
h
la3dm
la3dm-master/include/gpoctomap/gpoctree.h
#ifndef LA3DM_GP_OCTREE_H #define LA3DM_GP_OCTREE_H #include <stack> #include <vector> #include "point3f.h" #include "gpoctree_node.h" namespace la3dm { /// Hash key to index OcTree nodes given depth and the index in that layer. typedef int OcTreeHashKey; /// Convert from node to hask key. OcTreeHas...
5,274
31.561728
98
h
la3dm
la3dm-master/include/gpoctomap/gpoctree_node.h
#ifndef LA3DM_GP_OCCUPANCY_H #define LA3DM_GP_OCCUPANCY_H #include <iostream> #include <fstream> namespace la3dm { /// Occupancy state: before pruning: FREE, OCCUPIED, UNKNOWN; after pruning: PRUNED enum class State : char { FREE, OCCUPIED, UNKNOWN, PRUNED }; /* * @brief GP regression o...
3,150
30.51
107
h
la3dm
la3dm-master/include/gpoctomap/gpregressor.h
#ifndef LA3DM_GP_REGRESSOR_H #define LA3DM_GP_REGRESSOR_H #include <Eigen/Dense> #include <vector> namespace la3dm { /* * @brief A Simple Gaussian Process Regressor * @param dim dimension of data (2, 3, etc.) * @param T data type (float, double, etc.) */ template<int dim, typename T> ...
5,931
33.894118
100
h
la3dm
la3dm-master/src/bgkloctomap/bgklblock.cpp
#include "bgklblock.h" #include <queue> #include <algorithm> namespace la3dm { std::unordered_map<OcTreeHashKey, point3f> init_key_loc_map(float resolution, unsigned short max_depth) { std::unordered_map<OcTreeHashKey, point3f> key_loc_map; std::queue<point3f> center_q; center_q.push(poin...
6,731
41.075
109
cpp
la3dm
la3dm-master/src/bgkloctomap/bgkloctomap.cpp
#include <algorithm> #include <ros/ros.h> #include <pcl/filters/voxel_grid.h> #include "bgkloctomap.h" #include "bgklinference.h" using std::vector; // #define DEBUG true; #ifdef DEBUG #include <iostream> #define Debug_Msg(msg) {\ std::cout << "Debug: " << msg << std::endl; } #endif namespace la3dm { BGKLOct...
18,619
36.24
172
cpp
la3dm
la3dm-master/src/bgkloctomap/bgkloctomap_server.cpp
#include <string> #include <iostream> #include <ros/ros.h> #include <pcl_ros/transforms.h> #include <pcl/filters/voxel_grid.h> #include "markerarray_pub.h" #include "bgkloctomap.h" tf::TransformListener *listener; std::string frame_id("/map"); la3dm::BGKLOctoMap *map; la3dm::MarkerArrayPub *m_pub_occ, *m_pub_free; /...
7,550
35.302885
177
cpp
la3dm
la3dm-master/src/bgkloctomap/bgkloctomap_static_node.cpp
#include <string> #include <iostream> #include <ros/ros.h> #include "bgkloctomap.h" #include "markerarray_pub.h" void load_pcd(std::string filename, la3dm::point3f &origin, la3dm::PCLPointCloud &cloud) { pcl::PCLPointCloud2 cloud2; Eigen::Vector4f _origin; Eigen::Quaternionf orientaion; pcl::io::loadPC...
6,720
38.304094
128
cpp
la3dm
la3dm-master/src/bgkloctomap/bgkloctree.cpp
#include "bgkloctree.h" #include <cmath> namespace la3dm { unsigned short OcTree::max_depth = 0; OcTreeHashKey node_to_hash_key(unsigned short depth, unsigned short index) { return (depth << 16) + index; } void hash_key_to_node(OcTreeHashKey key, unsigned short &depth, unsigned short &index...
4,955
30.769231
119
cpp
la3dm
la3dm-master/src/bgkloctomap/bgkloctree_node.cpp
#include "bgkloctree_node.h" #include <cmath> namespace la3dm { /// Default static values float Occupancy::sf2 = 1.0f; float Occupancy::ell = 1.0f; float Occupancy::free_thresh = 0.3f; float Occupancy::occupied_thresh = 0.7f; float Occupancy::var_thresh = 1000.0f; float Occupancy::prior_A ...
2,123
32.714286
117
cpp
la3dm
la3dm-master/src/bgklvoctomap/bgklvblock.cpp
#include "bgklvblock.h" #include <queue> #include <algorithm> namespace la3dm { std::unordered_map<OcTreeHashKey, point3f> init_key_loc_map(float resolution, unsigned short max_depth) { std::unordered_map<OcTreeHashKey, point3f> key_loc_map; std::queue<point3f> center_q; center_q.push(poi...
6,757
40.975155
109
cpp
la3dm
la3dm-master/src/bgklvoctomap/bgklvoctomap.cpp
#include <algorithm> #include <pcl/filters/voxel_grid.h> #include "bgklvoctomap.h" #include "bgklvinference.h" #include <iostream> using std::vector; //#define DEBUG true; #ifdef DEBUG #include <iostream> #define Debug_Msg(msg) {\ std::cout << "Debug: " << msg << std::endl; } #endif namespace la3dm { BGKLVOc...
21,314
35.877163
174
cpp
la3dm
la3dm-master/src/bgklvoctomap/bgklvoctomap_server.cpp
#include <string> #include <iostream> #include <ros/ros.h> #include <pcl_ros/transforms.h> #include <pcl/filters/voxel_grid.h> #include "markerarray_pub.h" #include "bgklvoctomap.h" tf::TransformListener *listener; std::string frame_id("/map"); la3dm::BGKLVOctoMap *map; la3dm::MarkerArrayPub *m_pub_occ, *m_pub_free; ...
7,312
35.383085
177
cpp
la3dm
la3dm-master/src/bgklvoctomap/bgklvoctomap_static_node.cpp
#include <string> #include <iostream> #include <ros/ros.h> #include "bgklvoctomap.h" #include "markerarray_pub.h" void load_pcd(std::string filename, la3dm::point3f &origin, la3dm::PCLPointCloud &cloud) { pcl::PCLPointCloud2 cloud2; Eigen::Vector4f _origin; Eigen::Quaternionf orientaion; pcl::io::loadP...
5,932
38.291391
145
cpp
la3dm
la3dm-master/src/bgklvoctomap/bgklvoctree.cpp
#include "bgklvoctree.h" #include <cmath> namespace la3dm { unsigned short OcTree::max_depth = 0; OcTreeHashKey node_to_hash_key(unsigned short depth, unsigned long index) { return (depth << 28) + index; } void hash_key_to_node(OcTreeHashKey key, unsigned short &depth, unsigned long &index)...
4,951
30.74359
119
cpp
la3dm
la3dm-master/src/bgklvoctomap/bgklvoctree_node.cpp
#include "bgklvoctree_node.h" #include <cmath> namespace la3dm { /// Default static values float Occupancy::sf2 = 1.0f; float Occupancy::ell = 1.0f; float Occupancy::free_thresh = 0.3f; float Occupancy::occupied_thresh = 0.7f; float Occupancy::var_thresh = 1000.0f; float Occupancy::prior_A...
2,939
29.625
117
cpp
la3dm
la3dm-master/src/bgkoctomap/bgkblock.cpp
#include "bgkblock.h" #include <queue> #include <algorithm> namespace la3dm { std::unordered_map<OcTreeHashKey, point3f> init_key_loc_map(float resolution, unsigned short max_depth) { std::unordered_map<OcTreeHashKey, point3f> key_loc_map; std::queue<point3f> center_q; center_q.push(point...
6,730
41.06875
109
cpp
la3dm
la3dm-master/src/bgkoctomap/bgkoctomap.cpp
#include <algorithm> #include <pcl/filters/voxel_grid.h> #include "bgkoctomap.h" #include "bgkinference.h" using std::vector; // #define DEBUG true; #ifdef DEBUG #include <iostream> #define Debug_Msg(msg) {\ std::cout << "Debug: " << msg << std::endl; } #endif namespace la3dm { BGKOctoMap::BGKOctoMap() : BGK...
20,391
34.464348
130
cpp
la3dm
la3dm-master/src/bgkoctomap/bgkoctomap_server.cpp
#include <string> #include <iostream> #include <ros/ros.h> #include <pcl_ros/transforms.h> #include <pcl/filters/voxel_grid.h> #include "markerarray_pub.h" #include "bgkoctomap.h" tf::TransformListener *listener; std::string frame_id("/map"); la3dm::BGKOctoMap *map; la3dm::MarkerArrayPub *m_pub_occ, *m_pub_free; //s...
7,546
35.283654
177
cpp
la3dm
la3dm-master/src/bgkoctomap/bgkoctomap_static_node.cpp
#include <string> #include <iostream> #include <ros/ros.h> #include "bgkoctomap.h" #include "markerarray_pub.h" void load_pcd(std::string filename, la3dm::point3f &origin, la3dm::PCLPointCloud &cloud) { pcl::PCLPointCloud2 cloud2; Eigen::Vector4f _origin; Eigen::Quaternionf orientaion; pcl::io::loadPCD...
5,703
38.611111
128
cpp
la3dm
la3dm-master/src/bgkoctomap/bgkoctree.cpp
#include "bgkoctree.h" #include <cmath> namespace la3dm { unsigned short OcTree::max_depth = 0; OcTreeHashKey node_to_hash_key(unsigned short depth, unsigned short index) { return (depth << 16) + index; } void hash_key_to_node(OcTreeHashKey key, unsigned short &depth, unsigned short &index)...
4,954
30.762821
119
cpp
la3dm
la3dm-master/src/bgkoctomap/bgkoctree_node.cpp
#include "bgkoctree_node.h" #include <cmath> namespace la3dm { /// Default static values float Occupancy::sf2 = 1.0f; float Occupancy::ell = 1.0f; float Occupancy::free_thresh = 0.3f; float Occupancy::occupied_thresh = 0.7f; float Occupancy::var_thresh = 1000.0f; float Occupancy::prior_A =...
2,122
32.698413
117
cpp
la3dm
la3dm-master/src/common/point3f.cpp
#include "point3f.h" #include <cassert> #include <math.h> #include <string.h> namespace la3dm { Vector3 &Vector3::rotate_IP(double roll, double pitch, double yaw) { double x, y, z; // pitch (around y) x = (*this)(0); z = (*this)(2); (*this)(0) = (float) (z * sin(pitch) + x ...
2,011
25.473684
74
cpp
la3dm
la3dm-master/src/common/point6f.cpp
#include "point6f.h" #include <cassert> #include <math.h> #include <string.h> namespace la3dm { // Vector3 &Vector3::rotate_IP(double roll, double pitch, double yaw) { // double x, y, z; // // pitch (around y) // x = (*this)(0); // z = (*this)(2); // (*this)(0) = (float) (z...
2,122
26.934211
128
cpp
la3dm
la3dm-master/src/gpoctomap/gpblock.cpp
#include "gpblock.h" #include <queue> #include <algorithm> namespace la3dm { std::unordered_map<OcTreeHashKey, point3f> init_key_loc_map(float resolution, unsigned short max_depth) { std::unordered_map<OcTreeHashKey, point3f> key_loc_map; std::queue<point3f> center_q; center_q.push(point3f...
6,729
41.0625
109
cpp
la3dm
la3dm-master/src/gpoctomap/gpoctomap.cpp
#include <algorithm> #include <pcl/filters/voxel_grid.h> #include "gpoctomap.h" #include "gpregressor.h" #include <iostream> using std::vector; //#define DEBUG true; #ifdef DEBUG #include <iostream> #define Debug_Msg(msg) {\ std::cout << "Debug: " << msg << std::endl; } #endif namespace la3dm { GPOctoMap::GP...
19,736
33.994681
130
cpp
la3dm
la3dm-master/src/gpoctomap/gpoctomap_server.cpp
#include <string> #include <iostream> #include <ros/ros.h> #include <pcl_ros/transforms.h> #include <pcl/filters/voxel_grid.h> #include "markerarray_pub.h" #include "gpoctomap.h" tf::TransformListener *listener; std::string frame_id("/map"); la3dm::GPOctoMap *map; la3dm::MarkerArrayPub *m_pub_occ, *m_pub_free; tf::V...
7,686
35.43128
177
cpp
la3dm
la3dm-master/src/gpoctomap/gpoctomap_static_node.cpp
#include <string> #include <iostream> #include <ros/ros.h> #include "gpoctomap.h" #include "markerarray_pub.h" void load_pcd(std::string filename, la3dm::point3f &origin, la3dm::PCLPointCloud &cloud) { pcl::PCLPointCloud2 cloud2; Eigen::Vector4f _origin; Eigen::Quaternionf orientaion; pcl::io::loadPCDF...
5,814
38.828767
133
cpp
la3dm
la3dm-master/src/gpoctomap/gpoctree.cpp
#include "gpoctree.h" #include <cmath> namespace la3dm { unsigned short OcTree::max_depth = 0; OcTreeHashKey node_to_hash_key(unsigned short depth, unsigned short index) { return (depth << 16) + index; } void hash_key_to_node(OcTreeHashKey key, unsigned short &depth, unsigned short &index) {...
4,952
30.954839
119
cpp
la3dm
la3dm-master/src/gpoctomap/gpoctree_node.cpp
#include "gpoctree_node.h" #include "gpregressor.h" #include <cmath> namespace la3dm { /// Default static values float Occupancy::sf2 = 1.0f; float Occupancy::ell = 1.0f; float Occupancy::noise = 0.01f; float Occupancy::l = 100.f; float Occupancy::max_ivar = 1000.0f; float Occupancy::min_i...
2,517
35.492754
117
cpp
label_propagation
label_propagation-master/README.md
# Implementations of label propagation like algorithms This is a set of scikit-learn compatible implementations of label propagation (LP) like algorithms. One can easily grid search and cross validate models using utils in scikit-learn. ## Implemented Algorithms * Harmonic Function (HMN) [Zhu+, ICML03] * Local and G...
4,475
25.329412
99
md
label_propagation
label_propagation-master/label_propagation.py
# coding=utf8 """ Graph-Based Semi-Supervised Learning (GBSSL) implementation. """ # Authors: Yuto Yamaguchi <yamaguchi.yuto@aist.go.jp> # Lisence: MIT import numpy as np from scipy import sparse from abc import ABCMeta, abstractmethod from sklearn.base import BaseEstimator, ClassifierMixin class Base(BaseEstimator,...
9,790
28.669697
173
py
label_propagation
label_propagation-master/main.py
import sys import argparse import numpy as np from scipy.sparse import csr_matrix from label_propagation import HMN,LGC,PARW,OMNI,CAMLP def read_graphfile(f): graph_data = np.genfromtxt(f, delimiter=' ', dtype=int) row = np.hstack([graph_data[:,0], graph_data[:,1]]) col = np.hstack([graph_data[:,1], graph_...
4,107
57.685714
149
py
label_propagation
label_propagation-master/sample.py
import numpy as np import networkx as nx from scipy import sparse from label_propagation import LGC,HMN,PARW,OMNIProp,CAMLP from sklearn.grid_search import GridSearchCV from sklearn.cross_validation import train_test_split G = nx.karate_club_graph() labels = {'Officer':0, 'Mr. Hi':1} nodes = np.array([(n,labels[attr['...
1,435
32.395349
140
py
trudy
trudy-master/main.go
package main import ( "crypto/tls" "encoding/hex" "flag" "fmt" "github.com/gorilla/websocket" "github.com/praetorian-inc/trudy/listener" "github.com/praetorian-inc/trudy/module" "github.com/praetorian-inc/trudy/pipe" "io" "log" "net" "net/http" "strings" "sync" ) var connectionCount uint var websocketCo...
10,282
24.77193
131
go
trudy
trudy-master/README.md
## Trudy Trudy is a transparent proxy that can modify and drop traffic for arbitrary TCP connections. Trudy can be used to programmatically modify TCP traffic for proxy-unaware clients. Trudy creates a 2-way "pipe" for each connection it proxies. The device you are proxying (the "client") connects to Trudy (but doesn'...
4,077
66.966667
803
md
trudy
trudy-master/module/module.go
package module import ( "crypto/tls" "encoding/hex" "github.com/praetorian-inc/trudy/pipe" "net" ) //Data is a thin wrapper that provides metadata that may be useful when mangling bytes on the network. type Data struct { FromClient bool //FromClient is true is the data sent is coming from the client (the ...
2,569
28.204545
117
go
trudy
trudy-master/listener/listener.go
package listener import ( "crypto/tls" "errors" "net" ) //The TrudyListener interface is used to listen for incoming connections and accept them. This is almost //the same as the typical Listener interface, except a net.Conn must be returned for Accept. This enables //Trudy to grab the original destination IP addr...
2,328
23.010309
105
go
trudy
trudy-master/pipe/pipe.go
//Package pipe defines the data structure used to manipulate, monitor, and create proxied connections. package pipe import ( "crypto/tls" "log" "net" "strconv" "sync" "syscall" "time" ) //Netfilter/iptables adds a tcp header to identify original destination. //Since all traffic is routed through trudy, we need...
9,506
32.241259
113
go
null
stanford_alpaca-main/README.md
<p align="center" width="100%"> <img src="assets/logo.png" alt="Stanford-Alpaca" style="width: 50%; min-width: 300px; display: block; margin: auto;"> </p> # Stanford Alpaca: An Instruction-following LLaMA Model [![Code License](https://img.shields.io/badge/Code%20License-Apache_2.0-green.svg)](https://github.com/tat...
14,461
52.562963
395
md
null
stanford_alpaca-main/datasheet.md
# Alpaca Instruction Following Dataset ## Motivation ### For what purpose was the dataset created? To enable more open-source research on instruction following large language models, we use generate 52K instruction-followng demonstrations using OpenAI's text-davinci-003 model. ### Who created the dataset - [Rohan Tao...
5,585
53.764706
233
md
null
stanford_alpaca-main/generate_instruction.py
""" batch_selfinstruct_generate.py run: python -m generate_instruction generate_instruction_following_data \ --output_dir ./ \ --num_instructions_to_generate 10 \ --model_name="text-davinci-003" \ """ import time import json import os import random import re import string from functools import partial from multi...
8,381
37.449541
137
py
null
stanford_alpaca-main/model_card.md
--- # Alpaca Model Card ## Model details **Organization developing the model** Stanford Hashimoto Group **Model date** Alpaca was trained in March 2023 **Model version** This is version 1 of the model. **Model type** Alpaca models are instruction-following models finetuned from LLaMA models. **More information** P...
2,089
39.192308
157
md
null
stanford_alpaca-main/train.py
# Copyright 2023 Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
8,263
36.058296
119
py
null
stanford_alpaca-main/utils.py
import dataclasses import logging import math import os import io import sys import time import json from typing import Optional, Sequence, Union import openai import tqdm from openai import openai_object import copy StrOrOpenAIObject = Union[str, openai_object.OpenAIObject] openai_org = os.getenv("OPENAI_ORG") if o...
6,481
36.252874
117
py
null
stanford_alpaca-main/weight_diff.py
# Copyright 2023 Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
6,137
37.603774
126
py
null
CARL-main/.codecov.yml
#see https://github.com/codecov/support/wiki/Codecov-Yaml codecov: require_ci_to_pass: yes coverage: # 2 = xx.xx%, 0 = xx% precision: 2 # https://docs.codecov.com/docs/commit-status status: # We want our total main project to always remain above 87% coverage, a # drop of 0.20% is allowed. It shoul...
1,158
23.659574
83
yml
null
CARL-main/.pre-commit-config.yaml
# If you see me, please update my `rev` field using the provided links # Click the repo and update to latest tags. # If things break on update, raise an issue repos: - repo: https://github.com/PyCQA/isort rev: 5.12.0 hooks: - id: isort name: isort imports carl files: carl/.* arg...
1,439
21.857143
74
yaml
null
CARL-main/.readthedocs.yaml
# use version 2, which is now recommended version: 2 build: os: ubuntu-20.04 tools: python: "3.9" # Build from the docs/ directory with Sphinx sphinx: configuration: docs/conf.py # build all formats: all # Explicitly set the version of Python and its requirements python: install: - method: pip ...
370
15.130435
59
yaml
null
CARL-main/README.md
<img align="left" width="80" src="./docs/source/figures/CARL_logo.png" alt="CARL"> # – The Benchmark Library CARL (context adaptive RL) provides highly configurable contextual extensions to several well-known RL environments. It's designed to test your agent's generalization capabilities in all scenarios where intra-t...
4,675
45.76
187
md
null
CARL-main/changelog.md
# 0.2.1 - Add Finger (DMC) env - Readd RNA env (#78) # 0.2.0 - Integrate dm control environments (#55) - Add context masks to only append those to the state (#54) - Extend classic control environments to parametrize initial state distributions (#52) - Remove RNA environment for maintenance (#61) - Fixed pre-commit (my...
380
26.214286
86
md
null
CARL-main/setup.py
import os import setuptools from carl import ( author, author_email, description, package_name, project_urls, url, version, ) HERE = os.path.dirname(os.path.realpath(__file__)) def read_file(filepath: str) -> str: with open(filepath, "r", encoding="utf-8") as fh: return fh.r...
2,639
22.157895
66
py
null
CARL-main/.github/workflows/dist.yaml
name: dist-check on: # Manually triggerable in github workflow_dispatch: # When a push occurs on either of these branches push: branches: - main - development # When a push occurs on a PR that targets these branches pull_request: branches: - main - development jobs: dis...
1,391
21.451613
65
yaml
null
CARL-main/.github/workflows/precommit.yaml
name: pre-commit on: # Manually triggerable in github workflow_dispatch: # When a push occurs on either of these branches push: branches: - main - development # When a push occurs on a PR that targets these branches pull_request: branches: - main - development jobs: run...
731
17.3
58
yaml
null
CARL-main/.github/workflows/tests.yaml
name: Tests on: # Manually triggerable in github workflow_dispatch: # When a push occurs on either of these branches push: branches: - main - development # When a push occurs on a PR that targets these branches pull_request: branches: - main - development schedule: ...
3,330
25.436508
120
yaml
null
CARL-main/carl/__init__.py
__license__ = "Apache-2.0 License" __version__ = "0.2.0" __author__ = "Carolin Benjamins, Theresa Eimer, Frederik Schubert, André Biedenkapp, Aditya Mohan, Sebastian Döhler" import datetime name = "CARL" package_name = "ContextuaRL" author = __author__ author_email = "benjamins@tnt.uni-hannover.de" description = "C...
683
28.73913
116
py
null
CARL-main/carl/context/__init__.py
0
0
0
py
null
CARL-main/carl/context/augmentation.py
from typing import Any, List, Union import numpy as np def add_gaussian_noise( default_value: Union[float, List[float]], percentage_std: Union[float, Any] = 0.01, random_generator: np.random.Generator = None, ) -> Union[float, Any]: """ Add gaussian noise to default value. Parameters ---...
1,494
35.463415
119
py
null
CARL-main/carl/context/sampling.py
# flake8: noqa: W605 from typing import Any, Dict, List, Tuple import numpy as np from scipy.stats import norm from carl import envs from carl.utils.types import Context, Contexts def get_default_context_and_bounds( env_name: str, ) -> Tuple[Dict[Any, Any], Dict[Any, Any]]: """ Get context feature defau...
7,309
38.301075
120
py
null
CARL-main/carl/context/selection.py
from __future__ import annotations from abc import abstractmethod from typing import Any, Callable, List, Optional, Tuple import numpy as np from carl.utils.types import Context, Contexts class AbstractSelector(object): """ Base class for context selectors. Context is selected when calling `select`, n...
4,448
25.640719
102
py
null
CARL-main/carl/context/utils.py
from typing import Any, Dict, List, Tuple, Type import numpy as np def get_context_bounds( context_keys: List[str], context_bounds: Dict[str, Tuple[float, float, Type[Any]]] ) -> Tuple[np.ndarray, np.ndarray]: """ Get context bounds for specific features. Could add sophisticated method here. Pa...
2,130
30.80597
113
py
null
CARL-main/carl/envs/__init__.py
# flake8: noqa: F401 # Modular imports import importlib.util as iutil import warnings # Classic control is in gym and thus necessary for the base version to run from carl.envs.classic_control import * # Environment loading box2d_spec = iutil.find_spec("Box2D") found = box2d_spec is not None if found: from carl.en...
1,188
25.422222
117
py
null
CARL-main/carl/envs/carl_env.py
from __future__ import annotations from typing import Any, Dict, List, Mapping, Optional, Tuple, Type, Union import importlib import inspect import json import os from types import ModuleType import gym import numpy as np from gym import Wrapper, spaces from carl.context.augmentation import add_gaussian_noise from ...
23,659
39.934256
118
py
null
CARL-main/carl/envs/box2d/__init__.py
# flake8: noqa: F401 from carl.envs.box2d.carl_bipedal_walker import ( CONTEXT_BOUNDS as CARLBipedalWalkerEnv_bounds, ) from carl.envs.box2d.carl_bipedal_walker import ( DEFAULT_CONTEXT as CARLBipedalWalkerEnv_defaults, ) from carl.envs.box2d.carl_bipedal_walker import CARLBipedalWalkerEnv # Contextenvs.s and ...
867
36.73913
88
py
null
CARL-main/carl/envs/box2d/carl_bipedal_walker.py
from typing import Dict, List, Optional, Union import numpy as np from Box2D.b2 import edgeShape, fixtureDef, polygonShape from gym.envs.box2d import bipedal_walker from gym.envs.box2d import bipedal_walker as bpw from carl.context.selection import AbstractSelector from carl.envs.carl_env import CARLEnv from carl.uti...
10,598
35.42268
91
py
null
CARL-main/carl/envs/box2d/carl_lunarlander.py
from typing import Dict, List, Optional, Tuple, TypeVar, Union from gym import Wrapper from gym.envs.box2d import lunar_lander from carl.context.selection import AbstractSelector from carl.envs.carl_env import CARLEnv from carl.utils.trial_logger import TrialLogger from carl.utils.types import Context, Contexts ObsT...
6,349
34.082873
91
py
null
CARL-main/carl/envs/box2d/carl_vehicle_racing.py
from typing import Any, Dict, List, Optional, Tuple, Type, Union import numpy as np import pyglet from gym.envs.box2d import CarRacing from gym.envs.box2d.car_dynamics import Car from pyglet import gl from carl.context.selection import AbstractSelector from carl.envs.box2d.parking_garage.bus import AWDBus # as Car f...
10,620
40.65098
118
py