f1tenth-dev / simulator

ROS & Gazebo F1/10 Autonomous Racecar Simulator
Apache License 2.0
77 stars 32 forks source link

/scan topic not being published #9

Closed chris-wei-17 closed 4 years ago

chris-wei-17 commented 4 years ago

Have there been any recent changes that would lead to the /scan topic not being published? After launching everything it looks like most all other topics are there except for /scan almost as if Gazebo is missing the laser sensor in the xacro.

varundevsukhil commented 4 years ago

The simulator does not produce a standalone laserscan topic under /scan, but under the virtual racecar namespace /car_name/scan. Have you checked the topic under the racecar namespace? If not, can you post the output for the following command here?

$ rostopic list

The racecar xacro is modular, so it is possible that some arguments are missing from where the spawn service is being called. Are you using the launch file template provided with the simulator? If not, how are you creating the virtual racecar in Gazebo?

varundevsukhil commented 4 years ago

Stale topic