Skip to content

Instantly share code, notes, and snippets.

View fran6co's full-sized avatar

Francisco Facioni fran6co

View GitHub Profile

Keybase proof

I hereby claim:

  • I am fran6co on github.
  • I am fran6co (https://keybase.io/fran6co) on keybase.
  • I have a public key whose fingerprint is 3B1D 2FD9 D92D 306B C966 0AB7 B8C8 3EDE 02F3 F435

To claim this, I am signing this object:

@fran6co
fran6co / vtk7.patch
Last active June 8, 2016 18:52
PCL 1.7.2 vtk7 support
From 9cfb00970f7d46f1732149d4c50ba3646f038b6c Mon Sep 17 00:00:00 2001
From: Sergey Alexandrov <alexandrov88@gmail.com>
Date: Thu, 11 Feb 2016 22:19:01 +0100
Subject: [PATCH 1/4] Use vtkTextureUnitManager to query the number of
available texture units
The new OpenGL2 backend does not have vktOpenGLHardwareSupport class
which was used before.
---
visualization/src/pcl_visualizer.cpp | 15 +++++++--------
int main () {
UDPSocket sock (9000);
sock.joinGroup("239.0.1.1");
const int PACK_SIZE = 4096;
const int BUF_LEN = 65540;
char buffer[BUF_LEN];
while(true) {
unsigned short sourcePort;
--- a/visualization/include/pcl/visualization/vtk/vtkRenderWindowInteractorFix.mm 2015-04-07 17:06:23.000000000 -0300
+++ b/visualization/include/pcl/visualization/vtk/vtkRenderWindowInteractorFix.mm 2015-04-07 17:10:59.000000000 -0300
@@ -185,11 +185,19 @@
vtkCocoaRenderWindow *renWin = vtkCocoaRenderWindow::SafeDownCast (this->GetRenderWindow ());
if (renWin != NULL)
{
+#if ((VTK_MAJOR_VERSION == 6) && (VTK_MINOR_VERSION >= 2) || (VTK_MAJOR_VERSION > 7))
+ vtkCocoaServerFix *server = reinterpret_cast<vtkCocoaServerFix*> (renWin->GetCocoaServer ());
+#else
vtkCocoaServerFix *server = reinterpret_cast<vtkCocoaServerFix*> (this->GetCocoaServer ());
diff --git a/apps/include/pcl/apps/impl/dominant_plane_segmentation.hpp b/apps/include/pcl/apps/impl/dominant_plane_segmentation.hpp
index 7863af4..2a3fe5b 100644
--- a/apps/include/pcl/apps/impl/dominant_plane_segmentation.hpp
+++ b/apps/include/pcl/apps/impl/dominant_plane_segmentation.hpp
@@ -33,9 +33,11 @@
*
*/
+#ifndef Q_MOC_RUN
#pragma once
<?php
$gatos = array(
array(
"id" => 1,
"name" => "Titus",
"fecha" => new \DateTime(),
),
array(
"id" => 2,
class SittingDuck extends BaseRobot
onInit:() ->
#Nothing
tr = new SittingDuck("Sitting Duck")
class SuperWallBot extends BaseRobot
onInit:() ->
@turnLeft(@heading % 90)
@turnTurretLeft(Infinity)
onIdle:() ->
toWall = null
if @heading == 0 or @heading == 180
toWall = @ahead(Math.max(@arenaSize.width - @x, @x) - 28)
@fran6co
fran6co / robot.coffee
Last active December 27, 2015 12:59
Scan bot
class ScanBot extends BaseRobot
run: () ->
@shoot()
@move_forwards 10, =>
@move_backwards 10
@turn_left 45, =>
@_run()
tr = new ScanBot("Scan bot")
@fran6co
fran6co / robot.coffee
Created November 6, 2013 02:58
TestRobot
class TestRobot1 extends BaseRobot
run: () ->
@move_forwards 10, =>
@move_backwards 10
@turn_left 45, =>
@_run()
tr = new TestRobot1("My first test robot")