-
Notifications
You must be signed in to change notification settings - Fork 782
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
[ros2] World plugin with get/set entity state services #839
Conversation
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.
Overall it looks good. Adding the status_message is a little odd. In general I think that that sort of output is better to go out on the console logging. Which looking at the implementation is already being done. Because the only thing that we can programmatically do with that information is display it to the user. I'm not entirely against it but it seems to be pushing the limit of what should go back in the message versus go out to console.
gazebo_msgs/srv/GetEntityState.srv
Outdated
# * header.frame_id Filled with the relative_frame. | ||
gazebo_msgs/EntityState state # Contains pose and twist. | ||
bool success # Return true if get was successful. If false, the state contains garbage. | ||
string status_message # Comments if available. |
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.
What sort of "comments" might go here?
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.
I was just keeping it because it was in ROS 1, but I agree it doesn't serve any good purpose, so removed in 6387f4a.
@ros-pull-request-builder retest this please |
1 similar comment
@ros-pull-request-builder retest this please |
de5ce8e
to
d98f584
Compare
d98f584
to
58c61b4
Compare
TODO(@chapulina) : rebase against new |
remove status_message
58c61b4
to
eabdd1e
Compare
@nzlz's team has been using this branch (see #838 (comment)) and I've already addressed @tfoote's review comment, so I'm merging this. |
@chapulina - I don't see the gazebo_ros_state files in the 'ros2' branch, is that expected? I see they were merged to the 'crystal' branch, but not 'ros2'. I'd like to use this feature in dashing, has it been replaced somehow? |
@mkhansen-intel , see #933. I'm still reviewing it. I was having some difficulties using it which I'm not sure were local problems in my setup. |
I see it's merged now, thanks for the quick follow up |
* [ros2] World plugin to get/set entity state services (#839) remove status_message * [ros2] Port time commands (pause / reset) (#866) * [ros2] Migration of get/set world, model, joint, link, light properties * Trying to pass CI test, try n1. * clean up some linter warnings * Requested changes in review, unfinished * Fix uncrustify * Address reviews * more tests, joint types Signed-off-by: Louise Poubel <louise@openrobotics.org> * Revert changes to GetModelProperties message Document gazebo_ros_properties header * Convert msgs pose to math pose and use it on SetCoG Signed-off-by: Louise Poubel <louise@openrobotics.org>
@mkhansenbot @chapulina |
I'm using foxy, and also want to user a service where i can set the state of a model. Have any similar services been migrated to Ros2 yet? |
This is part of breaking
gazebo_ros_api
into several plugins, see #779 and #838.See the migration documentation: ROS 2 Migration: Entity states.
Try the demo world added in this PR (see the world file for more detailed instructions):
gazebo gazebo_ros/worlds/gazebo_ros_state_demo.world
FYI @mkhansen-intel.