# Using \>=2 radars on the same desktop system

**URL:** <https://forum.altosradar.com/t/using-2-radars-on-the-same-desktop-system/40>\
**Category:** Guides\
**Tags:** demo, support, guide\
**Created:** [October 11, 2024, 4:31am UTC](https://forum.altosradar.com/t/using-2-radars-on-the-same-desktop-system/40 "2024-10-11T04:31:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mingkangli](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mingkangli](https://forum.altosradar.com/u/mingkangli)\
**Post date:** [October 11, 2024, 4:31am UTC](https://forum.altosradar.com/t/using-2-radars-on-the-same-desktop-system/40/1 "2024-10-11T04:31:06Z")

</div>

For the second and further radars, IP. destination port and ROS driver must be modified.

# Changing IP and Destination Port in Radar

> [@](#):
>
> ### 🙂 Tip
> 
> V1: [V1 Evaluation Kit Demo Set-up - Guides - Altos Radar Community](https://forum.altosradar.com/t/v1-evaluation-kit-demo-set-up/27#p-31-configure-radar-12)  
> V2: [Altos V2 User Guide - Guides - Altos Radar Community](https://forum.altosradar.com/t/altos-v2-user-guide/35)

open the setup page.  
change the IPv4 addr to 192.168.3.x (x is a number different than 10)  
change the Destination Port to a new number.

 ![](https://canada1.discourse-cdn.com/flex003/uploads/altosradar/original/1X/5552d9e5ecdd5830c8e3aac2ff82b7dbb10e636c.png)

# Changing ROS Driver

There are two ways to modify the ROS driver:  
1, Make [rosparam](http://wiki.ros.org/rosparam) for “Destination Port” and “Frame ID”. Run two instances of altosradar/altosRadarParse with different rosparam for each radar.  
2, Make a second altosRadarParse e.g. altosRadarParse2 with altosRadarParse2.cpp. Run altosRadarParse for the first radar and altosRadarParse2 for the second radar.

The following changes are needed for the second radar.

## Changing Destination Port

change 4040 to the number given in the setup page

```auto
#define PORT 4040

```

ROS1 noetic:  
[altosRadarRos/src/altosradar/src/altosRadarParse.cpp at main · Altos-Radar/altosRadarRos](https://github.com/Altos-Radar/altosRadarRos/blob/main/src/altosradar/src/altosRadarParse.cpp#L23)

ROS2:  
[altosRadarRos2/src/altosradar/src/altosRadarParse.cpp at main · Altos-Radar/altosRadarRos2](https://github.com/Altos-Radar/altosRadarRos2/blob/main/src/altosradar/src/altosRadarParse.cpp#L31)

## Changing Frame ID

change “altosRadar” to a new frame ID, e.g. “altosRadar2”

```auto
output.header.frame_id = "altosRadar";

```

ROS1 noetic:  
[altosRadarRos/src/altosradar/src/altosRadarParse.cpp at main · Altos-Radar/altosRadarRos](https://github.com/Altos-Radar/altosRadarRos/blob/main/src/altosradar/src/altosRadarParse.cpp#L252)  
AND  
[altosRadarRos/src/altosradar/src/altosRadarParse.cpp at main · Altos-Radar/altosRadarRos](https://github.com/Altos-Radar/altosRadarRos/blob/main/src/altosradar/src/altosRadarParse.cpp#L311)

ROS2:  
[altosRadarRos2/src/altosradar/src/altosRadarParse.cpp at main · Altos-Radar/altosRadarRos2](https://github.com/Altos-Radar/altosRadarRos2/blob/main/src/altosradar/src/altosRadarParse.cpp#L289)

> [@](#):
>
> ### ⚠ Warning
> 
> It is better to remove markerPub and originPub in order to avoid duplicated publishing

> [@](#):
>
> ### ⚠ Warning
> 
> Please add [tf](http://wiki.ros.org/tf#static_transform_publisher) between the new Frame ID e.g. “altosRadar2” and “altosRadar”
