User Tools

Site Tools


eeros_architecture:hal:config_ros

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
eeros_architecture:hal:config_ros [2017/12/14 18:32] – [Implemented Message Types] grafeeros_architecture:hal:config_ros [2017/12/14 18:34] – [How to Use the] graf
Line 53: Line 53:
  
 ===== How to Use the  ===== ===== How to Use the  =====
- 
- 
- 
- 
-\subsection{How to use} 
- 
-Refere to the documentation of the EEROS HAL\footnote{http://wiki.eeros.org/eeros\_architecture/hal/start?s[]=hal} and check the example in the eeros framework (/examples/ros). 
- 
- 
- 
-First initialize the HAL in your main function: 
- 
-<code cpp> 
-... 
- 
-int main(int argc, char **argv) { 
- 
- ... 
- 
- // HAL 
- 
- // //////////////////////////////////////////////////////////////////////// 
- 
- HAL& hal = HAL::instance(); 
- 
- hal.readConfigFromFile(&argc, argv); 
- 
- ... 
-</code> 
- 
- 
-Add the header file to your control system: 
- 
-\lstset{language=c} 
- 
-\begin{lstlisting} 
- 
-#include <eeros/hal/HAL.hpp> 
- 
-\end{lstlisting} 
- 
  
  
eeros_architecture/hal/config_ros.txt · Last modified: 2023/02/27 14:44 by ursgraf