Skip to content

Instantly share code, notes, and snippets.

View pestefo's full-sized avatar
🏠
Working from home

Pablo Estefó pestefo

🏠
Working from home
View GitHub Profile
/******** Codigo que va en el {% block js%} del base.html ******/
$('#Ingreso').ready(function(){
$.ajaxSetup ({
cache: false
});
// ORIGINAL: var ajax_load = "<img src='img/load.gif' alt='loading...' />";
// Imagen o texto a mostrar mientras carga la URL... podría ser un spinner o algo asi
var ajax_load = "<p>BUENAAAAAAA</p>";
// Url a donde se va a dirigir
@pestefo
pestefo / dragNodeAndMoveEdge.st
Last active December 20, 2015 19:09
Making edges follow their nodes
RODraggable>>initializeElement: element
| svgElement |
svgElement := element shape svgElement.
svgElement
drag: [ :dx :dy |
| bboxCurrent |
bboxCurrent := svgElement getBBox.
svgElement translate: ((element position x) - (bboxCurrent x) + dx) y: ((element position y) -(bboxCurrent y) + dy).
]
|builder|
builder := ROPunchcardBuilder new.
builder addModels: #( 'Sed' 'molestie' 'nec' 'nisi quis' 'vestibulum' 'Morbi tempus' 'luctus' 'commodo' ).
builder addMetric: [:word | word size] namedAs: 'length'.
builder addMetric: [:word | word size * 3 ] namedAs: 'length * 3'.
builder addMetric: [:word | word size / 2 ] namedAs: 'length / 2'.
builder minColor: Color green.
builder maxColor: Color red.
builder open.
@pestefo
pestefo / testing-robulab.md
Last active August 29, 2015 14:03
Testing Robulab v 0.1

#Testing Robulab

In this tutorial we will make basic tests to assert that both the robulab robot and the laptop are configured correctly. We will consider as well configured if we can start a PhaROS node that handle robulab robot, so we can publish motion messages through rostopic pub command and make it to move.

Pre-conditions

  1. Robulab charged and switched on.
  2. Laptop with Ubuntu 14.04
  3. ROS Indigo installed on laptop (How to install ROS Indigo in Ubuntu 14.04)
  4. Your .bashrc file you should look like this:
@pestefo
pestefo / testing-robulab.md
Created July 2, 2014 10:55
Testing Robulab v1

#Testing Robulab

In this tutorial we will make basic tests to assert that both the robulab robot and the laptop are configured correctly. We will consider as well configured if we can start a PhaROS node that handle robulab robot, so we can publish motion messages through rostopic pub command and make it to move.

Pre-conditions

  1. Robulab charged and switched on.
  2. Laptop with Ubuntu 14.04
  3. ROS Indigo installed on laptop (How to install ROS Indigo in Ubuntu 14.04)
  4. Your .bashrc file you should look like this:
@pestefo
pestefo / testing-robulab.md
Last active August 29, 2015 14:03
Testing Robulab v.2

#Testing Robulab

In this tutorial we will make basic tests to assert that both the robulab robot and the laptop are configured correctly. We will consider as well configured if we can start a PhaROS node that handle robulab robot, so we can publish motion messages through rostopic pub command and make it to move.

Pre-conditions

  1. Robulab charged and switched on.
  2. Laptop with Ubuntu 14.04
  3. ROS Indigo installed on laptop (Read: How to install ROS Indigo in Ubuntu 14.04)
  4. Your .bashrc file you should look like this:
@pestefo
pestefo / gist:1084620e53f55e939f7b
Created August 22, 2014 18:24
Roslaunch error
roslaunch -v /tmp/generated-launch2.launch... logging to /home/turtlebot/.ros/log/b070455c-2a28-11e4-9567-2880230463ef/roslaunch-achao-29079.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
... loading XML file [/opt/ros/indigo/etc/ros/roscore.xml]
... executing command param [rosversion roslaunch]
Added parameter [/rosversion]
... executing command param [rosversion -d]
Added parameter [/rosdistro]
CairePackage>>scriptExplorationMaster
process:= PhaROSSystemLauncher instance launch: [: spec |
spec gmapping.
spec moveBase.
spec exploreNode.
spec rviz.
].
<launch >
<node name="smoother_by_pass" type="relay" args=" /raw_command_velocity /command_velocity " pkg="topic_tools" respawn="true" />
<node name="pose_relay" type="relay" args=" /kompai2/pose /pose " pkg="topic_tools" respawn="true" />
<node name="scan_relay" type="relay" args=" /kompai/scan /scan " pkg="topic_tools" respawn="true" />
<node name="tf_out_relay" type="relay" args=" /pharos/out/tf /tf " pkg="topic_tools" respawn="true" />
<node name="tf_in_relay" type="relay" args=" /tf /pharos/in/tf " pkg="topic_tools" respawn="true" />
<node name="base_links_to_laser" type="static_transform_publisher" args=" 0 0 0 0 0 0 /base_link /laser 100" pkg="tf" respawn="true" />
<node name="odom_to_base_links" type="static_transform_publisher" args=" 0 0 0 0 0 0 /odom /base_link 100" pkg="tf" respawn="true" />
</launch>
@pestefo
pestefo / robulab-lrp.md
Last active August 29, 2015 14:05
Robulab started to learn LRP

#Robulab started to learn LRP

The objective of this tutorial is to be able to create a behaviour for Robulab described using Live Robot Programming.

VIDEO PENDING

#Steps

  1. Follow the instructions to have Robulab working specified in this tutorial.