Skip to content

Commit

Permalink
added rviz to sim file
Browse files Browse the repository at this point in the history
  • Loading branch information
carpit680 committed Dec 22, 2024
1 parent 693ce20 commit 26c1708
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion giraffe_ws/src/giraffe_description/launch/simulation.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,15 @@ def generate_launch_description():
arguments=['/clock@rosgraph_msgs/msg/Clock[gz.msgs.Clock'],
output='screen'
)

rviz_base = os.path.join(get_package_share_directory("giraffe_description"), "config")
rviz_full_config = os.path.join(rviz_base, "teleop.rviz")
rviz_node_full = Node(
package="rviz2",
executable="rviz2",
name="rviz2",
output="log",
arguments=["-d", rviz_full_config],
)
return LaunchDescription([
env_var,
# Launch gazebo environment
Expand Down Expand Up @@ -119,4 +127,5 @@ def generate_launch_description():
default_value=use_sim_time,
description='If true, use simulated clock'),
bridge,
rviz_node_full,
])

0 comments on commit 26c1708

Please sign in to comment.