Skip to content

Instantly share code, notes, and snippets.

View ammarnajjar's full-sized avatar

Ammar Najjar ammarnajjar

View GitHub Profile
@ammarnajjar
ammarnajjar / vimrc
Last active July 19, 2016 22:24
vimrc
" => Header ---------------------- {{{
" File: vimrc.vim
" Author: Ammar Najjar <najjarammar@gmail.com>
" Description: My vim/neovim configurations file
" Last Modified: July 20, 2016
" }}}
" => General ---------------------- {{{
" set by default in neovim
set incsearch
set ttyfast
#!/usr/bin/bash
DIR="indigo_full"
mkdir $DIR
cd $DIR
echo "#
# ROS Indigo with gazebo Dockerfile
#
import os
import ycm_core
from clang_helpers import PrepareClangFlags
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = ''
@ammarnajjar
ammarnajjar / catkin_ws_indigo_setup.sh
Last active June 3, 2016 12:31
catkin workspace indigo setup bash script for lwa4p robot arm
#!/bin/bash
# Ubuntu 14.04 64-bit
# ROS-Indigo (the most recent update)
# SocketCAN(ESD CAN card (PLX90xx), sja1000 kernel driver)
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net --recv-key 0xB01FA116
# install Indigo and some dep packages on a fresh ubuntu 14.04
@ammarnajjar
ammarnajjar / lwap4_logs.markdown
Last active March 27, 2019 14:26
Error logs for an issue faced while initializing schunk_lwa4p robot arm under ubuntu 14.04 and ros-indigo.

Powerball schunk lwa4p issue #59 related logs

After preparing ros-indigo and catkin workspace as descriped in catkin_ws_indigo_setup.sh :

can0 info

sudo ifconfig can0
@ammarnajjar
ammarnajjar / schunk_lwa4p_firmware_info.markdown
Last active June 1, 2016 10:06
My schunk lwa4p robot arm firmware information posted from COBview under windows 7.

COBview CANopen Object Viewer ouputs

Modules list:

modules list

Manufacturer device name

SCHUNK ERBo.

manufacturer

@ammarnajjar
ammarnajjar / comment_lost_arbitation.patch
Created June 2, 2016 09:04
Patch applied to comment out the handling of lost arbitation error in ros_industrial/ros_canopen.
From 07e4e29efe01b4dd47db88f4f547057445bc2574 Mon Sep 17 00:00:00 2001
From: Ammar Najjar <anajjar@iat.uni-bremen.de>
Date: Thu, 2 Jun 2016 11:00:47 +0200
Subject: [PATCH] comment lost arbitation error handling
---
socketcan_interface/include/socketcan_interface/socketcan.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/socketcan_interface/include/socketcan_interface/socketcan.h b/socketcan_interface/include/socketcan_interface/socketcan.h
@ammarnajjar
ammarnajjar / lwa4p_logs_02.markdown
Last active June 2, 2016 09:12
Error logs (Nr. 2) for an issue faced while initializing schunk_lwa4p robot arm under ubuntu 14.04 and ros-indigo.

Powerball schunk lwa4p (controller problems;) related logs

After preparing ros-indigo and catkin workspace as descriped in catkin_ws_indigo_setup.sh , then applying this patch to comment lost arbitation error handling in ros_canopn package source:

can0 info

sudo ifconfig can0
@ammarnajjar
ammarnajjar / lwa4p_logs_03.markdown
Created June 2, 2016 09:54
Error logs (Nr. 3) for an issue faced while initializing schunk_lwa4p robot arm under ubuntu 14.04 and ros-indigo.

Powerball schunk lwa4p ESD CAN_USB/2 related logs

After preparing ros-indigo and catkin workspace as descriped in catkin_ws_indigo_setup.sh , then applying this patch to comment lost arbitation error handling in 'ros_canopn' package source, and using a different CAN dongle (ESD CAN_USB/2):

can2 info

sudo ifconfig can2
@ammarnajjar
ammarnajjar / moveit_install.sh
Created June 2, 2016 16:45
Moveit installation instructions tested on ubuntu 14.04
#!/bin/bash
# full documentation: http://moveit.ros.org/install/
# OS: ubuntu 14.04
sudo apt-get update && sudo apt-get install -y python-wstool
mkdir -p $HOME/moveit/src
cd $HOME/moveit/src
echo ">> Current directory: $(pwd)"