-
Notifications
You must be signed in to change notification settings - Fork 148
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
Bridge as a gz sim system [rolling] #511
Conversation
@ahcorde , do you know if these tests are supposed to compile? It seems a problem sourcing |
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.
@azeey or @mjcarroll do you mind to take a look too ?
} | ||
|
||
if (!_sdf->HasElement("config_file")) { | ||
std::cerr << "No <config_file> found. Plugin disabled." << std::endl; |
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.
as this is a Gazebo plugin, should we use here gzerr
? remove <iostream>
header too
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.
Changed in 78067c4.
ros_gz_bridge/src/bridge_config.cpp
Outdated
@@ -173,31 +174,30 @@ std::vector<BridgeConfig> readFromYaml(std::istream & in) | |||
std::vector<BridgeConfig> readFromYamlFile(const std::string & filename) | |||
{ | |||
std::vector<BridgeConfig> ret; | |||
std::ifstream in(filename); | |||
resource_retriever::Retriever r; |
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.
nit: single letter variable names violate our style guide. Can you use a more descriptive variable?
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.
Renamed in 13f4008
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.
This file does not need to be installed. It can live in ros_gz_sim/src
.
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.
Moved in 13f4008
this->dataPtr->exec = | ||
std::make_shared<rclcpp::executors::MultiThreadedExecutor>(); |
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.
The documentation on Multi-Threaded Executors seems to indicate we need to use callback groups to take advantage of parallelism. @mjcarroll Can you confirm?
Can you also fix DCO? |
* Update README to include harmonic Signed-off-by: Luca Della Vedova <[email protected]> * Remove humble-harmonic combination Signed-off-by: Luca Della Vedova <[email protected]> --------- Signed-off-by: Luca Della Vedova <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Also Added a note pointing to REP-2000 for additional details. --------- Signed-off-by: Katherine Scott <[email protected]> Signed-off-by: Addisu Z. Taddese <[email protected]> Co-authored-by: Addisu Z. Taddese <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Michael Carroll <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Michael Carroll <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]> Signed-off-by: Carlos Agüero <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Pins rosdep to a known good version based on https://wiki.ros.org/SnapshotRepository --------- Signed-off-by: Addisu Z. Taddese <[email protected]> Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
1069252
to
7d9b91d
Compare
Signed-off-by: Carlos Agüero <[email protected]>
Fixed |
@caguero Do we want to close this one now that the composable nodes PRs are merged? |
🎉 New feature
Summary
This PR runs the ROS<->Gz bridge as a gz sim system. It's targeting ROS 2 rolling. I'll create a separate PR with some updates that we discussed offline.
Test it
Verify the output to confirm that two topics are bridged:
Then, you should see a ROS topic
/ros_chatter
:Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.