File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,3 +17,9 @@ rqt --standalone kalman_arc/RscpPublisher
1717
1818It 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+ ```
Original file line number Diff line number Diff line change 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+ )
You can’t perform that action at this time.
0 commit comments