-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[for help] action follow_path
doesn't work (humble)
#4370
Comments
navigateThroughPoses
doesn't work (humble)follow_path
doesn't work (humble)
follow_path
doesn't work (humble)follow_path
doesn't work (humble)
I'm pretty sure its your command since that is the same API that is used by the BT and the Python3 API to send the paths to the controller server over the action interface. I see there's a trailing space after your last orientation - try removing that? Maybe there's a problem in serializing your path and the CLI clips the entire field that failed to serialize (i.e. the poses list) and thus is empty? |
I ran the same command in the terminal and tested on our robot, seems to work fine.. @GoesM could you please share your setup and some information on how to reproduce the issue? |
my steps to reproduce the issueI setup my navigation2-humble by following steps: installcd ros_ws
git clone https://github.com/ros-navigation/navigation2.git -b humble setupexport CC=/usr/bin/clang
export CXX=/usr/bin/clang++
colcon build \
--cmake-clean-cache \
--cmake-args \
-DBUILD_TESTING=OFF \
-DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} \
-w -Wno-error -Wno-everything" \
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS} \
-w -Wno-error -Wno-format-security"
launchexport ROS_LOG_DIR="ros_log"
source install/setup.bash
export TURTLEBOT3_MODEL=waffle
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/humble/share/turtlebot3_gazebo/models
ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False use_rviz:=True use_composition:=False my command and resultros2 action send_goal /follow_path nav2_msgs/action/FollowPath "
controller_id: 'FollowPath'
goal_checker_id: 'general_goal_checker'
path:
header:
stamp:
sec: 0
nanosec: 0
frame_id: 'map'
poses:
- header:
frame_id: 'map'
pose:
position:
x: -2.0
y: 1.5
z: 0.0
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 1.0
- header:
frame_id: 'map'
pose:
position:
x: 1.0
y: -1.5
z: 0.0
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 1.0
- header:
frame_id: 'map'
pose:
w: 1.0 "n:
Waiting for an action server to become available...
Sending goal:
path:
header:
stamp:
sec: 0
nanosec: 0
frame_id: map
poses:
- header:
stamp:
sec: 0
nanosec: 0
frame_id: map
pose:
position:
x: -2.0
y: 1.5
z: 0.0
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 1.0
- header:
stamp:
sec: 0
nanosec: 0
frame_id: map
pose:
position:
x: 1.0
y: -1.5
z: 0.0
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 1.0
- header:
stamp:
sec: 0
nanosec: 0
frame_id: map
pose:
position:
x: -1.0
y: 2.0
z: 0.0
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 1.0
controller_id: FollowPath
goal_checker_id: general_goal_checker
Goal accepted with ID: 9ce6b1f8b3a44dfca656fcbc8e7c2c6a
Result:
result: {}
Goal finished with status: ABORTED |
thanks for your replies and focus on the issue. ^_^
@padhupradheep uh huh , i failed all the time in my environment.. Did you test also within
uh.... the result seems the same after removing. |
I see this too, but I can't explain it. If its not happening in the Python or BT which uses the Python and C++ Action APIs respectively, I expect its an issue with the CLI parsing (or how its populated?) and not something in Nav2. I also see this in Iron/Rolling on 22.04 (not rolling 24.04, can't test that yet). I know the CLI populating is really really finnicky, so it wouldn't surprise me if there's something just not quite formatted as it expects that is causing the issue. I usually do the |
Okay, now I just tested the default nav2_bringup. I noticed that the coordinates that @GoesM is giving is outside the map. That's the reason why we have a resulting plan with 0 poses. @GoesM: I hope you are not using anyother special world. I tried the following coordinates, and it worked fine for me. Only thing is I couldn't visualize the global plan for some weird reason.
Note that, I have all the packages installed as binaries and not built from source on 22.04 |
@padhupradheep Thanks a lot ! You're right ! It's because some poses are outside the map so that nav2 drop it. Greatly thanks for all of your reply. No problem about this issue anymore. |
Bug report
Required Info:
Steps to reproduce issue
my command:
callback info:
Expected behavior
Actual behavior
the navigation2 regard my path as an empty path (following it log):
Additional information
I'm not sure whether my command was wrong or something went wrong in navigation2.
I'd appreciate it if anyone could help me ^_^.
The text was updated successfully, but these errors were encountered: