data_files=[('share/ament_index/resource_index/packages',['resource/'+package_name]),('share/'+package_name,['package.xml']),# Include all files in the launch directory
(os.path.join('share',package_name,'launch'),glob('launch/*.launch.py')),],
defgenerate_launch_description():# Declare launch arguments
no_rviz_arg=DeclareLaunchArgument('no_rviz',default_value='false',description='Flag to disable RViz')no_rviz=LaunchConfiguration('no_rviz')# register the arg and the node
ld.add_action(no_rviz_arg)ld.add_action(rviz_node)
Gazebo Tricks To Make Simulation Run Faster
How to make gazebo sim faster:
Realtime factor: 0.0: so the clocks can run as fast as possible
max_iterations: 120
rviz2: rviz trick: ogre visualizer for clicking + F