f1tenth / f1tenth_gym_ros

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

Opponent Car not showing up #8

Closed anshums closed 4 years ago

anshums commented 4 years ago

Hi, I was able to build the docker image. After launching the container, when I run the agent_template launch file, it only shows the ego-vehicle in the rviz window and not the opponent vehicle. What might be the issue here? Screenshot from 2020-07-20 04-05-24

anshums commented 4 years ago

The git clone link was providing a non-latest version of the directory. I downloaded the zip file. It is working fine now.

hzheng40 commented 4 years ago

The opponent car only shows up on the multi_node branch.

anshums commented 4 years ago

Thanks.

anshums commented 4 years ago

Hi I am trying to execute two separate scripts in the multi-node branch. When I publish speed and steering angle on /ego_id/drive topic for the ego vehicle, only the steering of the ego-vehicle works. Similarly when I publish speed and steering angle on /opp_id/drive topic, only the steering of opp-vehicle works. However sometimes the opp-vehicle and ego-vehicle moves with publishing on /opp_id/drive only. On echoing the ros-topics I get what I am publishing but the vehicles are not moving. Can you help?

hzheng40 commented 4 years ago

Could you try checking the subscription and published topics of the nodes using rosnode info?

hzheng40 commented 4 years ago

Closing due to inactivity.