Skip to content

Yadunund/view_sdf_rviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

view_sdf_rviz

View SDF models on RViz.

Requirements

  • ROS 2 Rolling/Iron/Humble

Setup

Create a ROS 2 workspace.

mkdir ~/ws/src -p
cd ~/ws/src
git clone https://github.com/yadunund/view_sdf_rviz

Next prepare the models folder in this package as per guide.

Build the workspace

cd ~/ws
source /opt/ros/<ROS_DISTRO>/setup.bash # replace <ROS_DISTRO> with version of ROS 2 installed
rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y
colcon build

Usage

cd ~/ws
source install/setup.bash
ros2 launch view_sdf_rviz view_sdf.launch.py sdf_file:=src/view_sdf_rviz/models/Cubes/model.sdf # Replace with path to your model.

RViz should open up with the model visualized. Make sure to set the global frame to one of the links in the model.

About

View SDF models on RViz

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published