-
Notifications
You must be signed in to change notification settings - Fork 15
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
Unable to set the initial pose of the vehicle #87
Comments
Other than that, I've no idea about what might be causing this issue. Please make sure that you've followed the steps in the documentation. If you've encountered any errors or missing steps while following the Quick Start Demo, please let us know. 👍 |
This is my first time using Autoware, and the build process using Ansible went smoothly. However, during the colcon build compilation of Autoware, I encountered some warnings (I'm not sure if they affect the build). I haven't used Tier IV's AWSIM before. The second solution mentions migrating autoware_msgs messages, which I don't quite understand. Could you please explain it in more detail? Thank you. |
I've also encountered the same issue(unable to set initial pose). P.S. This is my first time installing Autoware and AWSIM. |
I figured out that my Autoware's msg type of '/vehicle/status/velocity_status' has changed from ''autoware_auto_vehicle_msgs/msg/VelocityReport" to "autoware_vehicle_msgs/msg/VeocityReport". Now I'm considering to make changes below.
|
@KTKTKT0401 Hopefully we will release the updated version soon. Sorry for the inconvenience with the current release 🙏 |
Thank you for your urgent reply! |
@KTKTKT0401 @Hjqhhhhhc Hi! Please let us know if your issues still persists with the new release. |
@mozhoku |
thank you. After the update, the problem was resolved. |
Hello, I would like to ask how you discovered changes in Autoware message types. This is very important to me, thank you! |
After updating AWSIM, the initial pose of the car displays correctly, but it cannot autonomously navigate after setting a goal. There is an error in the terminal: [service_log_checker_node-4] [ERROR] [1720076453.268919025] [system.service_log_checker]: /api/operation_mode/change_to_autonomous: status code 1 'The mode change is blocked by the system.' (/default_ad_api/node/operation_mode). Additionally, in RViz, there is an error: Multiple Markers in the same MarkerArray message had the same ns and id: (traffic_light,70127). Have you encountered this? |
You can see the changes here:
@Hjqhhhhhc |
I haven't tried AWSIM, but in my AWSIM_lab environment, I succeeded my planning and control until the vehicle reaches the goal pose. By the way, how I figured the msg type is below.(I leave this answer, for the aim of leaving my personal memo of how I found the issue as well as answering the question above.) 2)I used rqt and listed up the topic used in the '/localization/pose_estimator/ndt_scan_matcher'. I looked for this ros2 node, because the localization error was occuring. 3)I looked up for a source of the ros2 topic '/localization/pose_twist_fusion_filter/biased_pose_with_covariance' using rqt, and I figured the two topics below are the two ROS2 topics, published from AWSIM_lab. 4)I used the command ros2 topic info and figured out when I tried to ros2 topic info the '/vehicle/status/velocity_status' , the error occured. 5)I launched Autoware Planning simulation and checked the msg type of '/vehicle/status/velocity_status' , the msg type was ''autoware_vehicle_msgs/msg/VelocityReport". 6)In the unity project, I found the file "VehicleReportRos2Publisher.cs". |
I am also using the Awsim_labs and following the steps in the documentation,But it didn't succeed.https://autowarefoundation.github.io/AWSIM-Labs/main/GettingStarted/QuickStartDemo/ |
@Hjqhhhhhc Hi, I would like to help you and make sure AWSIM Labs and latest version of Autoware works well with your setup. First, we need to make sure everything is set up correctly on the Autoware side. For this I need basic system information from you. System infoGeneralRun: sudo apt update && sudo apt install -y screenfetch
screenfetch -n And paste the output here? CUDA versionRun TensorRT and cuDNN versionRun both dpkg -l | grep -i tensor
dpkg -l | grep -i cudnn and paste the results here. Loopback multicast stateRun Multicast stateIf you got:
then, your multicast is not enabled. Run You can follow this tutorial to add this as a service so it will run on start automatically. Correct output: mfc@mfc-leo:~$ ip link show lo
1: lo: <LOOPBACK,MULTICAST,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 RMW checkupRun: echo $RMW_IMPLEMENTATION Correct output: Cyclonedds checkupRun: Correct output: <?xml version="1.0" encoding="UTF-8" ?>
<CycloneDDS xmlns="https://cdds.io/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://cdds.io/config https://raw.githubusercontent.com/eclipse-cyclonedds/cyclonedds/master/etc/cyclonedds.xsd">
<Domain Id="any">
<General>
<Interfaces>
<NetworkInterface name="lo" priority="default" multicast="default" />
</Interfaces>
<AllowMulticast>default</AllowMulticast>
<MaxMessageSize>65500B</MaxMessageSize>
</General>
<Internal>
<SocketReceiveBufferSize min="10MB"/>
<Watermarks>
<WhcHigh>500kB</WhcHigh>
</Watermarks>
</Internal>
</Domain>
</CycloneDDS> If not, let's fix it following these:
Rebuild AutowareFirst, navigate to the autoware workspace. Then, call # Fetch all updates
git fetch
# Discard all changes to tracked files
git checkout .
# Remove all untracked files
git clean -fd
# Checkout to latest main
git reset --hard origin/main
mkdir src
vcs import src < autoware.repos Make sure system is up to date: sudo apt update
sudo apt dist-upgrade You should have an Nvidia GPU on your machine to run AWSIM Labs demo since it requires lidar and camera neural networks. Make sure you have the correct CUDA version (12.3). Source humble: source /opt/ros/humble/setup.bash Install the ROS dependencies: rosdep update
rosdep install -y --from-paths src --ignore-src --rosdistro humble Build Autoware colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=1 Make sure you have the latest model artifactsRemove the Follow these to download them:
Run AWSIM Labs and Autoware againFollow: https://autowarefoundation.github.io/AWSIM-Labs/main/GettingStarted/QuickStartDemo/ |
@sasa42 I'm very sorry for the inconvenience 🙇. I think your set up is now ready, all the versions check out! And you can place the car through rviz, this means communication is also working well. But your problem is related to this issue:
This feature was merged to Autoware just yesterday so right now AWSIM Labs or anything else, doesn't work with the latest Autoware. Until the issue is resolved, I've created this autoware/awsim-labs-stable branch where I've fixed the repo versions to 3 days ago ( To test the AWSIM Labs with Autoware for now, here are the steps: # cd into autoware folder
git fetch --all
git checkout origin/awsim-labs-stable
git switch awsim-labs-stable
rm -rf src build install log
mkdir src
vcs import src < autoware.repos
source /opt/ros/humble/setup.bash
rosdep update
rosdep install -y --from-paths src --ignore-src --rosdistro humble
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=1 Now the AWSIM Labs should work with this version of the Autoware. We will also fix the issue as soon as possible and update you. |
Also don't reopen the sensors on 1.1.1
Tomorrow we'll do a 1.1.2 release to cover that bug, it's fixed on the main branch of AWSIM Labs. |
Thanks for the detailed help.
would be the fast track for a WSL2 setup. Is there some benchmark data like fps from awsim labs unity scene and rviz available for this awsim labs quickstart drive? |
Hmm, I don't have experience with WSL2 but it may cause performance drop. Normally with your machine, everything should be very fast on a native Ubuntu installation. (I generally prefer dual boot) But I'm curious about the AWSIM Labs and Autoware performance on WSL2 too, excited to see your results! Edit:
|
We can share it tomorrow. But for your machine, on a native ubuntu installation, you should get 50+FPS on AWSIM Labs and no lag on the Autoware side (both running on the same machine). I don't know about WSL2 though. |
I did a rebuild with... with cd into autoware foldergit fetch --all git checkout origin/awsim-labs-stable rm -rf src build install log source /opt/ros/humble/setup.bash rosdep update colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=1 but there is no initial pose given. |
For some reason you cannot see the camera image as well and also your simulation is still very slow. (because of WSL2) Could you share the autoware logs in a https://gist.github.com/ ? Also could you turn off both AWSIM and Autoware and just open AWSIM Labs? Then check for output of these commands: mfc@mfc-leo:~$ ros2 topic list
/awsim/ground_truth/localization/kinematic_state
/awsim/ground_truth/vehicle/pose
/clock
/control/command/control_cmd
/control/command/emergency_cmd
/control/command/gear_cmd
/control/command/hazard_lights_cmd
/control/command/turn_indicators_cmd
/initialpose
/parameter_events
/perception/traffic_light_recognition/external/traffic_signals
/rosout
/sensing/camera/traffic_light/camera_info
/sensing/camera/traffic_light/image_raw
/sensing/gnss/pose
/sensing/gnss/pose_with_covariance
/sensing/imu/tamagawa/imu_raw
/sensing/lidar/left/pointcloud_raw
/sensing/lidar/left/pointcloud_raw_ex
/sensing/lidar/right/pointcloud_raw
/sensing/lidar/right/pointcloud_raw_ex
/sensing/lidar/top/pointcloud_raw
/sensing/lidar/top/pointcloud_raw_ex
/vehicle/status/control_mode
/vehicle/status/gear_status
/vehicle/status/hazard_lights_status
/vehicle/status/steering_status
/vehicle/status/turn_indicators_status
/vehicle/status/velocity_status
mfc@mfc-leo:~$ ros2 topic hz /sensing/camera/traffic_light/image_raw
average rate: 10.033
min: 0.091s max: 0.117s std dev: 0.00849s window: 12
average rate: 10.042
min: 0.091s max: 0.117s std dev: 0.00789s window: 23
average rate: 10.054
min: 0.091s max: 0.117s std dev: 0.00769s window: 34
average rate: 10.019
min: 0.091s max: 0.117s std dev: 0.00763s window: 45
mfc@mfc-leo:~$ ros2 topic hz /sensing/lidar/top/pointcloud_raw_ex
average rate: 10.054
min: 0.093s max: 0.117s std dev: 0.00722s window: 11
average rate: 9.982
min: 0.093s max: 0.117s std dev: 0.00746s window: 22
average rate: 10.031
min: 0.093s max: 0.117s std dev: 0.00621s window: 33 Also if they are low, try pulling the time scale slider to 0.2 to see how they change. |
....also after i enabled the pointcloud_raw in AWSIM Labs UI... do i have to activate rhese 3 checkboxes? |
something is wrong with your screenshot link above. I've just realized, your lidars are not visible at all on your setup. Normally it should open like this, I did not click anything in UI: Also I've learnt Graphy was showing the RAM usage and 1.1.1 is optimized for it and those numbers are normal. But you don't have lidar simulation at all. I don't know why this happens (apart from WSL2) |
Let's keep discussing this in: |
Is this issue resolved @xmfcx ? Can we close this one if you are continuing in the separate issue? |
The issue I encountered during the quick start demo is that the initial pose doesn't automatically match in the Autoware and AWSim joint simulation. Even manually setting the initial pose doesn't work. What could be the problem?
The text was updated successfully, but these errors were encountered: