xwr.rsp.torch
¶
Radar Signal Processing in Pytorch.
Info
This module mirrors the functionality of xwr.rsp.numpy.
Warning
This module is not automatically imported; you will need to explicitly import it:
Since pytorch is not declared as a required dependency, you will also need
to install torch yourself (or install the torch extra with
pip install xwr[torch]).
Tip
The RSP implementations in this submodule support automatic differentiation in pytorch.
xwr.rsp.torch.AWR1642Boost
¶
Bases: RSPTorch
Radar Signal Processing for the AWR1642 or AWR1843 with TX2 disabled.
Antenna Array
The TI AWR1642Boost (or AWR1843Boost with TX2 disabled) has a 1x8 linear MIMO array:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not spacified, it is not padded. |
{}
|
Source code in src/xwr/rsp/torch/rsp.py
xwr.rsp.torch.AWR1843AOP
¶
Bases: RSPTorch
Radar Signal Processing for AWR1843AOP.
Antenna Array
In the TI AWR1843AOP, the MIMO virtual array is arranged in a 2D grid:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not specified, it is not padded. |
{}
|
Source code in src/xwr/rsp/torch/rsp.py
xwr.rsp.torch.AWR1843Boost
¶
Bases: RSPTorch
Radar Signal Processing for AWR1843Boost.
Antenna Array
In the TI AWR1843Boost, the MIMO virtual array has resolution 2x8, with a single 1/2-wavelength elevated middle antenna element:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not spacified, it is not padded. |
{}
|
Source code in src/xwr/rsp/torch/rsp.py
xwr.rsp.torch.AWR2944EVM
¶
Bases: RSPTorch
Radar Signal Processing for AWR2944EVM.
Antenna Array
The AWR2944EVM has a virtual array on a 2x12 grid:
The horizontal spacing is 1/2 wavelength, and the vertical spacing is 0.8 wavelength.Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not spacified, it is not padded. |
{}
|
Source code in src/xwr/rsp/torch/rsp.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 | |
elevation_azimuth
¶
elevation_azimuth(
rd: Complex64[Tensor, "#batch doppler tx rx range"],
) -> Complex64[Tensor, "#batch doppler el az range"]
Calculate elevation-azimuth spectrum from range-doppler spectrum.
Warning
Special treatment is needed for the AWR2944EVM since the two rows of virtual elements are 0.8 wavelength apart instead of 0.5. We compute the DTFT along the elevation axis with the steering matrix corresponding to the 0.8 lambda spacing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rd
|
Complex64[Tensor, '#batch doppler tx rx range']
|
range-doppler spectrum. |
required |
Returns:
| Type | Description |
|---|---|
Complex64[Tensor, '#batch doppler el az range']
|
Computed elevation-azimuth spectrum, with windowing and padding if specified. |
Source code in src/xwr/rsp/torch/rsp.py
xwr.rsp.torch.AWRL6844EVM
¶
Bases: RSPTorch
Radar Signal Processing for AWRL6844.
Antenna Array
The AWRL6844 has a 4x4 MIMO virtual array with λ/2 spacing:
TX Phase Relationship
TX1 and TX3 are in phase with each other. TX2 and TX4 are also in phase with each other, but are 180° out of phase with TX1 and TX3. Their contributions to the virtual array are negated accordingly.
Source: Table 3-1, EVM User's Guide: AWRL6844EVM IWRL6844EVM.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not specified, it is not padded. |
{}
|
Source code in src/xwr/rsp/torch/rsp.py
xwr.rsp.torch.RSPTorch
¶
Base Radar Signal Processing with common functionality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window
|
bool | Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], bool]
|
whether to apply a hanning window. If |
False
|
size
|
Mapping[Literal['range', 'doppler', 'azimuth', 'elevation'], int]
|
target size for each axis after zero-padding, specified by axis. If an axis is not spacified, it is not padded. |
{}
|