Skip to content
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] gazebo_ros_joint_state_publisher #795

merged 6 commits into from Aug 9, 2018


Copy link

commented Aug 7, 2018

Try out the demo, make sure you either have the double_pendulum_with_base model locally or an internet connection:

gazebo --verbose install/gazebo_plugins/share/gazebo_plugins/worlds/




<robotNamespace> <ros><namespace>
<jointName>joint1, joint2</jointName> <joint_name>joint1</joint_name><joint_name>joint2</joint_name>
<updateRate> <update_rate>
Copy link

left a comment

One typo, otherwise LGTM

void GazeboRosJointStatePublisher::Load(gazebo::physics::ModelPtr model, sdf::ElementPtr sdf)
auto logger = rclcpp::get_logger("gazebo_ros_force");

This comment has been minimized.

Copy link

kev-the-dev Aug 8, 2018


Should be "gazebo_ros_joint_state_publisher", though I personally favor creating the Node in the beginning and using it's logger node->get_logger(). This will avoid any inconsistency in logging if the node name is remapped

This comment has been minimized.

Copy link

chapulina Aug 8, 2018

Author Contributor

I actually started that way, but then I moved the node creation to the bottom so we don't need to destroy the node in case the load function returns early.

But I can move it back to the top if you have a strong preference, I agree that it would make the logging consistent.

@chapulina chapulina force-pushed the ros2_joint_state_pub branch from 1b6f9bc to 4fe1967 Aug 8, 2018
@chapulina chapulina merged commit 70c2587 into ros2 Aug 9, 2018
1 check failed
1 check failed
Bpr__gazebo_ros_pkgs__ubuntu_bionic_amd64 Build finished.
@chapulina chapulina deleted the ros2_joint_state_pub branch Aug 10, 2018
@dhood dhood added the ros2 label Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.