Copy Link
Add to Bookmark
Report

RTMaps: how to create a new component in C++

This guide shows how to create a component for Intempora's RTMaps in C++.

Francesco's profile picture
Published in 
RTMaps
 · 7 years ago
Figure 1: RTMaps GUI.
Pin it
Figure 1: RTMaps GUI.

The following software are needed:

  • RTMaps from Intempora
  • Microsoft Visual C++ Express from Microsoft

Microsoft Visual C++ Express is the light (and free) version of the C++ development environment. It does not support “add-ins” as in standard versions of Visual Studio. So, the RTMaps SDK Wizard cannot be integrated automatically in the Microsoft Visual C++ Express menus when installing RTMaps. However Intempora provides an external tool that can be integrated in the VC++ Express environment.


The following steps explain how to integrate the RTMaps tool into VC++ Express:

1. Start Microsoft Visual C++ Express 2015

2. Select menu Tools then External Tools…

Figure 2: Start Microsoft Visual C++ Express 2015 and select menu Tools then External Tools…
Pin it
Figure 2: Start Microsoft Visual C++ Express 2015 and select menu Tools then External Tools…

3. Click on “Add” button.

4. For the new tool, the configuration is the following:

Title: RTMaps SDK Wizard
Command: C:\Program Files\Intempora\RTMaps 4\tools\rtmaps_sdk_wizard_vc2015.cmd
Arguments: $(SolutionDir)\$(SolutionFileName)

Check the “Use Output Window” option

click "Apply".

Figure 3: RTMaps SDK Wizard parameters.
Pin it
Figure 3: RTMaps SDK Wizard parameters.

The installation of the RTMaps SDK Wizard is completed and it is possible to access the wizard from the Tools menu.


Note: Each time a new project or component is created in the RTMaps SDK with the wizard, the Visual C++ Solution file and/or Project files will be modified by the wizard. Visual C++ will detect that modification and suggest to Reload it. Just accept by clicking on the “Reload” button.

Figure 4: TOP: the RTMaps SDK Wizard is available in the Tolls menu. BOTTOM: RTMaps project reload.
Pin it
Figure 4: TOP: the RTMaps SDK Wizard is available in the Tolls menu. BOTTOM: RTMaps project reload.

After install of the RTMaps SDK Wizard we can create a new package.

The steps to create new package in RTMaps are:

  1. in Microsoft Visual C++ Express 2015 select menu Tools then RTMaps SDK Wizard
  2. type 1 to create a new package
  3. enter the name of the package name
  4. click on the Reload button
  5. on the left side of the screen the new created package is shown

Figure 5: steps to create new package in RTMaps.
Pin it
Figure 5: steps to create new package in RTMaps.

The next step is to create a new component.

To create a new component:

  1. in Microsoft Visual C++ Express 2015 select menu Tools then RTMaps SDK Wizard
  2. type 2 to create a new component
  3. type 2 to select the package previously created (ex. TestPackage)
  4. enter the name of the component, then press OK


The component will be automatically created and appears on the right side of the screen.

Figure 6: steps to create a component in RTMaps.
Pin it
Figure 6: steps to create a component in RTMaps.

That's it. The RTMaps SDK Wizard automatically creates the C++ code for the component. This is a working code.

As a next step, we have to build it. To do that, right click on the component, than select Build.

Figure 7: component build in RTMaps.
Pin it
Figure 7: component build in RTMaps.

At the bottom of the screen we can see the result of the build process. A file .pck is created.

Figure 8: result of the build process.
Pin it
Figure 8: result of the build process.

Finally, as last step, we can load the generated .pck file into RTMaps.

The steps are:

  1. start RTMaps
  2. on the left side of the screen, change the path to the one where the .pck was created by the build process
  3. select the created .pck file
  4. right click on the file, than select load package
  5. the component appears in the list of registered components
  6. drag and drop it on the project to use it

Figure 9: import the created componet in RTMaps.
Pin it
Figure 9: import the created componet in RTMaps.
← previous
loading
sending ...
New to Neperos ? Sign Up for free
download Neperos App from Google Play
install Neperos as PWA

Let's discover also

Recent Articles

Recent Comments

Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT