Back to V-REP Main Page

We start from an Inventor CAD file off an RC car that we want to use as a cheap autonomous robot for educational purpose:

  1. Convert the CAD file to a format importable in V-REP
  2. Simplify the CAD to create the dynamic model
  3. Make dynamic model more realistic
  4. Add the CAD parts
  5. Program the ROS Interface
  6. Test
  7. Build the track
  8. Test again

The original CAD file of the RC car has been made on Inventor. It has been converted to a bunch of STL files, one for each part. As we will have to define ourselves the links in V-REP when building the dynamical model, we do not need to use the links defined in Inventor.

The dynamic model of the car is quite realistic, it models the steering bar and the gears between the motor and the rear wheels axis.

The V-REP file with only the dynamic model can be found here seance4_modele_realiste_dyn.ttt

We take all the parts from the CAD file and we import them as static objects in V-REP. Thanks to Jules's car body, the RC car looks now quite well in V-REP. However, to see the inside of the car and e.g. the moving gears, the car body opacity has been reduced (in color settings in V-REP).

The V-REP file is here seance4_modele_realiste.ttt. Another V-REP file can be usefull with car on a lifting bridge seance4_modele_realiste_pont_levage.ttt.

Now we can test that the car can be controlled by ROS. After starting roscore, we just update the topics with the rostopic pub command. The car is control, as we do it with th RC controller, by two topics :

Here are some examples of commands :

rostopic pub -1 /vrep_steer_angle std_msgs/Float32 -- -20.0   
rostopic pub -1 /vrep_speed_motor std_msgs/Float32 -- 5    

The last file is the full V-REP file with the track : seance4_modele_realiste_et_piste.ttt. The track can be built and modified using Blender as explainedhere.

To import the track created by Blender in V-REP :

ToDo : create a collision form from the car body, now the collision is only done with the hidden elements of the dynamic model, it is OK for the wheels but not for the body of the car.

Back to top.