File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99def generate_launch_description ():
1010 description_loader = RobotDescriptionLoader ()
1111
12- rsp = Node (package = 'robot_state_publisher' ,
13- executable = 'robot_state_publisher' ,
14- output = 'both' ,
15- parameters = [{'robot_description' : description_loader .load ()}])
12+ rsp = Node (
13+ package = 'robot_state_publisher' ,
14+ executable = 'robot_state_publisher' ,
15+ output = 'both' ,
16+ parameters = [{'robot_description' : description_loader .load ()}],
17+ )
1618 jsp = Node (
1719 package = 'joint_state_publisher_gui' ,
1820 executable = 'joint_state_publisher_gui' ,
19- output = 'screen' )
21+ output = 'screen' ,
22+ )
2023
21- rviz_config_file = get_package_share_directory (
22- 'sciurus17_description' ) + '/launch/display.rviz'
23- rviz = Node (package = 'rviz2' ,
24- executable = 'rviz2' ,
25- name = 'rviz2' ,
26- output = 'log' ,
27- arguments = ['-d' , rviz_config_file ])
24+ rviz_config_file = (
25+ get_package_share_directory ('sciurus17_description' ) + '/launch/display.rviz'
26+ )
27+ rviz = Node (
28+ name = 'rviz2' ,
29+ package = 'rviz2' ,
30+ executable = 'rviz2' ,
31+ output = 'log' ,
32+ arguments = ['-d' , rviz_config_file ],
33+ )
2834
29- ld = LaunchDescription ()
30- ld .add_action (rsp )
31- ld .add_action (jsp )
32- ld .add_action (rviz )
33-
34- return ld
35+ return LaunchDescription (
36+ [
37+ rsp ,
38+ jsp ,
39+ rviz ,
40+ ]
41+ )
You can’t perform that action at this time.
0 commit comments