-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support printing sensors using ign model
#1157
Conversation
ign model [options] Available Options: --list Get a list of the available models. -m [--model] arg Select the model to be shown. -p [--pose] Print the pose of the model. -l [--link] arg Select a link to show its properties. If no arg is passed all links are printed Requires the -m option E.g. to get information about the caster link in the diff_drive world, run: ign model -m vehicle_blue -l caster -s [--sensor] arg Select a sensor to show its properties. If no arg is passed all sensors are printed Requires the -m and -l options E.g. to get information about the imu sensor in the sensors world, run: ign model -m sensors_box -l link -s imu -j [--joint] arg Select a joint to show its properties. If no arg is passed all joints are printed Requires the -m option E.g. to get information about the caster_wheel joint in the diff_drive world, run: ign model -m vehicle_blue -j caster_wheel -h [--help] Print this help message. --force-version <VERSION> Use a specific library version. --versions Show the available versions. Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #1157 +/- ##
===============================================
- Coverage 63.69% 62.18% -1.52%
===============================================
Files 256 256
Lines 20116 20355 +239
===============================================
- Hits 12813 12657 -156
- Misses 7303 7698 +395
Continue to review full report at Codecov.
|
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same in the other JoinPaths
src/ModelCommandAPI_TEST.cc
Outdated
ignition::common::joinPaths(std::string(PROJECT_SOURCE_PATH) + | ||
"/test/worlds/static_diff_drive_vehicle.sdf")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignition::common::joinPaths(std::string(PROJECT_SOURCE_PATH) + | |
"/test/worlds/static_diff_drive_vehicle.sdf")); | |
ignition::common::joinPaths(std::string(PROJECT_SOURCE_PATH), "test", "worlds", "static_diff_drive_vehicle.sdf")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, thanks. Done.
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
* Support printing sensors using Print information about models. ign model [options] Available Options: --list Get a list of the available models. -m [--model] arg Select the model to be shown. -p [--pose] Print the pose of the model. -l [--link] arg Select a link to show its properties. If no arg is passed all links are printed Requires the -m option E.g. to get information about the caster link in the diff_drive world, run: ign model -m vehicle_blue -l caster -s [--sensor] arg Select a sensor to show its properties. If no arg is passed all sensors are printed Requires the -m and -l options E.g. to get information about the imu sensor in the sensors world, run: ign model -m sensors_box -l link -s imu -j [--joint] arg Select a joint to show its properties. If no arg is passed all joints are printed Requires the -m option E.g. to get information about the caster_wheel joint in the diff_drive world, run: ign model -m vehicle_blue -j caster_wheel -h [--help] Print this help message. --force-version <VERSION> Use a specific library version. --versions Show the available versions. Signed-off-by: Nate Koenig <[email protected]> * Added tests Signed-off-by: Nate Koenig <[email protected]> * Update documentation Signed-off-by: Nate Koenig <[email protected]> * use joinPaths Signed-off-by: Nate Koenig <[email protected]> * Use commas Signed-off-by: Nate Koenig <[email protected]> * More commas Signed-off-by: Nate Koenig <[email protected]> * Moved test to require DRI Signed-off-by: Nate Koenig <[email protected]> Co-authored-by: Nate Koenig <[email protected]> Signed-off-by: William Lew <[email protected]>
Signed-off-by: Nate Koenig [email protected]
🎉 New feature
Summary
Print some sensor information using
ign model
. Output is currently limited to altimeter, imu, camera, and rgbd cameras.Test it
ign gazebo -v4 sensors.sdf
ign model -m sensors_box
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge