f1tenth / f1tenth_gym_ros

Containerized ROS communication bridge for F1TENTH gym environment.
MIT License
154 stars 106 forks source link

interaction with rviz not working and not able to start the agent controller #16

Closed luigiberducci closed 2 years ago

luigiberducci commented 3 years ago

Describe the bug The simulation does not start and the interaction with rviz is not working as expected (compared with the same configuration run with f1tenth_simulator).

To Reproduce Steps to reproduce the behavior:

  1. Build this docker image, using the workaround suggested here
  2. Start the container with sudo docker.sh
  3. Launch the example agent with roslaunch f1tenth_gym_ros agent_template.launch
  4. Not able to interact with rviz or start the controller

Expected behavior As reported in the readme: "You shagent controlould see an rviz window show up, showing the map, the two cars (ego is blue and opponent is orange), and the LaserScan of the ego car. The opponent is running pure pursuit around the track, and the ego agent is not moving."

Screenshots Only the ego vehicle is visualized. Screenshot from 2021-05-10 14-56-00

Desktop (please complete the following information):

Additional context I also tried to use a working agent follow_the_gap tested with the f1tenth_simulator. The visualization in rviz does not allow to place the racecar in other position, however the message is correctly published in the initialpose topic. I also tried to press n to activate the agent control, without any success.

hzheng40 commented 2 years ago

Ported to ros2, resetting pose should work now. Documentation is still in progress for agent control and multiple agents.