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

Docking action succeeds but not centered on dock #221

Open
slowrunner opened this issue Dec 9, 2023 · 1 comment
Open

Docking action succeeds but not centered on dock #221

slowrunner opened this issue Dec 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@slowrunner
Copy link

slowrunner commented Dec 9, 2023

The bug
Docking action succeeds but Create3 model is not in valid "Charging Position" on dock

Screenshot 2023-12-09 at 11 07 47 AM

To Reproduce

  1. (Unbuntu 22.04, ROS 2 Humble or Galactic, update/upgrade, clone create3_sim main, rosdep, build, source setups, run classic gazebo)
ros2 launch irobot_create_gazebo_bringup create3_gazebo.launch.py

Screenshot 2023-12-09 at 11 39 11 AM

  1. Undock, Move, Dock:
  • pub undock
ros2 action send_goal /undock irobot_create_msgs/action/Undock "{}"

Screenshot 2023-12-09 at 11 39 58 AM

  • pub move to -1,0 w: 1
ros2 action send_goal /navigate_to_position irobot_create_msgs/action/NavigateToPosition "{achieve_goal_heading:true,goal_pose:{pose:{position:{x: -1,y: 0,z: 0.0}, orientation:{x: 0.0,y: 0.0, z: 0.0, w: 1.0}}}}"

Screenshot 2023-12-09 at 11 40 24 AM

  • pub dock goal:
ros2 action send_goal /dock irobot_create_msgs/action/Dock "{}"

(Or /DockServo for Galactic - same issue Galactic or Humble)

miss-docked

  1. Echo dock_status, odom
    Screenshot 2023-12-09 at 11 07 25 AM

Expected behavior: Return to dock in "Charging Position"

Additional context

$ uname -a
Linux FU22 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov  2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

$ more /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"

(20.04 used for Galactic test)

$ dpkg -l | grep gazebo11
ii  libgazebo11:amd64                                  11.10.2+dfsg-1                          amd64        Open Source Robotics Simulator - shared library

$ more package.xml 
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematype
ns="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
  <name>irobot_create_gazebo_sim</name>
  <version>2.0.0</version>


Update: I see that this was first reported two years ago, not closed as working as designed and not fixed. Is this actually working as designed? Does the simulation odometry error approximate what is seen with the physical Create3?

@slowrunner slowrunner added the bug Something isn't working label Dec 9, 2023
@slowrunner
Copy link
Author

slowrunner commented Dec 10, 2023

Suggest adding a reset of odometry when dock status docked changes from false to true. This will allow the “drift” but correct the odometry based on known “localization”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant