f1tenth / f1tenth_doc

f1tenth documentation source code
https://f1tenth.readthedocs.io/en/latest/
Other
47 stars 16 forks source link

Problem while driving two cars at the same time #74

Closed ruks001 closed 6 months ago

ruks001 commented 6 months ago

I have two f1tenth cars. On both of them, I followed the same steps as described in the f1tenth website. Whenever I try to drive a car manually, both of them get commands from the same joystick. I have connected both cars to different joysticks but still, both act at the same time when only one joystick is used. Do I need to change anything? Both of them are connected to the same local wifi and use "no machine". When I turn off the wifi, then only they both ack separately.

hzheng40 commented 6 months ago

Make sure you're setting different ROS_DOMAIN_ID environment variables on the two cars, or they'll be sharing all topics. See here for more details.