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

Provide ability to programmatically change the pose of a robot. #39

Open
wants to merge 6 commits into
base: lunar-devel
Choose a base branch
from

Conversation

kleinma
Copy link

@kleinma kleinma commented Nov 11, 2016

I would like to be able to programmatically change the pose of one or multiple robots within stage. I don't want to have to alter the worldfile or drag around the robot in stage with my mouse to do this.

Thus, I added a subscriber to a geometry_msgs\Pose2D message on the topic cmd_pose or \robot_#\cmd_pose. A callback function cmdposeRecieved() is modeled after cmdvelRecieved() and calls SetPose() to set the robot's pose in the stage simulator.

My code is adapted from and answer to the question found here:
http://answers.ros.org/question/61503/stageros-how-to-programmatically-set-the-pose-of-a-simulated-robot/?answer=61612#post-id-61612

I also added a message to be displayed at runtime that informs the of this new change. However, this is for internal use and can be removed.

@wjwwood wjwwood added this to the untargeted milestone Nov 11, 2016
@wjwwood
Copy link
Member

wjwwood commented Nov 11, 2016

Thanks for the contribution! We'll review it and get back to your asap.

/cc @gerkey fyi

@daenny
Copy link

daenny commented Jan 2, 2017

This is very similar to the discussion we started here:
#27

kylejmorris pushed a commit to kylejmorris/arc_ros that referenced this pull request Feb 27, 2017
…osition on cmd_pose, and it will move there. Patch courtesy of ros-simulation/stage_ros#39
@wjwwood wjwwood closed this May 1, 2017
@wjwwood wjwwood changed the base branch from master to lunar-devel May 1, 2017 03:20
@wjwwood wjwwood reopened this May 1, 2017
@wjwwood
Copy link
Member

wjwwood commented May 1, 2017

Sorry, I accidentally closed this when changing the branch layout of the repository. I've reopened it and updated the target base to be lunar-devel which is the new default branch. You can edit again to point at indigo-devel, which is what is used to release for ROS Indigo and Kinetic, if you like.

@h3ct0r
Copy link

h3ct0r commented Sep 23, 2018

Is this pull request going to be merged? This patch is very helpful.

@kleinma
Copy link
Author

kleinma commented Sep 24, 2018

I just rebased to remove some unnecessary comments from the commit history. Should I squash everything down into one commit. Sorry, I've never actually done this before!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants