- load step to solidworks
- move joint rotation center to the origin of world
- moving distance may depend on DH table
- ROS will move parts to desired position according ot URDF file
- select needed parts (each joint may contain a lot of small part: screw or plate)
- save as... STL
- in advance option:
If run gvim in terminal. When gvim is loading slow and show following message:
** (gvim:20320): WARNING **: Unable to create Ubuntu Menu Proxy: Timeout was reached
To get global menu for gvim and to get rid of the warning message, add this to ~/.bashrc and restart the terminal:
function gvim () { (/usr/bin/gvim -f "$@" &) }
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# under $HOME | |
mkdir .fonts/ # if .fonts directory not exist | |
cd .fonts/ | |
git clone https://github.com/powerline/fonts.git | |
cd fonts/ | |
./install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void PMC_SendCtrlMsg(MSG_TYPE Type, char Text[256], ...); // variadic function Delcaration | |
void PMC_SendCtrlMsg(MSG_TYPE Type, char Text[256], ...) // variadic function Definetion | |
{ | |
MsgQueue[MsgQueueIndex+1].rtMsgType = Type; | |
//get final string according to parameters | |
char temp_text[256]; | |
sprintf(temp_text, Text); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
from math import * | |
import random | |
N = 1000 | |
index = int(random.random() * N) # randomly pick a starting index | |
for i in range(N): | |
index = (index + 1) % N # keep index in side 0~1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Using "raise" in python to warning user | |
def set(self, new_x, new_y, new_orientation): | |
if new_x < 0 or new_x >= world_size: | |
raise ValueError, 'X coordinate out of bound' | |
if new_y < 0 or new_y >= world_size: | |
raise ValueError, 'Y coordinate out of bound' | |
if new_orientation < 0 or new_orientation >= 2 * pi: | |
raise ValueError, 'Orientation must be in [0..2pi]' | |
self.x = float(new_x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Measuring performance of function more precisively. | |
// Include necessary file | |
#include <windows.h> | |
// Add code to calculate the computing time of function more precsively | |
LARGE_INTEGER nFreq; | |
LARGE_INTEGER nBeginTime; | |
LARGE_INTEGER nEndTime; | |
double computing_time; | |
QueryPerformanceFrequency(&nFreq); |
NewerOlder