Arduino+Xbee

PaulS:

I cant write the code if I dont know how its going to work with using xbee's

If you "know the ins and outs" of the ping sensor, it should be obvious that the XBee, by itself, will not get data from a sensor that needs to be an output device then an input device.

You can't upload code to the XBees, so writing code for them is not going to happen.

I dont think you're understanding what I'm doing. It's possible.

Step 1:
arduino
step 2:
arduino-xbee
step 3:
xbee-ping
step 4:
ping

This guy does it I just can't interpret how:
http://www.techhive.com/article/252138/meet_the_robotic_luggage_that_follows_you_like_a_dog.html

Watch the video on the bottom forward to time 15:40