Skip to content

Instantly share code, notes, and snippets.

Raaj soulslicer

Block or report user

Report or block soulslicer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View opt.cpp
static Eigen::Matrix4Xf findCameraIntersectionsOpt2(const Datum& cam_data, const std::vector<int>& good_inds, const std::vector<Point2D>& pts)
{
// Empty Matrix - Number of points of size rows
Eigen::Matrix4Xf design_pts(4, cam_data.imgw);
int valid_points = 0;
// Calculate camera ray intersections for design points
Eigen::Vector2f p0(0, 0);
// Store angles
View find_cam.cpp
static Eigen::Matrix4Xf findCameraIntersectionsOpt(const Datum& cam_data, const std::vector<int>& good_inds, const std::vector<Point2D>& pts)
{
// ASK Question
// What does imgh actually refer to. Since we know the camera is rotated. Should I be using imgw
// I have changed it to imgw
// Empty Matrix - Number of points of size rows
Eigen::Matrix4Xf design_pts(4, cam_data.imgw);
int valid_points = 0;
View gist:439960753bfe144ade3bace78fbc5ca2
import numpy as np
import matplotlib.patches as patches
class BSpline():
def __init__(self):
pass
self.warp = 4.
self.count = 26*2
@soulslicer
soulslicer / bspline.py
Last active Oct 4, 2019
B Spline Pure Numpy
View bspline.py
import numpy as np
import matplotlib.patches as patches
class BSpline():
def __init__(self):
pass
self.warp = 4.
self.count = 26*2
@soulslicer
soulslicer / rospatch.patch
Created Sep 26, 2019
Patch for Ros bridge
View rospatch.patch
diff --git a/carla_ros_bridge/src/carla_ros_bridge/bridge.py b/carla_ros_bridge/src/carla_ros_bridge/bridge.py
index 6a77453..0057229 100755
--- a/carla_ros_bridge/src/carla_ros_bridge/bridge.py
+++ b/carla_ros_bridge/src/carla_ros_bridge/bridge.py
@@ -367,8 +367,9 @@ class CarlaRosBridge(object):
elif carla_actor.type_id.startswith("sensor"):
if carla_actor.type_id.startswith("sensor.camera"):
if carla_actor.type_id.startswith("sensor.camera.rgb"):
+ if carla_actor.attributes["role_name"] == "noros": return None
actor = RgbCamera(
View patch.patch
diff --git a/PythonAPI/carla/setup.py b/PythonAPI/carla/setup.py
index da5bbfb..fec897c 100755
--- a/PythonAPI/carla/setup.py
+++ b/PythonAPI/carla/setup.py
@@ -56,7 +56,7 @@ def get_libcarla_extensions():
extra_compile_args += ['-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=false']
else:
extra_link_args += ['-lpng', '-ljpeg', '-ltiff']
- extra_compile_args += ['-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=true']
+ extra_compile_args += ['-DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=false']
View test.py
#!/usr/bin/env python
# Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de
# Barcelona (UAB).
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
import glob
import os
@soulslicer
soulslicer / mac_patch.txt
Created May 21, 2019
Mac Patch OpenCL Caffe
View mac_patch.txt
diff --git a/cmake/Modules/FindvecLib.cmake b/cmake/Modules/FindvecLib.cmake
index 7459f623..9c5ee818 100644
--- a/cmake/Modules/FindvecLib.cmake
+++ b/cmake/Modules/FindvecLib.cmake
@@ -12,13 +12,17 @@ endif()
set(__veclib_include_suffix "Frameworks/vecLib.framework/Versions/Current/Headers")
-find_path(vecLib_INCLUDE_DIR vecLibTypes.h
+exec_program(xcode-select ARGS -print-path OUTPUT_VARIABLE CMAKE_XCODE_DEVELOPER_DIR)
View lstm.prototxt
name: "LSTM"
input: "data"
# T = 320 time_steps, N = 1 streams, 1-D data
input_shape { dim: 320 dim: 1 dim: 1}
input: "clip"
input_shape { dim: 320 dim: 1 }
input: "label"
input_shape { dim: 320 dim: 1 }
layer {
You can’t perform that action at this time.