Skip to content

Instantly share code, notes, and snippets.

View bsamadi's full-sized avatar

Behzad Samadi bsamadi

View GitHub Profile
@bsamadi
bsamadi / Arduino
Last active August 29, 2015 14:02
# Hardware
## Arduino
1. [Uno](http://www.google.com/url?q=http%3A%2F%2Farduino.cc%2Fen%2FMain%2FArduinoBoardUno&sa=D&sntz=1&usg=AFQjCNE5J_dgU5r6HvlD6KxqQO3_pAPwFw)
* [Parts List](http://www.google.com/url?q=http%3A%2F%2Fwiki.hackspace.org.uk%2Fwiki%2FProject%3AUACs&sa=D&sntz=1&usg=AFQjCNE7wzk8CPi0485K3zLEdFF27j_UhQ)
2. [Uno
SMD](http://www.google.com/url?q=http%3A%2F%2Farduino.cc%2Fen%2FMain%2FArduinoBoardUno&sa=D&sntz=1&usg=AFQjCNE5J_dgU5r6HvlD6KxqQO3_pAPwFw)
3. [Mega](http://www.google.com/url?q=http%3A%2F%2Farduino.cc%2Fen%2FMain%2FArduinoBoardMega2560&sa=D&sntz=1&usg=AFQjCNFUaqlLuoIYG44qZXYNp_JRRnyZAw)
4. [Bluetooth](http://www.google.com/url?q=http%3A%2F%2Farduino.cc%2Fen%2FMain%2FArduinoBoardBluetooth&sa=D&sntz=1&usg=AFQjCNFhZfe_bkQHrbaEIdofk6bS2MGIKQ)
@bsamadi
bsamadi / Startup
Last active February 23, 2016 20:10
# Iran
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMX_COMPAT_32 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files (x86)\MATLAB\R2015b\extern\include" -I"C:\Program Files (x86)\MATLAB\R2015b\simulink\include" C:\Users\bsamadi\source\repos\csfunc\src\csfunc.c /FoC:\Users\bsamadi\source\repos\csfunc\src\csfunc.obj
link /nologo /manifest /DLL /EXPORT:mexFunction C:\Users\bsamadi\source\repos\csfunc\src\csfunc.obj /LIBPATH:"C:\Program Files (x86)\MATLAB\R2015b\extern\lib\win32\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /out:csfunc.mexw32
mt -outputresource:csfunc.mexw32;2 -manifest csfunc.mexw32.manifest
REM del csfunc.exp csfunc.lib csfunc.mexw32.manifest csfunc.ilk

Keybase proof

I hereby claim:

  • I am bsamadi on github.
  • I am bsamadi (https://keybase.io/bsamadi) on keybase.
  • I have a public key ASCQ0EgBs6v2iSCLUNxjiBCkZY1Cw_yiglUu6f2V7c13MAo

To claim this, I am signing this object:

@bsamadi
bsamadi / ros_lawn_tractor_colcon.log
Created March 31, 2019 16:40
Errors in building ros_lawn_tractor using colcon
root@1c7a8baa9d20:/workspace# colcon build
[1.177s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/opt/ros/kinetic' in the environment variable CMAKE_PREFIX_PATH seems to be a catkin workspace but it doesn't contain any 'local_setup.*' files. Maybe the catkin version is not up-to-date?
Starting >>> lawn_tractor_navigation
Starting >>> geonav_transform
Starting >>> lawn_tractor_sim
Finished <<< lawn_tractor_sim [2.30s]
Finished <<< lawn_tractor_navigation [2.60s]
Starting >>> lawn_tractor
--- stderr: lawn_tractor
CMake Error at CMakeLists.txt:3 (find_package):
@bsamadi
bsamadi / ODrive-error-on-Windows-01.txt
Created December 16, 2019 04:08
ODrive error on Windows #01
c:\Users\username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts>odrivetool
Could not init terminal features.
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
c:\Users\nubon\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts\odrivetool in <module>
13 os.path.realpath(__file__))),
14 "Firmware", "fibre", "python"))
---> 15 import fibre.discovery
16 from fibre import Logger, Event
17 import odrive
@bsamadi
bsamadi / ODrive-error-on-Ubuntu-18.04-01.txt
Created December 16, 2019 05:16
ODrive error on Ubuntu 18.04 01
ODrive control utility v0.4.11
/usr/local/lib/python3.6/dist-packages/fibre/shell.py:104: RuntimeWarning: coroutine 'InteractiveShell.run_code' was never awaited
console.runcode('import sys')
/usr/local/lib/python3.6/dist-packages/fibre/shell.py:105: RuntimeWarning: coroutine 'InteractiveShell.run_code' was never awaited
console.runcode('superexcepthook = sys.excepthook')
/usr/local/lib/python3.6/dist-packages/fibre/shell.py:106: RuntimeWarning: coroutine 'InteractiveShell.run_code' was never awaited
console.runcode('def newexcepthook(ex_class,ex,trace):\n'
/usr/local/lib/python3.6/dist-packages/fibre/shell.py:109: RuntimeWarning: coroutine 'InteractiveShell.run_code' was never awaited
console.runcode('sys.excepthook=newexcepthook')
Please connect your ODrive.
@bsamadi
bsamadi / odrv0-00.txt
Created December 16, 2019 05:27
The value of odrv0 version 00
vbus_voltage = 19.461620330810547 (float)
serial_number = 2060358F524B (int)
hw_version_major = 3 (int)
hw_version_minor = 6 (int)
hw_version_variant = 24 (int)
fw_version_major = 0 (int)
fw_version_minor = 4 (int)
fw_version_revision = 11 (int)
fw_version_unreleased = 0 (int)
user_config_loaded = False (bool)
@bsamadi
bsamadi / install-cuda.sh
Last active February 23, 2020 19:23
Install Cuda on Ubuntu 18.04
sudo apt update
sudo apt install nvidia-cuda-toolkit
ls /dev/nvidia*
nvcc -V
nvidia-smi