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

Publish JointState messages for the wheels #26

Merged
merged 1 commit into from
Jun 28, 2016
Merged

Publish JointState messages for the wheels #26

merged 1 commit into from
Jun 28, 2016

Conversation

lopsided98
Copy link
Contributor

@lopsided98 lopsided98 commented Jun 23, 2016

This PR adds support for publishing JointState messages for the wheels on the Create. This allows robot_state_publisher to generate transforms for the wheels. These messages could also allow other nodes to access the velocities of the wheels.

This fixes #25.

To support these changes, AutonomyLab/libcreate#19 must be merged.

@@ -49,6 +49,12 @@ CreateDriver::CreateDriver(ros::NodeHandle& nh) : nh_(nh), priv_nh_("~")
tf_odom_.child_frame_id = str_base_footprint;
odom_msg_.header.frame_id = "odom";
odom_msg_.child_frame_id = str_base_footprint;
joint_state_msg_.name.resize(2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we populate header.frame_id too? I'm not familiar with joint_state_publisher

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

joint_state_publisher doesn't do it, so I don't think it's necessary.

@jacobperron
Copy link
Member

Looks good. I'll try it out next week 👍

I guess you should update the calls to get velocity to reflect changes in libcreate

@lopsided98
Copy link
Contributor Author

I squashed the commits, renamed the methods, updated the README and stored the radius in a variable.

@jacobperron
Copy link
Member

Please update the git tag in CMakeLists.txt to master.
In the future I'll release libcreate as a catkin package to avoid using git.

@jacobperron jacobperron merged commit 7ff3d57 into AutonomyLab:indigo-devel Jun 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish JointState for wheel joints
2 participants