Skip to content

Commit

Permalink
Fix README instructions and display_srdf script for ROS 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Oct 6, 2024
1 parent adc1719 commit 387844a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,19 @@ Reused for srdf python parser

## C++ example

test_parser.cpp contains examples how to access the srdf elements from the cpp parser
`test/test_parser.cpp` contains examples how to access the srdf elements from the cpp parser

## Python example

test.py contains examples how to access the srdf elements from the python parser
`test/test.py` contains examples how to access the srdf elements from the python parser

display_srdf reads a srdf from a file given in command line argument
or from parameter server (robot_description_semantic) and displays it in a yaml format
if an output option (-o <filename>) is provided, dumps the xml (re-generated from parsed input xml)
`scripts/display_srdf` reads a srdf from a file given in a command line argument and displays it in a yaml format.
If an output option (`-o <filename>`) is provided, it dumps the xml (re-generated from parsed input xml).

example:

rosrun srdfdom display_srdf test/res/pr2_desc.3.srdf
ros2 run srdfdom display_srdf test/resources/pr2_desc.3.srdf

## Test

catkin_make run_tests_srdfdom
colcon test --packages-select srdfdom
1 change: 0 additions & 1 deletion scripts/display_srdf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
from __future__ import print_function
import sys
import argparse

from srdfdom.srdf import SRDF
Expand Down

0 comments on commit 387844a

Please sign in to comment.