Skip to content

Instantly share code, notes, and snippets.

View posilva's full-sized avatar
💭
I may be slow to respond.

Pedro Marques da Silva posilva

💭
I may be slow to respond.
View GitHub Profile
@posilva
posilva / package.xml
Created June 23, 2014 13:34
autopilot_commons_dependecy_missing_graph
<?xml version="1.0"?>
<package>
<name>seagull_autopilot</name>
<version>0.1.2</version>
<description>The seagull_autopilot package</description>
<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Example: -->
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> -->
<maintainer email="[email protected]">Pedro Marques da Silva</maintainer>
private static String GetExecutionPath() {
String absolutePath = JavaApplication1.class.getProtectionDomain().getCodeSource().getLocation().getPath();
absolutePath = absolutePath.substring(0, absolutePath.lastIndexOf("/"));
absolutePath = absolutePath.replaceAll("%20", " "); // Surely need to do this here
return absolutePath;
}
@posilva
posilva / yocto-build-cfg
Created February 4, 2014 16:29
python-empy-native- Error
Build Configuration:
BB_VERSION = "1.21.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-13.04"
TARGET_SYS = "i586-poky-linux"
MACHINE = "genericx86"
DISTRO = "poky"
DISTRO_VERSION = "1.5+snapshot-20140204"
TUNE_FEATURES = "m32 core2"
TARGET_FPU = ""
@posilva
posilva / ETPROSHandler.java
Last active August 29, 2015 13:56
ROSJAVA Delegate Pattern
package pt.edu.academiafa.rosjava.example;
import org.ros.internal.message.Message;
import org.ros.node.ConnectedNode;
import org.ros.node.topic.Publisher;
import std_msgs.String;
/**
*
* @author posilva
@posilva
posilva / bblayers.conf
Last active January 1, 2016 03:59
core-image-ros-world - Oroco kdl linking error
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "6"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
/data/build/yocto/poky/meta \
/data/build/yocto/poky/meta-yocto \
@posilva
posilva / build_gradle_update
Created December 3, 2013 20:28
rosjava_core install failed
/*
* Copyright (C) 2011 Google Inc.
*
* 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/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@posilva
posilva / gradlew_install_info
Created December 3, 2013 20:25
Rosjava_core install failed
Connected to the daemon. Dispatching Build{id=b94930ff-3e4e-4349-8083-7a4c3193d820.1, currentDir=/home/posilva/Sistema/Develop/projectos/Testing/rosjava-gen/rosjava_core} request.
The client will now receive all logging from the daemon (pid: 16683). The daemon log file: /home/posilva/.gradle/daemon/1.8/daemon-16683.out.log
Executing build with daemon context: DefaultDaemonContext[uid=6716db20-0134-4c21-bd15-07f5930bca79,javaHome=/usr/lib/jvm/java-6-openjdk-amd64,daemonRegistryDir=/home/posilva/.gradle/daemon,pid=16683,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8]
Starting Build
Settings evaluated using settings file '/home/posilva/Sistema/Develop/projectos/Testing/rosjava-gen/rosjava_core/settings.gradle'.
Projects loaded. Root project using build file '/home/posilva/Sistema/Develop/projectos/Testing/rosjava-gen/rosjava_core/build.gradle'.
Included projects: [root project 'rosjava_core', project ':apache_xmlrpc_client', project ':apache_x