Skip to content

Instantly share code, notes, and snippets.

View rafaneri's full-sized avatar
🎯
Focusing

Rafael Neri rafaneri

🎯
Focusing
  • R&D Software
  • Brasil
View GitHub Profile
@rafaneri
rafaneri / package.sh
Created September 23, 2016 17:27
Shell Script to create ROS packages.
#!/usr/bin/env sh
SOURCE_DIR=$(cd "`dirname "$0"`" > /dev/null && pwd)
cd $SOURCE_DIR
cd ../..
SOURCE_DIR=$(cd "`dirname "$1"`" > /dev/null && pwd)
echo "********************************"
echo " CREATE CATKIN_PACKAGE "
echo "********************************"
@rafaneri
rafaneri / object.sh
Created September 23, 2016 17:26
Shell Script to create ROS messages, services, actions and executables, including the paths in CMakeLists.txt
#!/bin/bash
_file="CMakeLists.txt"
_temp_file="CMakeLists.tmp"
_pattern=
_object=
_object_name=
cmakefile_executable()
{
@rafaneri
rafaneri / mbed_init
Created September 6, 2016 16:25
A shell program to start a gcc4mbed based project - $sudo ln -s /YOUR_PATH/mbed_init /bin/mbed_init
#!/bin/bash
_makefile="makefile"
_main="main.cpp"
_sync_script="script.sh"
_json_config="c_cpp_properties.json"
_vscode=".vscode"
create_makefile() {
echo "PROJECT := $project" >> "$_makefile"