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

Cannot reset robot position in stage_ros #3

Closed
heleidsn opened this issue Oct 10, 2019 · 2 comments
Closed

Cannot reset robot position in stage_ros #3

heleidsn opened this issue Oct 10, 2019 · 2 comments

Comments

@heleidsn
Copy link

Hi, I am very interested in this work and thank you very much for open source the code. I want to repeat the experiment. But I find two problems:

  1. I cannot reset the robot position:

    environment.set_robot_pose([robot_position[0],robot_position[1],0.025], [0,0,robot_orientation])

    It doesn't work.

  2. I cannot receive the stalled message:

    rospy.Subscriber("/stalled", Int8, self.update_robot_stall_data)

I used the Stage-ros simulator branch with add_pose_sub enabled as mentioned in Readme.
I guess it is because of this stage_ros branch is not up to date.

Did you do some modification on the stage_ros code? Where can I get the lasted stage_ros code which can set position?

Looking for your reply! Thank you.

@heleidsn
Copy link
Author

Problem fixed according to
ros-simulation/stage_ros#39
and
ros-simulation/stage_ros#42

Issues closed...

@minded-hua
Copy link

Hello, I ran the code but met a problem.
The problem is that the loaded robot model can't run within the map.
I guess it's caused by that the coordinate system's origin of /odom and /map is mismatching, however I can't solve it.
image

Can you help me? Looking forward to your reply. Thanks.

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

No branches or pull requests

2 participants