eeros_architecture:hal:config_ros
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
eeros_architecture:hal:config_ros [2017/12/14 17:33] – graf | eeros_architecture:hal:config_ros [2017/12/14 18:32] – [Implemented Message Types] graf | ||
---|---|---|---|
Line 11: | Line 11: | ||
| additionalArguments | string | see table below | | | additionalArguments | string | see table below | | ||
+ | ===== Additional Arguments ===== | ||
The '' | The '' | ||
Line 26: | Line 27: | ||
</ | </ | ||
+ | ===== Implemented Message Types ===== | ||
+ | The table below shows all currently implemented message types and associated data fields. If your desired message type is not implemented yet, you can easily implement it yourself, see below. | ||
- | In table \ref{tableImplementedMsgTypes} are all currently implemented message types and associated data fields. | + | ^ type ^ msgType ^ dataField ^ |
+ | | AnalogIn | std_msgs:: | ||
+ | | ::: | sensor_msgs:: | ||
+ | | ::: | ::: | angle_max | | ||
+ | | ::: | ::: | angle_increment | | ||
+ | | ::: | ::: | time_increment | | ||
+ | | ::: | ::: | scan_time | | ||
+ | | ::: | ::: | range_min | | ||
+ | | ::: | ::: | range_max | | ||
+ | | AnalogOut | std_msgs:: | ||
+ | | ::: | sensor_msgs:: | ||
+ | | ::: | ::: | angle_max | | ||
+ | | ::: | ::: | angle_increment | | ||
+ | | ::: | ::: | time_increment | | ||
+ | | ::: | ::: | scan_time | | ||
+ | | ::: | ::: | range_min | | ||
+ | | ::: | ::: | range_max | | ||
+ | | DigIn | std_msgs:: | ||
+ | | DigOut | std_msgs:: | ||
- | If your desired message type is not implemented yet, you can easily implement it yourself. | + | You can find a complete example, including a *.json file, in the [[getting_started: |
- | + | ||
- | See chapter \ref{sectionImplementMsgType} for a guide to implement additional message types and data fields in \textit{ros-eeros}. | + | |
- | + | ||
- | + | ||
- | + | ||
- | \begin{table}[] | + | |
- | + | ||
- | \centering | + | |
- | + | ||
- | \caption{Currently implemented message types in ros-eeros} | + | |
- | + | ||
- | \label{tableImplementedMsgTypes} | + | |
- | + | ||
- | \begin{tabular}{lll} | + | |
- | + | ||
- | \cline{2-3} | + | |
- | + | ||
- | HAL type & msgType | + | |
- | + | ||
- | AnalogIn | + | |
- | + | ||
- | & sensor\_msgs:: | + | |
- | + | ||
- | & & angle\_max | + | |
- | + | ||
- | & & angle\_increment \\ | + | |
- | + | ||
- | & & time\_increment | + | |
- | + | ||
- | & & scan\_time | + | |
- | + | ||
- | & & range\_min | + | |
- | + | ||
- | & & range\_max | + | |
- | + | ||
- | AnalogOut & std\_msgs:: | + | |
- | + | ||
- | & sensor\_msgs:: | + | |
- | + | ||
- | & & angle\_max | + | |
- | + | ||
- | & & angle\_increment \\ | + | |
- | + | ||
- | & & time\_increment | + | |
- | + | ||
- | & & scan\_time | + | |
- | + | ||
- | & & range\_min | + | |
- | + | ||
- | & & range\_max | + | |
- | + | ||
- | DigIn & sensor\_msgs:: | + | |
- | + | ||
- | DigOut | + | |
- | + | ||
- | \end{tabular} | + | |
- | + | ||
- | \end{table} | + | |
- | + | ||
- | + | ||
- | + | ||
- | You can find a complete example, including a *.json file, in the eeros framework (/ | + | |
+ | ===== How to Use the ===== | ||
Line 105: | Line 65: | ||
First initialize the HAL in your main function: | First initialize the HAL in your main function: | ||
- | \lstset{language=c} | + | <code cpp> |
- | + | ||
- | \begin{lstlisting} | + | |
... | ... | ||
Line 124: | Line 81: | ||
... | ... | ||
- | + | </ | |
- | \end{lstlisting} | + | |
Line 143: | Line 98: | ||
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< | PeripheralInput< | ||
Line 154: | Line 106: | ||
PeripheralOutput< | PeripheralOutput< | ||
- | + | </ | |
- | \end{lstlisting} | + | |
Line 161: | Line 112: | ||
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 184: | Line 135: | ||
} | } | ||
+ | </ |
eeros_architecture/hal/config_ros.txt · Last modified: 2023/02/27 14:44 by ursgraf