Skip to content

Commit 85206fe

Browse files
committed
Add launch file for rscp tcp client
1 parent ac024a4 commit 85206fe

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

kalman_arc/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ rqt --standalone kalman_arc/RscpPublisher
1717

1818
It is also available in the regular rqt plugin menu under
1919
`Plugins > Kalman > RSCP Publisher`.
20+
21+
## For RSCP with raspi
22+
23+
``bash
24+
rqt --standalone kalman_arc/RscpOverTCP
25+
```
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
from launch import LaunchDescription
2+
from launch.actions import DeclareLaunchArgument
3+
from launch.substitutions import LaunchConfiguration
4+
from launch_ros.actions import Node
5+
from launch_ros.parameter_descriptions import ParameterValue
6+
7+
8+
def generate_launch_description():
9+
return LaunchDescription(
10+
[
11+
DeclareLaunchArgument(
12+
"ip_address",
13+
description="IP address of the RSCP TCP server.",
14+
),
15+
DeclareLaunchArgument(
16+
"port",
17+
default_value="5555",
18+
description="TCP port of the RSCP TCP server.",
19+
),
20+
Node(
21+
package="kalman_arc",
22+
executable="rscp_tcp_client",
23+
name="rscp_tcp_client",
24+
parameters=[
25+
{
26+
"host": LaunchConfiguration("ip_address"),
27+
"port": ParameterValue(
28+
LaunchConfiguration("port"),
29+
value_type=int,
30+
),
31+
}
32+
],
33+
output="screen",
34+
),
35+
]
36+
)

0 commit comments

Comments
 (0)