Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

There is no map showing in the rviz window when launching the simulation.launch file. #3

Open
Hello970 opened this issue Apr 24, 2023 · 4 comments

Comments

@Hello970
Copy link

Device Environment: Ubuntu20.04, ROS Noetic
After launching the simulation.launch file, it first lists the error:
Screenshot from 2023-04-24 10-52-03
[ERROR] [1682304711.927218665, 0.340000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/front_right_wheel
[ERROR] [1682304711.927957838, 0.340000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/front_left_wheel
[ERROR] [1682304711.928716595, 0.340000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/rear_left_wheel
[ERROR] [1682304711.929464850, 0.340000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/rear_right_wheel
At the same time, there is nothing showing in the rviz with world frame. When I changed the frame to the base_link, it can show the car model. However, there is always no map. In Gazebo, it can show the map and car normally. When I operate the car with the keyboard, the car can move successfully.
Screenshot from 2023-04-24 10-52-43
Screenshot from 2023-04-24 10-53-23
Screenshot from 2023-04-24 10-53-45

@hrxsd
Copy link

hrxsd commented Jul 19, 2023

@Hello970 I had the same problem, did you solve it?

@LiuL0ngl0ng
Copy link

LiuL0ngl0ng commented Jul 28, 2023

@Hello970@hrxsd,If you wang use it in noetic, you only need to modify two places,and this problem will be solved:
1、putn/src/scout_simulator/scout_description/urdf/scout_v2.xacro on the twelfth line:
<HDL-32E parent="base link" name="velodyne" topic="/velodyne points" hz="10" samples="440" gpu="false" lasers="32" max range="100"
<origin xyz=o.3" rpy="o o o" />

modify as:
<xacro:HDL-32E parent="base link" name="velodyne" topic="/velodyne points" hz="10" samples="440" gpu="false" lasers="32" max range="100"
<origin xyz=o.3" rpy="o o o" />
</xacro:HDL-32E>
2、putn/src/putn/putn_planning/src/PUTN_vis.cpp on the 52th line:
map_vis.header.frame_id = "/world";
should be modified as:
map_vis.header.frame_id = "world";

@Usaywook
Copy link

Usaywook commented Sep 4, 2023

I also have the same problem. Hello @LiuL0ngl0ng, I tried to modify the two places that you advised. However, I could not solve the problem. Is there anything additional I need to do? Has anyone else faced the above problem and solved it?

For my case, I have lidar in Scout but not scan messages in ROS.
image

image

image

@Usaywook
Copy link

Usaywook commented Sep 4, 2023

I solved this issue by installing velodyne_gazebo_plugins

sudo apt-get install ros-melodic-velodyne-gazebo-plugins

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants