Cbtraffic editor

From CajunBot Wiki

Jump to: navigation, search

Cbtraffic_editor is a GTK program used for creating and editing object files for use in the CajunBot simulator. Traffic vehicles and static objects can be added to create a more dynamic environment for the simulated bot to interact with.

CBTraffic Editor interface


Contents

[edit] Using CBTraffic Editor

When you start up the program, you will see the following interface:

File:CBTraffic Editor- *Unsaved File.png

At this point you can start creating a new object file or edit an existing object file.

  • If you open an existing object file then the objects will be loaded and displayed in the tree view widget in the lower part of the main interface.
  • If you choose to start creating a new object file, then you can click on the Add Object button near the top of the interface.

[edit] Adding an object

  • Click the Add Object button from the main interface. A dialog will show up to choose the type of object:

File:Screenshot-Select_Object.png

[edit] Autonomous

  • On the dialog that pops up, use the drop down interface to select Autonomous.
  • You will see a new object listed in the tree view widget on the main interface.

[edit] Dynamic

  • On the dialog that pops up, use the drop down interface to select Dynamic.
  • You will see a new object listed in the tree view widget on the main interface.

[edit] Static

  • On the dialog that pops up, use the drop down interface to select Static.
  • You will see a new object listed in the tree view widget on the main interface.

[edit] Mesh

  • On the dialog that pops up, use the drop down interface to select Mesh.
  • You will see a new object listed in the tree view widget on the main interface.

[edit] Editing an autonomous object

  • Select the autonomous object you wish to edit in the listing of the tree view widget on the main interface.
  • To edit the common object properties, click on the Edit Properties button on the main interface.
    • From this dialog you can edit the properties of the object and choose to save them if you desire.

File:Screenshot-Autonomous Object Properties.png

  • To edit the sensors of the object, click on the Edit Sensors button on the main interface.
    • You can double click on a sensor entry to edit it or click the Edit button.
    • You can add a new sensor entry by clicking the Add button.
    • You can remove a sensor entry by selecting it and clicking the Remove button.

File:Screenshot-Edit Sensors.png

[edit] Editing a dynamic object

  • Select the dynamic object you wish to edit in the listing of the tree view widget on the main interface.
  • To edit the common object properties, click on the Edit Properties button on the main interface.
    • From this dialog you can edit the properties of the object and choose to save them if you desire.

File:Screenshot-Dynamic_Object_Properties.png

  • To edit the goals of the object, click on the Edit Goals button on the main interface.
    • You can double click on a goal entry to edit it or click the Edit button.
    • You can add a new goal entry by clicking the Add button.
    • You can remove a goal entry by selecting it and clicking the Remove button.
    • You can also click the Add Range button to add a range of waypoints.
    • You can reorder the goals by using the "Up" and "Down" buttons. They also work if you make a multi-selection.

Editing goals:

File:Screenshot-Edit_Goals.png
Adding a range of goals:

File:Screenshot-Add_Range.png

[edit] Editing a static object

  • Select the static object you wish to edit in the listing of the tree view widget on the main interface.
  • To edit the common object properties, click on the Edit Properties button on the main interface.
    • From this dialog you can edit the properties of the object and choose to save them if you desire.

File:Screenshot-Static_Object_Properties.png

[edit] Editing a mesh object

  • Select the mesh object you wish to edit in the listing of the tree view widget on the main interface.
  • To edit the mesh object properties, click on the Edit Properties button on the main interface.
    • From this dialog you can edit the properties of the object and choose to save them if you desire. For example, you may choose to change the filename of the indices or vertices files, or change whether to use full or base path types.

File:Screenshot-Mesh_Object_Properties.png

[edit] Removing an object

  • Select the object you wish to remove in the listing of the tree view widget on the main interface.
  • Click the Remove Object button from the main interface to remove the object.

File:Screenshot-CBTraffic_Editor-_remove.png

[edit] Opening an object file

You can click the Open option from the File menu to open an object file. The default path is in $CBCONF/objects.

[edit] Saving the object file

You can click the Save or Save As option from the File menu to save the object file. The default save path is in $CBCONF/objects.

[edit] Starting a new object file

If you are currently working on an object file and you choose File->New, then the current object file that you are working on will be erased without a prompt to save.

[edit] See also

Personal tools