瀏覽代碼

Rework scara kinematics figure

tags/0.4.3-reflection
Wouter Horlings 4 年之前
父節點
當前提交
e127069ab4
共有 2 個檔案被更改,包括 40 行新增22 行删除
  1. +1
    -22
      content/case_experiment_scara.tex
  2. +39
    -0
      graphics/scara_arm_kinematics.tex

+ 1
- 22
content/case_experiment_scara.tex 查看文件

@@ -46,28 +46,7 @@
\subsubsection{Basics implementation}
\begin{marginfigure}
\centering
\begin{tikzpicture}
\tikzstyle{arrow} = [-latex,ultra thick]
% draw roof
\fill[pattern = north east lines] ($ (0,0) + (-1,0) $) rectangle ($ (0,0) + (1,0.5) $);
\draw[thick] ($ (0,0.5) + (-1,0) $) -- ($ (0,0.5) + (1,0) $);
%draw arm and joints
\fill (0,0.5) circle (0.2);
\draw[thick] (0,0.5) to node[midway,right,draw=none] {$a$} (-1.5,3.5);
\fill (-1.5,3.5) circle (0.2);
\draw[thick] (-1.5,3.5) to node[midway,above,draw=none] {$b$}(1.51,4.26);
%draw mass
\draw (1.7,4.32) circle (0.2) node {$m$};
%draw arc
%\draw[dashed,gray] (-1.5,3.5) -- ++(2.5,0);
%\draw (1,0.5) arc (0:116:1cm) node[above,midway] {$\theta$};

%\draw [arrow] (c.south) -- +(0,-1cm) node[midway,right,draw=none] {$F_{g} = m \cdot g$};
\end{tikzpicture}
\includegraphics[width=0.9\linewidth]{graphics/scara_arm_kinematics.pdf}
\caption{Basic kinematics of the SCARA}
\label{fig:scaraarm}
\end{marginfigure}


+ 39
- 0
graphics/scara_arm_kinematics.tex 查看文件

@@ -0,0 +1,39 @@
%&tex
\documentclass{standalone}
\usepackage{tikz}
\usepackage{siltex}
\usetikzlibrary{calc,positioning,patterns,math}

\begin{document}
\begin{tikzpicture}[x=0.75cm, y=0.75cm]
\tikzstyle{arrow} = [-latex,ultra thick]

% draw roof
\fill[pattern = north east lines] ($ (0,0) + (-1,0) $) rectangle ($ (0,0) + (1,0.5) $);
\draw[thick] ($ (0,0.5) + (-1,0) $) -- ($ (0,0.5) + (1,0) $);

%draw arm and joints
\pgfmathsetmacro{\alphahoek}{120};
\pgfmathsetmacro{\a}{4};
\pgfmathsetmacro{\betahoek}{-105};
\pgfmathsetmacro{\b}{4};
\pgfmathsetmacro{\radius}{0.8};
\begin{scope}[shift={(0,0.5)}]
\draw (\radius,0) arc [start angle=0, end angle=\alphahoek, radius=\radius] node[above,midway] {$\alpha$};
\begin{scope}[rotate=\alphahoek]
\fill (0,0) circle (0.2);
\draw[thick] (0,0) to node[midway,right,draw=none] {$a$} (\a,0);
\begin{scope}[shift={(\a,0)}]
\draw (-\radius,0) arc [start angle=-180, end angle=\betahoek, radius=\radius] node[right,midway] {$\beta$};
\begin{scope}[rotate=\betahoek]
\fill (0,0) circle (0.2);
\draw[thick] (0,0) to node[midway,below,draw=none] {$b$} (\b,0);
\begin{scope}[shift={(\b,0)}]
\draw[fill=white] (0,0) circle (0.3) node {$m$};
\end{scope}
\end{scope}
\end{scope}
\end{scope}
\end{scope}
\end{tikzpicture}
\end{document}

Loading…
取消
儲存