Unable to find a Veins v 5.0 beginner tutorial - veins

as VEINS 5.0 is a major rewrite for veins, is it possible to find a basic example or tutorial regardless of the one offered on veins website ?
for example : creating a tic toc example integrated with veins ?
thank you very much.

For an easy start into Veins 5, I'd recommend downloading "Instant Veins" and starting to play with the veins_inet subproject, which is already imported into the workspace as a separate project, ready to be run. The project consists of only a few files and its VeinsInetSampleApplication module is only roughly 60 lines of code, so should be straightforward to understand.

Related

MySql connector-c++ wont link in QtCreator but works fine locally on raspberry pi3

Firstly, thank you in advance for at least reading this question.
Secondly, feel free to call me an idiot if this is a "no brainer"
Now down to the issue at hand...
I am running Ubuntu 16.04 (64bit) with QT Creator as my IDE and on the whole it works great. I can cross compile for the Raspberry Pi3 (running raspbian) and also compile plugins for X-Plane.
Everything was going great until I needed to implement MySql into my project. That's when it all went south.
I can not use the Qt library for this as X-Plane does not like anything Qt related in its plugins. But that is fine, I have connector-c++ working on that machine and it connects to my MySql server and does everything it's supposed to.
I think I have read just about every forum and watched every youtube video on this but can not get Qt Creator to compile with connector for the raspberry pi.
I wrote/compiled a test app locally (with g++) on the pi and it works great. However for some reason (government plot maybe?) it refuses to link the libraries when compiling under Qt Creator.
The error I get when compiling in QtCreator is:
undefined reference to `get_driver_instance'
Currently,
I have followed the instructions for setting up a cross compiler here:
https://wiki.qt.io/RaspberryPi2EGLFS
Downloaded the connector code from here:
git clone https://github.com/mysql/mysql-connector-cpp
I have followed the instructions for compiling connector-c++ here:
https://dev.mysql.com/doc/connector-cpp/en/connector-cpp-installation-source-unix.html
And I have banged my head 1000x on a brick wall here:
(picture of blood stained wall not available)
Also, I have tried compiling connector on my Ubuntu pc with paths to the pi's sysroot etc. but i think it made a 64bit version which causes Qt Creator to have a dummy spit about "unrecognized format".
I am hoping that this is just me having a "senior moment" and that someone can point me in the right direction.
To save putting up irrelevant logs/code I will wait until someone asks for it and then copy/paste what they need.
Again, thanks in advance and know that I will be eternally grateful for any light on this matter (preferably before I go even insanerer)
Well after 2 weeks of pain, I have solved this problem. Here is what I think is the issue:
Firstly, I found that mysqlcppconn is not needed (at least for me) and used the mysql libraries in /usr/lib
Secondly, the symlinks to libmysqlclient.so.6.0.22 were by default:
libmysqlclient.so.6 -> libmysqlclient.so.6.0.22
The compiler was looking for libmysqlclient.so which didn't exist. So I created the link (libmysqlclient.so -> libmysqlclient.so.6) and it worked!!
Thanks to all who helped.

Simulation examples on SOFA framework with haptics force feedback

For last two weeks I was trying to build SOFA framework and run some examples, with haptics force feedback, from this directory ../plugins/Sensable/examples/Denistry/.
But unfortunately I can not succeed to run it properly, because runSofa.exe stops running, when I open any of those .scn files from the directory mentioned above. I followed all the instructions to build and run from official site (https://www.sofa-framework.org/community/doc)
What I did is :
downloaded 16.08 branch sources from https://github.com/sofa-framework/sofa
configured and generated Visual Studio win32 project by CMake
built release sofaRun and sensable plugin
errors occurred in senable project, especially NewOmniDriver.cpp and OmniDrivver.cpp files. I added sofa::helper namespace [adding_sofa_helper][1]
then it compiled without errors
I am hoping to find anyone who was able to run or build simulations with haptics force feedback and want to understand what I am doing wrong. If you need more explanation about what exactly I did, I will provide it. I will appreciate any response related to this topic.
I have succeed on running examples with haptic feedback using sensable plugin. The sofa developers are still updating the sources of the framework. So I checked the master branch of their repository and build that sources. After that the examples with haptic feedback worked as it suppose to do. – Ruslan Rakhmatov just now

FindOpenCV.cmakeConfig.cmake

I'm new to Unix and trying to get OpenCV running on a Raspberry Pi.
Have copied a file called FindOpenCV from github and installed that in usr/shared/OpenCV and now get a message from the interpreter saying it can't find FindOpenCV.cmakeConfig.cmake.
Been going through the stuff on the internet for 4 days now and no further ahead. Can anyone help a complete beginner please.
Thanks in anticipation.
NeilK
This file should be installed as part of OpenCV installation along with many other files. You need to install OpenCV, not pick random files from the repo. How to do it depends on what OS your Pi board is running.

Sonar runner is not listing the CxxCppCheckSensor while runner is started

I am new to sonar, i have installed sonarqube on RHEL 7 machine and its version is 5.1.1.
and the runner's version is 2.4.
I have four cpp related plugins, i tried with each one,
sonar-cxx-plugin-0.9.4-RC3.jar sslr-cxx-toolkit-0.9.4-RC3.jar
sonar-cpp-plugin-3.6.jar sonar-cpp-plugin-3.5.jar
sonar-cxx-plugin-0.9.jar
nothing seems to be listing the Sensor CxxCppCheckSensor . i need this for integrating cppcheck with the sonar. my cppcheck version is 1.68.
i have included sonar.cfamily.cppcheck.reportPath = in my sonar.project.properties file too.
Am I doing something wrong here ? Please help me out.
1.And do these cpp plugins needs license or trial key for proceeding?
2. Can cppcheck's xml report alone be viewed in sonar's dashboard?
Thanks in advance :)
sonar-cpp-plugin correspond to the commercial plugin and of course needs a license, sonar.cfamily.cppcheck.reportPath property is only for the commercial plugin.
sonar-cxx-plugin correspond to the community C++ plugin and has different properties.
Do not mix the two different plugins and documentation, pick one and follow one documentation installing only one of them.

Porting from pcl-1.5 to pcl-1.7

I am using ubuntu14.04. I have a code which is written in pcl-1.5. I now want to run it in pcl-1.7. It's giving a lot of compilation errors.
Is there a way to port my classes and functions from pcl-1.5 to pcl-1.7?
I understand that you want to build your project on PCL 1.5 while PCL 1.7 is installed. This is possible. I assume you install PCL 1.5 from source and then build it so that it ends up with a build directory. These instructions are vague because it has been a while since I have done this but here they are: In the project you are trying to build (I am assuming you are using cmake), put something like the following line before the line find_package(PCL REQUIRED) (or the similar line that you have):
SET(PCL_DIR /path/to/pcl1.5/build CACHE LOCATION "Where the PCL version I want to use has been built to")
---Edit based on comment---
Okay, so it seems by PCL 1.5 code you mean code that you have previously written for PCL 1.5 and want to run with PCL 1.7. This should be possible but those with a good knowledge of the main differences between 1.5 and 1.7 probably will not have the time to answer this question. As such I suggest you check the errors as they come up during compilation and running and check the new API for the new way of doing things. It will be easier to locate the errors if you compile your project bit by bit. If you understand what the code is doing it will be easier also. That is all that I have.