Skip to content

Instantly share code, notes, and snippets.

View grassjelly's full-sized avatar
🎯
Focusing

Juan Miguel Jimeno grassjelly

🎯
Focusing
View GitHub Profile
@grassjelly
grassjelly / bringup_kinetic.launch
Last active April 27, 2020 01:20
Launch file to keep imu_filter_madgwick from using sensor_msgs/MagneticField/ on distros higher than Indigo
<launch>
<!--serial communication between arduino and pc via usb /-->
<node name="arduino_serial_node" pkg="rosserial_python" type="serial_node.py" output="screen">
<param name="port" value="/dev/linobase" />
<param name="baud" value="57600" />
</node>
<node pkg="ros_arduino_imu" type="raw_imu_bridge_node" name="raw_imu_bridge" output="screen" respawn="false">
<rosparam>
imu/gyroscope_bias: {x: -0.013545, y: 0.056887, z: 0.012693 }
@grassjelly
grassjelly / install_minimal.sh
Created December 14, 2016 17:21
linorobot minimal installation
#!/bin/sh
cd ~/catkin_ws/src
git clone https://github.com/grassjelly/lino_msgs.git
cd ~/catkin_ws/
catkin_make
cd ~/catkin_ws/src
git clone -b minimal https://git@github.com/grassjelly/linorobot.git
cd ~/catkin_ws/
catkin_make
@grassjelly
grassjelly / StandardFirmataForATH0.ino
Created April 20, 2017 02:36 — forked from edgarsilva/StandardFirmataForATH0.ino
Modified firmata protocol that works on the arduino YUN linux side communicating to the arduino side using the ttyATH0 serialport interface.
/*
* Firmata is a generic protocol for communicating with microcontrollers
* from software on a host computer. It is intended to work with
* any host computer software package.
*
* To download a host software package, please clink on the following link
* to open the download page in your default browser.
*
* http://firmata.org/wiki/Download
*/
; [env:teensy31]
; platform = teensy
; framework = arduino
; board = teensy31
;[env:promini]
;platform = atmelavr
;framework = arduino
;board = pro16MHzatmega328
@grassjelly
grassjelly / install.sh
Created May 23, 2017 14:31
nodejs installation
#!/usr/bin/env bash
sudo apt-get install -y nodejs
sudo apt-get install -y npm
sudo ln -s `which nodejs` /usr/local/bin/node
echo "NodeJS installation done."
#define LEDPIN 13
void setup() {
Serial1.begin(26315, SERIAL_9N1);
Serial.begin(115200);
}
char c = ' ';
signed int sp=0;
@grassjelly
grassjelly / RapidXmlExample.c
Created July 12, 2017 07:07 — forked from JSchaenzle/RapidXmlExample.c
RapidXml example parsing beer journal
#include <string.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <vector>
#include "rapidxml-1.13/rapidxml.hpp"
using namespace rapidxml;
using namespace std;
#include <ros/ros.h>
#include <tf/transform_broadcaster.h>
#include <nav_msgs/Odometry.h>
#include <lino_msgs/Velocities.h>
#include <sensor_msgs/Imu.h>
#include <math.h>
double g_vel_x = 0.0;
double g_vel_y = 0.0;
<launch>
<node pkg="LH_laser_driver" type="LH_laser_publisher" name="LH_laser_driver">
<param name="port" value="/dev/ttyUSB0"/>
<param name="baud_rate" value="230400"/>
<param name="firmware_version" value="2"/>
<param name="frame_id" value="laser"/>
</node>
</launch>
@grassjelly
grassjelly / INSTALL.md
Created March 27, 2018 17:58 — forked from vfdev-5/INSTALL.md
Jackal simulation in ROS kinetic

Install dependencies :

This is manual way to install necessary packages :

sudo apt-get install ros-kinetic-robot-localization ros-kinetic-controller-manager ros-kinetic-joint-state-controller ros-kinetic-diff-drive-controller ros-kinetic-gazebo-ros ros-kinetic-gazebo-ros-control ros-kinetic-gazebo-plugins             ros-kinetic-lms1xx ros-kinetic-pointgrey-camera-description ros-kinetic-roslint ros-kinetic-amcl ros-kinetic-gmapping      ros-kinetic-map-server ros-kinetic-move-base ros-kinetic-urdf ros-kinetic-xacro ros-kinetic-message-runtime ros-kinetic-topic-tools ros-kinetic-teleop-twist-joy

If you want to use rosdep and install all dependencies (for example for doc generation etc), the skip this step.

Create a workspace and clone sources