4.10-CLion-ROS development configuration

CLion Configuration

Foreword

Began to see the source code, in order to be better able to look at the source code, a code editor has been unable to meet, so its move into CLion.
CLion learning
open, familiar interface, editing, compiling, debugging, version control
will ROS project into
CLion setting
cancel gdb7.8 buldled
/ usr / local / bin / gdb
start CLion from bash, modify the .desktop file
Desktop file name was jetbrains- clion.desktop
cd / usr / report this content share / Applications
sudo gedit JetBrains-clion.desktop
Exec = bash -i -c "/home/zs/ProgramFile/clion-2016.1/bin/clion.sh"% f
migration before entering the first catkin_make
appear problem, often for no apparent reason card, CPU is not running, the program does not continue to run, but do not mistake
the standard practice of writing include the header file
that contains the standard header file

include

The compiler will find this file corresponds to the file
contains its own header file

include "filename"

The compiler go to the current directory where the file search with wood there, if not go / include to search
git clone https://github.com/qboticslabs/mastering_ros_demo_pkg.git
rosarnl of action should be the server
do not always think by modifying someone else's code to correct the error, the error is certainly own environment!
find_package (TF)
install Serial
git clone https://github.com/wjwwood/serial.git
the make
the make the Test
the make install
sudo mv Serial / / opt / ROS / Indigo / report this content share /
or failed to properly compile flir_ptu_driver
sudo mv ./serial ~ / Documents / zsProjects / zsP3AT / zsROS_ws / src
compiled successfully!
Import CLion
will CMake Build options from "-j4", changed to "-j1"
is set to automatically reload CMakeLists.txt
Change Project root to / zsP3AT / zsROS_ws
the official Cyton packets into catkin builds
After check data, the old version of the package has expired, new VIEWER no longer support this package
, if not, to use NASA's cyton-ros-gamma
to try directly with the new version of the package!
Follow the video do, the toolkit folder is missing
online to find unsuccessful, because there is no doubt it is not installed with administrator privileges
not
really do not have this folder
by the lookup, / bin folder there are a lot plugin package, first toolkit as well bin
EC_TOOLKITS = Export "/ usr / local / Robai / Cyton the Gamma 1500 Viewer_4.0.20130130 / bin"
Export the LD_LIBRARY_PATH = L D L I B R A R Y P A T H :" / in s r / l O c a l / R O b a i / C Y t O n G a m m a 1500 V i e w e r 4 .0 .20130130 / l i b " s in d O g p a s s w d a d d Dialout the USER} {
sudo gpasswd --add zs dialout
will be added to the dialout zs user group
permissions given access to serial and USB peripherals
thing is! Installation package completely not working! Not supposed to know!
Really get it working, but to restore the system chant! !
Do not worry, other new versions of software to a repeat!
Install the new version of the software!
Edit ld.so.conf
add
sudo install APT-GET-xcb1 libx11 "/ Home / ZS / Downloads / Robai / Cyton Gamma 1500 Viewer_4.0.12-20160307 / lib"
This to Start Because the Application failed The IT could not the Find or the Load at The Qt platform plugin "xcb".
May the dog!
re-install system!
But wait, back up all files, this mechanism does not use system backup, file directly to the test out of it.
First try to restore a backup, see if you can row
to not worry slightly, preliminary work to do first, and now the environment, not only setting up the robot arm, the robot arm in the final work surface
until 21 to download 16.04 operating system!
First cyton-ros-package out of the project file!
In the software environment can not open, try to get through ROS packages are built so that you can view the source code, and when there is need to wait until then to reinstall the system
This application failed to start because it could not find or load the Qt platform plugin "xcb".
export LD_LIBRARY_PATH= L D L I B R A R Y P A T H : EC_TOOLKITS /../ lib
it!
Tip No servos found; typically this window will not appear fishes should
start compiling
/ usr / bin / LD: CAN -lecMeasure not the Find
/ usr / bin / LD: not the Find -lboost_program_options CAN-MT
/ usr / bin / LD: CAN not the Find MT--lboost_system
boost library reference problem
modify ROS package CytonBuildDefaults.cmake boost on the path name, etc.
more errors, can not end up!
Well, according to the method of doing this right forum
to come out of ROS package

Open with CLion

Guess you like

Origin www.cnblogs.com/lizhensheng/p/11117471.html