Provide ability to programmatically change the pose of a robot.#39
Open
kleinma wants to merge 6 commits intoros-simulation:lunar-develfrom
Open
Provide ability to programmatically change the pose of a robot.#39kleinma wants to merge 6 commits intoros-simulation:lunar-develfrom
kleinma wants to merge 6 commits intoros-simulation:lunar-develfrom
Conversation
Member
|
Thanks for the contribution! We'll review it and get back to your asap. /cc @gerkey fyi |
|
This is very similar to the discussion we started here: |
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
Member
|
Sorry, I accidentally closed this when changing the branch layout of the repository. I've reopened it and updated the target base to be |
|
Is this pull request going to be merged? This patch is very helpful. |
Author
|
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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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\Pose2Dmessage on the topiccmd_poseor\robot_#\cmd_pose. A callback functioncmdposeRecieved()is modeled aftercmdvelRecieved()and callsSetPose()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.