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 revision
Previous revision
Next revisionBoth sides next revision
eeros_architecture:hal:config_ros [2017/12/14 17:58] – [Additional Arguments] grafeeros_architecture:hal:config_ros [2017/12/14 18:29] – [Implemented Message Types] graf
Line 32: Line 32:
 ^ type ^ msgType ^ dataField ^ ^ type ^ msgType ^ dataField ^
 | AnalogIn | std_msgs::Float64 | - | | AnalogIn | std_msgs::Float64 | - |
 +| ::: | sensor_msgs::LaserScan | angle_min |
 +| ::: | ::: | angle_max |
 +| ::: | ::: | angle_increment |
 +| ::: | ::: | time_increment |
 +| ::: | ::: | scan_time |
 +| ::: | ::: | range_min |
 +| ::: | ::: | range_max |
 +| AnalogOut | std_msgs::Float64 | - |
 | ::: | sensor_msgs::LaserScan | angle_min | | ::: | sensor_msgs::LaserScan | angle_min |
 | ::: | ::: | angle_max | | ::: | ::: | angle_max |
Line 40: Line 48:
 | ::: | ::: | range_max | | ::: | ::: | range_max |
  
-AnalogOut & std\_msgs::Float64         & -                \\ 
- 
-          & sensor\_msgs::LaserScan    & angle\_min       \\ 
- 
-          &                            & angle\_max       \\ 
- 
-          &                            & angle\_increment \\ 
- 
-          &                            & time\_increment  \\ 
- 
-          &                            & scan\_time       \\ 
- 
-          &                            & range\_min       \\ 
- 
-          &                            & range\_max       \\ 
  
 DigIn     & sensor\_msgs::BatteryState & present          \\ DigIn     & sensor\_msgs::BatteryState & present          \\
  
 DigOut    & sensor\_msgs::BatteryState & present          \\ \cline{2-3}  DigOut    & sensor\_msgs::BatteryState & present          \\ \cline{2-3} 
- 
-\end{tabular} 
- 
-\end{table} 
- 
- 
  
 You can find a complete example, including a *.json file, in the eeros framework (/examples/hal/Ros*). You can find a complete example, including a *.json file, in the eeros framework (/examples/hal/Ros*).
Line 80: Line 67:
 First initialize the HAL in your main function: First initialize the HAL in your main function:
  
-\lstset{language=c} +<code cpp>
- +
-\begin{lstlisting} +
 ... ...
  
Line 99: Line 83:
  
  ...  ...
- +</code>
-\end{lstlisting} +
  
  
Line 118: Line 100:
 You can now declare \textit{PeripheralInputs} and \textit{PeripheralOutputs}: You can now declare \textit{PeripheralInputs} and \textit{PeripheralOutputs}:
  
-\lstset{language=c} +<code cpp>
- +
-\begin{lstlisting} +
  PeripheralInput<double> analogIn0;  PeripheralInput<double> analogIn0;
  
Line 129: Line 108:
  
  PeripheralOutput<bool> digitalOut0;  PeripheralOutput<bool> digitalOut0;
- +</code>
-\end{lstlisting}+
  
  
Line 136: Line 114:
 Call the constructor of the peripheral IOs with the \textit{signalID} used in the *.json file Call the constructor of the peripheral IOs with the \textit{signalID} used in the *.json file
  
-\begin{lstlisting}+<code cpp>
  
 class MyControlSystem { class MyControlSystem {
Line 159: Line 137:
  
 } }
 +</code>
eeros_architecture/hal/config_ros.txt · Last modified: 2023/02/27 14:44 by ursgraf