Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve problems to install of ROS in MacOS for the HDE visualization #93

Closed
kouroshD opened this issue Feb 6, 2019 · 15 comments
Closed
Assignees
Milestone

Comments

@kouroshD
Copy link
Contributor

kouroshD commented Feb 6, 2019

I Want to install ROS on Mac (Mojave, Version 10.14) in order to visualize the outcomes of HDE, and in my case human state provider, and I have face several issues.
So I post it here the future issues I will face, later, I will add the issues I faced before and how I solved it.

CC @traversaro @diegoferigo @S-Dafarra @lrapetti @claudia-lat

@kouroshD
Copy link
Contributor Author

kouroshD commented Feb 6, 2019

I have this problem, which a part of it is :

In file included from /Users/kdarvish/Desktop/ros_ws/src/bond_core/bondcpp/src/timeout.cpp:30:
In file included from /Users/kdarvish/Desktop/ros_ws/src/bond_core/bondcpp/include/bondcpp/timeout.h:33:
In file included from /Users/kdarvish/Desktop/ros_ws/install_isolated/include/ros/ros.h:38:
In file included from /Users/kdarvish/Desktop/ros_ws/install_isolated/include/ros/time.h:53:
In file included from /Users/kdarvish/Desktop/ros_ws/install_isolated/include/ros/platform.h:55:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:641:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:79:9: error: no member named 'strcoll' in the global namespace; did you mean 'strtoll'?
using ::strcoll;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:172:3: note: 'strtoll' declared here
         strtoll(const char *__str, char **__endptr, int __base);

I followed suggestions provided here, but still threre is the problem.
@traversaro

@kouroshD
Copy link
Contributor Author

kouroshD commented Feb 6, 2019

@traversaro
Copy link
Member

Sorry, I just read this now. @kouroshD did you solved this issue?

@diegoferigo
Copy link
Member

After discussing f2f, I pointed @kouroshD to this Travis build that install ROS lunar in macOS HS.

https://github.com/diegoferigo/blockfactory-demo-ros/blob/afb767a92297a1b543284d7ee17fe7bde74c8752/.travis.yml#L66-L87

I just restarted the build to check that everything still works even today, and the build succeeded.

@traversaro
Copy link
Member

I guess @lrapetti was checking out https://github.com/mikepurvis/ros-install-osx .

@lrapetti
Copy link
Member

lrapetti commented Feb 8, 2019

I guess @lrapetti was checking out https://github.com/mikepurvis/ros-install-osx .

I have not tried yet, but I will in the next days.

As reference, it seems that there are still some problems (and fixes) in High Sierra (which I am currently using)(see mikepurvis/ros-install-osx#116).

@kouroshD
Copy link
Contributor Author

@diegoferigo What you have written is similar what is mentioned in ros official website and https://github.com/mikepurvis/ros-install-osx; but I had a lot of problems to install it.
I would say I have resolved the problem followining https://github.com/mikepurvis/ros-install-osx.
In the next comment I will put the issues I had and how I solved them while following different instructions, some of the responses I know It is not clean, but finally it worked.

At the end, I could not install 3 packages, so I exclude them from my ros installation: diagnostics, pcl_ros, stereo_image_proc.

@kouroshD
Copy link
Contributor Author

Error in brew tap ros/deps:

Related to a deprecated function call:

I have forked the repo and made changes.
$ brew tap kouroshD/homebrew-deps

$ install --from-paths src --ignore-src --rosdistro lunar -y
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
actionlib: No definition of [python-wxtools] for OS [osx]
roslisp: No definition of [google-mock] for OS [osx]
catkin: No definition of [google-mock] for OS [osx]

$ sudo pip install -U wxpython

$ rosdep install --from-paths src --ignore-src --skip-keys google-mock --rosdistro lunar -y
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
actionlib: No definition of [python-wxtools] for OS [osx]

$ brew install wxpython

$ rosdep install --from-paths src --ignore-src --skip-keys google-mock python-wxtools --rosdistro lunar -y
given path 'python-wxtools' does not exist

$ rosdep install --from-paths src --ignore-src --skip-keys google-mock --skip-keys python-wxtools --rosdistro lunar -y

—> Error:
==> libtool
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
ERROR: the following rosdeps failed to install
homebrew: Failed to detect successful installation of [qt5]

$ brew info pyqt5
pyqt: stable 5.10.1 (bottled)
Python bindings for v5 of Qt
https://www.riverbankcomputing.com/software/pyqt/download5
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/pyqt.rb
==> Dependencies
Required: python ✔, python@2 ✔, qt ✔, sip ✘
==> Analytics
install: 4,966 (30 days), 13,552 (90 days), 78,894 (365 days)
install_on_request: 3,061 (30 days), 9,194 (90 days), 49,793 (365 days)
build_error: 0 (30 days)

$ brew install pyqt
$ brew install pyqt5

$ brew info pyqt5
pyqt: stable 5.10.1 (bottled)
Python bindings for v5 of Qt
https://www.riverbankcomputing.com/software/pyqt/download5
/usr/local/Cellar/pyqt/5.10.1_1 (985 files, 45.0MB) *
Poured from bottle on 2019-02-05 at 21:21:46
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/pyqt.rb
==> Dependencies
Required: python ✔, python@2 ✔, qt ✔, sip ✔
==> Analytics
install: 4,966 (30 days), 13,552 (90 days), 78,894 (365 days)
install_on_request: 3,061 (30 days), 9,194 (90 days), 49,793 (365 days)
build_error: 0 (30 days)

$ brew install qt5
$ brew link --force qt

$ rosdep install --from-paths src --ignore-src --skip-keys google-mock --skip-keys python-wxtools --rosdistro lunar -y

==> Installing ogre from osrf/simulation
ogre: XQuartz 2.7.11 (or newer) is required to install this formula. X11Requirement unsatisfied!
You can install with Homebrew Cask:
brew cask install xquartz
You can download from:
https://xquartz.macosforge.org
Error: An unsatisfied requirement failed this build.
ERROR: the following rosdeps failed to install
homebrew: command [brew install ogre] failed

$ brew cask install xquartz

xquartz was successfully installed!

$ brew install ogre
==> cmake
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/cmake

$ rosdep install --from-paths src --ignore-src --skip-keys google-mock --skip-keys python-wxtools --rosdistro lunar -y

Error: Cannot install osrf/simulation/ogre1.9 because conflicting formulae are installed.
ogre: because Differing version of the same formula

Please brew unlink ogre before continuing.

Unlinking removes a formula's symlinks from /usr/local. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side-effects in the
resulting software.
ERROR: the following rosdeps failed to install
homebrew: command [brew install gazebo7] failed

$ brew unlink ogre

$ rosdep install --from-paths src --ignore-src --skip-keys google-mock --skip-keys python-wxtools --rosdistro lunar -y

==> Pouring gazebo7-7.14.0_5.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/gazebo7/7.14.0_5: 1,178 files, 112.7MB
ERROR: the following rosdeps failed to install
homebrew: Failed to detect successful installation of [ogre]

kdarvish@/Users/kdarvish/Desktop/ros_ws$ brew install ogre
Warning: osrf/simulation/ogre 1.7.4 is already installed, it's just not linked
You can use brew link ogre to link this version.
kdarvish@/Users/kdarvish/Desktop/ros_ws$ brew link ogre
Linking /usr/local/Cellar/ogre/1.7.4...
Error: Could not symlink bin/OgreMeshUpgrader
Target /usr/local/bin/OgreMeshUpgrader
is a symlink belonging to ogre1.9. You can unlink it:
brew unlink ogre1.9

To force the link and overwrite all conflicting files:
brew link --overwrite ogre

To list all files that would be deleted:
brew link --overwrite --dry-run ogre

kdarvish@/Users/kdarvish/Desktop/ros_ws$ brew unlink ogre1.9
Unlinking /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_7... 27 symlinks removed
kdarvish@/Users/kdarvish/Desktop/ros_ws$ brew link ogre
Linking /usr/local/Cellar/ogre/1.7.4... 25 symlinks created
kdarvish@/Users/kdarvish/Desktop/ros_ws$

$ rosdep install --from-paths src --ignore-src --skip-keys google-mock --skip-keys python-wxtools --rosdistro lunar -y
==> Pouring py2cairo-1.18.0.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/py2cairo/1.18.0: 16 files, 268.0KB
#All required rosdeps installed successfully

$ rosdep install --from-paths src --ignore-src --skip-keys google-mock --skip-keys python-wxtools --rosdistro lunar -y
#All required rosdeps installed successfully

$ ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release

CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):
The imported target "Qt5::Core" references the file

 "/usr/local/.//mkspecs/macx-clang"

but this file does not exist. Possible reasons include:

  • The file was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and contained

    "/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

but not all the files it references.

Call Stack (most recent call first):
/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:50 (_qt5_Core_check_file_exists)
/usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:169 (include)
cmake/OpenCVFindLibsGUI.cmake:18 (find_package)
CMakeLists.txt:600 (include)

-- Configuring incomplete, errors occurred!
See also "/Users/kdarvish/Desktop/ros_ws/build_isolated/opencv3/install/CMakeFiles/CMakeOutput.log".
See also "/Users/kdarvish/Desktop/ros_ws/build_isolated/opencv3/install/CMakeFiles/CMakeError.log".
<== Failed to process package 'opencv3':
Command '['/Users/kdarvish/Desktop/ros_ws/install_isolated/env.sh', 'cmake', '/Users/kdarvish/Desktop/ros_ws/src/opencv3', '-DCMAKE_INSTALL_PREFIX=/Users/kdarvish/Desktop/ros_ws/install_isolated', '-DCMAKE_BUILD_TYPE=Release', '-G', 'Unix Makefiles']' returned non-zero exit status 1

Reproduce this error by running:
==> cd /Users/kdarvish/Desktop/ros_ws/build_isolated/opencv3 && /Users/kdarvish/Desktop/ros_ws/install_isolated/env.sh cmake /Users/kdarvish/Desktop/ros_ws/src/opencv3 -DCMAKE_INSTALL_PREFIX=/Users/kdarvish/Desktop/ros_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles'

Command failed, exiting.

$ brew install qt
$ brew link qt --force
$brew linkapps qt
$ export HOMEBREW_QT5_VERSION=$(brew list --versions qt | rev | cut -d' ' -f1 | rev)
$ ln -s /usr/local/Cellar/qt/$HOMEBREW_QT5_VERSION/mkspecs /usr/local/mkspecs
$ ln -s /usr/local/Cellar/qt/$HOMEBREW_QT5_VERSION/plugins /usr/local/plugins

In file included from /Users/kdarvish/Desktop/ros_ws/src/opencv3/opencv_contrib/text/src/erfilter.cpp:43:
/Users/kdarvish/Desktop/ros_ws/src/opencv3/opencv_contrib/text/src/precomp.hpp:54:10: fatal error: 'tesseract/baseapi.h' file not found
#include <tesseract/baseapi.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [modules/text/CMakeFiles/opencv_text.dir/src/erfilter.cpp.o] Error 1
make[1]: *** [modules/text/CMakeFiles/opencv_text.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Follow the instructions here:

https://github.com/opencv/opencv_contrib/tree/3.4/modules/text

For tesseract

$ make
$ sudo make install
$ sudo make install LANGS="eng ara deu"
Or:
$ sudo make install-langs

What it works was this one at the end:
#export LIBLEPT_HEADERSDIR=/usr/local/include/
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/Cellar/tesseract/4.0.0/include/
#export CPLUS_INCLUDE_PATH=/usr/local/Cellar/tesseract/4.0.0/include

Then there was this problem:
sip: Unable to find file "QtCore/QtCoremod.sip"

Solution:
$ ln -s /usr/local/share/sip/Qt5 /usr/local/share/sip/PyQt5


For this error:

/Users/kdarvish/Desktop/ros_ws/src/geometry2/tf2/src/buffer_core.cpp:221:5: error: use of undeclared identifier 'logError'
logError("TF_SELF_TRANSFORM: Ignoring transform from authority "%s" with frame_id and child_frame_id "%s" because they are the same", authority.c_str(), stripped.child_frame_id.c_str());
^
/Users/kdarvish/Desktop/ros_ws/src/geometry2/tf2/src/buffer_core.cpp:227:5: error: use of undeclared identifier 'logError'
logError("TF_NO_CHILD_FRAME_ID: Ignoring transform from authority "%s" because child_frame_id not set ", authority.c_str());
^
/Users/kdarvish/Desktop/ros_ws/src/geometry2/tf2/src/buffer_core.cpp:233:5: error: use of undeclared identifier 'logError'
logError("TF_NO_FRAME_ID: Ignoring transform with child_frame_id "%s" from authority "%s" because frame_id not set", stripped.child_frame_id.c_str(), authority.c_str());
^
/Users/kdarvish/Desktop/ros_ws/src/geometry2/tf2/src/buffer_core.cpp:240:5: error: use of undeclared identifier 'logError'
logError("TF_NAN_INPUT: Ignoring transform for child_frame_id "%s" from authority "%s" because of a nan value in the transform (%f %f %f) (%f %f %f %f)",
^
/Users/kdarvish/Desktop/ros_ws/src/geometry2/tf2/src/buffer_core.cpp:255:5: error: use of undeclared identifier 'logError'
logError("TF_DENORMALIZED_QUATERNION: Ignoring transform for child_frame_id "%s" from authority "%s" because of an invalid quaternion in the transform (%f %f %f %f)",
^
/Users/kdarvish/Desktop/ros_ws/src/geometry2/tf2/src/buffer_core.cpp:277:7: error: use of undeclared identifier 'logWarn'
logWarn("TF_OLD_DATA ignoring data from the past for frame %s at time %g according to authority %s\nPossible reasons are listed at http://wiki.ros.org/tf/Errors%%20explained", stripped.child_frame_id.c_str(), stripped.header...
^
/Users/kdarvish/Desktop/ros_ws/src/geometry2/tf2/src/buffer_core.cpp:636:7: error: use of undeclared identifier 'logError'
logError("Unknown error code: %d", retval);
^
/Users/kdarvish/Desktop/ros_ws/src/geometry2/tf2/src/buffer_core.cpp:1607:7: error: use of undeclared identifier 'logError'
logError("Unknown error code: %d", retval);
^
/Users/kdarvish/Desktop/ros_ws/src/geometry2/tf2/src/buffer_core.cpp:1626:7: error: use of undeclared identifier 'logError'
logError("Unknown error code: %d", retval);
^

/src/geometry2/tf2/src/buffer_core.cpp:

Referring to this PR:
https://github.com/ros/console_bridge/pull/48/files

Add CONSOLE_BRIDGE_ before logWarn, logError,

Or look at here:

ros/console_bridge#56

Error:
ld: library not found for -lassimp
clang: error: linker command failed with exit code 1 (use -v to see invocation)

export LIBRARY_PATH=/usr/local/lib

I have the same issue with ROS Kinetic, OSX 10.11.6 and assimp-3.3.1.
Location of lib: /usr/local/lib/libassimp.dylib

Fix:

  1. Open ~/ros_catkin_ws/build_isolated/geometric_shapes/CMakeFiles/geometric_shapes.dir/link.txt
  2. Replace -lassimp with /usr/local/lib/libassimp.dylib
    linking to assimp fails on mac 10.10 moveit/geometric_shapes#23
    ———————————————————————————————————

sudo catkin build geometric_shapes --limit-status-rate 1

Had this error:

In file included from /Users/kdarvish/Desktop/ros_ws/src/bond_core/bondcpp/src/timeout.cpp:30:
In file included from /Users/kdarvish/Desktop/ros_ws/src/bond_core/bondcpp/include/bondcpp/timeout.h:33:
In file included from /Users/kdarvish/Desktop/ros_ws/install_isolated/include/ros/ros.h:38:
In file included from /Users/kdarvish/Desktop/ros_ws/install_isolated/include/ros/time.h:53:
In file included from /Users/kdarvish/Desktop/ros_ws/install_isolated/include/ros/platform.h:55:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:641:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:79:9: error: no member named 'strcoll' in the global namespace; did you mean 'strtoll'?
using ::strcoll;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:172:3: note: 'strtoll' declared here
strtoll(const char *__str, char **__endptr, int __base);

I followed the steps here to resolve:
I add following arg to catkin_make_isolated
mikepurvis/ros-install-osx#73

-DCMAKE_FIND_FRAMEWORK=LAST
-DCATKIN_ENABLE_TESTING=1

https://www.bountysource.com/issues/39690326-installation-indigo-on-osx-failed-while-building-nodelet_tutorial_math

 found the culprit to be the FindUUID CMake module. It is located at ${ros_ws}/src/cmake_modules/cmake/Modules/FindUUID.cmake. Changing from find_path(UUID_INCLUDE_DIRS uuid/uuid.h) to find_path(UUID_INCLUDE_DIRS ossp/uuid.h) worked for me. Be sure to install ossp-uuidvia homebrew first.

Add this to the catkin_make_isolated

-DGETTEXT_LIB_DIR=/opt/local/lib

https://gist.github.com/lubiluk/361a018b267ca4e3ce10cdc68b17363d

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/usr/local/opt/qt;/Users/lubiluk/Development/ros_catkin_ws_lunar/install_isolated" -DCMAKE_FIND_FRAMEWORK=LAST -DPYTHON_INCLUDE_DIR="/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Headers" -DPYTHON_LIBRARY="/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib" -DCMAKE_MACOSX_RPATH=ON -DCMAKE_INSTALL_RPATH="/Users/lubiluk/Development/ros_catkin_ws_lunar/install_isolated/lib"

I have added following to the path env variable
PATH=$PATH:/usr/lib
And it works :)

Error on boost_python

could not find the following boost libraries: boost_python

solution
Cd /usr/local/lib
sudo ln -s libboost_python27.dylib libboost_python.dylib

Explanation: andrewssobral/bgslibrary#96

Continue with following command:
/Users/kdarvish/Desktop/ros_ws$ ./src./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST

NEW ERROR in camera_calibration_parser
In file included from /Users/kdarvish/Desktop/ros_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:38:
In file included from /usr/local/include/yaml-cpp/yaml.h:10:
/usr/local/include/yaml-cpp/parser.h:41:3: warning: explicit conversion functions are a C++11 extension [-Wc++11-extensions]
explicit operator bool() const;
^~~~~~~~
In file included from /Users/kdarvish/Desktop/ros_ws/src/image_common/camera_calibration_parsers/src/parse_yml.cpp:38:
In file included from /usr/local/include/yaml-cpp/yaml.h:14:
/usr/local/include/yaml-cpp/exceptions.h:100:47: error: a space is required between consecutive right angle brackets (use '> >')
const T&, typename disable_if<is_numeric>::type* = 0) {
^~
> >
/usr/local/include/yaml-cpp/exceptions.h:112:50: error: a space is required between consecutive right angle brackets (use '> >')
const T& key, typename enable_if<is_numeric>::type* = 0) {
^~
> >
/usr/local/include/yaml-cpp/exceptions.h:123:11: error: exception specification of overriding function is more lax than base version
virtual ~Exception() YAML_CPP_NOEXCEPT;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdexcept:106:13: note: overridden virtual function is here
virtual ~runtime_error() _NOEXCEPT;
^

Solution:
ros-perception/image_common#78
Add following line to src/image_common/camera_calibration_parser/cmakelists.txt
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

ERROR:
/Users/kdarvish/Desktop/ros_ws/src/laser_assembler/test/test_assembler.cpp:120:39: error: no matching conversion for functional-style cast from 'float' to
'boost::posix_time::milliseconds' (aka 'subsecond_duration<boost::posix_time::time_duration, 1000>')
cloud_condition_.timed_wait(lock, boost::posix_time::milliseconds(1000.0f));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/boost/date_time/time_duration.hpp:270:30: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from
'float' to 'const boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>' for 1st argument
class BOOST_SYMBOL_VISIBLE subsecond_duration : public base_duration
^
/usr/local/include/boost/date_time/time_duration.hpp:286:59: note: candidate template ignored: disabled by 'enable_if' [with T = float]
typename boost::enable_if<boost::is_integral, void>::type* = 0) :
^
1 error generated.

Response:
https://github.com/ros/roscpp_core/pull/79/files

//cloud_condition_.timed_wait(lock, boost::posix_time::milliseconds(1000.0f));
cloud_condition_.timed_wait(lock, boost::posix_time::milliseconds(1000));
ros/roscpp_core#84

Error:

-- Checking to see if CXX compiler accepts flag -Wl,--version-script,"/Users/kdarvish/Desktop/ros_ws/build_isolated/pcl_ros/class_loader_hide_library_symbols__pcl_ros_io.script"
-- Checking to see if CXX compiler accepts flag -Wl,--version-script,"/Users/kdarvish/Desktop/ros_ws/build_isolated/pcl_ros/class_loader_hide_library_symbols__pcl_ros_io.script" - no
CMake Error at CMakeLists.txt:199 (target_link_libraries):
Cannot specify link libraries for target "test_tf_message_filter_pcl" which
is not built by this project.
-- Configuring incomplete, errors occurred!
See also "/Users/kdarvish/Desktop/ros_ws/build_isolated/pcl_ros/CMakeFiles/CMakeOutput.log".
See also "/Users/kdarvish/Desktop/ros_ws/build_isolated/pcl_ros/CMakeFiles/CMakeError.log".
<== Failed to process package 'pcl_ros':

Add this to args of the catkin_make -DCATKIN_ENABLE_TESTING=0

./src./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCATKIN_ENABLE_TESTING=0

Error

CMake Error at /Users/kdarvish/Desktop/ros_ws/install_isolated/share/catkin/cmake/test/tests.cmake:18 (message):
() is not available when tests are not enabled. The CMake code should only
use it inside a conditional block which checks that testing is enabled:

if(CATKIN_ENABLE_TESTING)

(...)

endif()

Call Stack (most recent call first):
CMakeLists.txt:47 (add_rostest)
Solution:

-DCATKIN_ENABLE_TESTING=1

Error:
Call Stack (most recent call first):
/Users/kdarvish/Desktop/ros_ws/install_isolated/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
CMakeLists.txt:66 (catkin_package)

CMake Error at CMakeLists.txt:199 (target_link_libraries):
Cannot specify link libraries for target "test_tf_message_filter_pcl" which
is not built by this project.

-- Configuring incomplete, errors occurred!
See also "/Users/kdarvish/Desktop/ros_ws/build_isolated/pcl_ros/CMakeFiles/CMakeOutput.log".
See also "/Users/kdarvish/Desktop/ros_ws/build_isolated/pcl_ros/CMakeFiles/CMakeError.log".
<== Failed to process package 'pcl_ros':
Command '['/Users/kdarvish/Desktop/ros_ws/install_isolated/env.sh', 'cmake', '/Users/kdarvish/Desktop/ros_ws/src/perception_pcl/pcl_ros', '-DCATKIN_DEVEL_PREFIX=/Users/kdarvish/Desktop/ros_ws/devel_isolated/pcl_ros', '-DCMAKE_INSTALL_PREFIX=/Users/kdarvish/Desktop/ros_ws/install_isolated', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_FIND_FRAMEWORK=LAST', '-DCATKIN_ENABLE_TESTING=1', '-G', 'Unix Makefiles']' returned non-zero exit status 1

Solution:
I added the check for the executable in /Users/kdarvish/Desktop/ros_ws/src/perception_pcl/pcl_ros/cmakelists.txt
add_rostest_gtest(test_tf_message_filter_pcl tests/test_tf_message_filter_pcl.launch src/test/test_tf_message_filter_pcl.cpp)
if(TARGET test_tf_message_filter_pcl)
target_link_libraries(test_tf_message_filter_pcl ${catkin_LIBRARIES} ${GTEST_LIBRARIES})
endif()

==============================================================================================================================

Linking /usr/local/Cellar/numpy/1.8.0...
Warning: Could not link numpy. Unlinking...
Error: Could not symlink file: /usr/local/Cellar/numpy/1.8.0/lib/python2.7/site-packages/numpy-1.8.0-py2.7.egg-info
Target /usr/local/lib/python2.7/site-packages/numpy-1.8.0-py2.7.egg-info already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
brew link --overwrite formula_name

To list all files that would be deleted:
brew link --overwrite --dry-run formula_name

pip uninstall numpy
brew link numpy

Error: test.h std:make_tuple

Errors << diagnostic_aggregator:make /Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/logs/diagnostic_aggregator/build.make.003.log
In file included from /Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/src/diagnostics/diagnostic_aggregator/gtest-1.7.0/gtest-all.cc:39:
In file included from /usr/local/include/gtest/gtest.h:60:
In file included from /usr/local/include/gtest/internal/gtest-internal.h:40:
/usr/local/include/gtest/internal/gtest-port.h:831:12: error: no member named 'make_tuple' in namespace 'std'
using std::make_tuple;
~~~~~^
/usr/local/include/gtest/internal/gtest-port.h:832:12: error: no member named 'tuple' in namespace 'std'
using std::tuple;
~~~~~^

I have added

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

https://en.cppreference.com/w/cpp/utility/tuple/make_tuple

After install opencv3, the cmake find package can not detect and find opencv3.

find_package( OpenCV 3 REQUIRED )

The error output shows:

CMake Error at CMakeLists.txt:5 (find_package):
Could not find a configuration file for package "OpenCV" that is compatible
with requested version "3".

Solution:
https://github.com/Homebrew/homebrew-science/issues/2466

brew ln opencv3 --force

brew ln opencv3 --force
Problem :
In file included from /Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/src/vision_opencv/image_geometry/include/image_geometry/pinhole_camera_model.h:5:
In file included from /usr/local/include/opencv4/opencv2/core/core.hpp:48:
In file included from /usr/local/include/opencv4/opencv2/core.hpp:52:
/usr/local/include/opencv4/opencv2/core/cvdef.h:656:4: error: "OpenCV 4.x+ requires enabled C++11 support"

error "OpenCV 4.x+ requires enabled C++11 support"

^

brew update && brew install opencv3
Solution:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

brew install opencv3 -v --c++11 --with-python3

/Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/src/opencv3/modules/python/src2/cv2.cpp:885:11: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char '
char
str = PyString_AsString(obj);
^ ~~~~~~~~~~~~~~~~~~~~~~

Solution:
char* str = PyString_AsString(obj);
const char* str = PyString_AsString(obj);
https://github.com/opencv/opencv/pull/11876/files
opencv/opencv#11908

Error:

Errors << camera_info_manager:make /Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/logs/camera_info_manager/build.make.004.log
Undefined symbols for architecture x86_64:
"testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void ()(), void ()(), testing::internal::TestFactoryBase*)", referenced from:
__GLOBAL__sub_I_unit_test.cpp in unit_test.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/devel/.private/camera_info_manager/lib/camera_info_manager/unit_test] Error 1
make[1]: *** [CMakeFiles/unit_test.dir/all] Error 2
make: *** [all] Error 2

Solution :
I have commented following lines of cmakelists.txt
Of the camera_info_manager:

add_executable(unit_test tests/unit_test.cpp)

target_link_libraries(unit_test ${PROJECT_NAME} ${GTEST_LIBRARIES} ${catkin_LIBRARIES})

add_rostest(tests/unit_test.test DEPENDENCIES unit_test)

Errors << tf:make /Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/logs/tf/build.make.001.log
Undefined symbols for architecture x86_64:
"testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void ()(), void ()(), testing::internal::TestFactoryBase*)", referenced from:
__GLOBAL__sub_I_testListener.cpp in testListener.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/devel/.private/tf/lib/tf/testListener] Error 1
make[1]: *** [CMakeFiles/testListener.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Undefined symbols for architecture x86_64:
"testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void ()(), void ()(), testing::internal::TestFactoryBase*)", referenced from:
__GLOBAL__sub_I_transform_listener_unittest.cpp in transform_listener_unittest.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/devel/.private/tf/lib/tf/transform_listener_unittest] Error 1
make[1]: *** [CMakeFiles/transform_listener_unittest.dir/all] Error 2
make: *** [all] Error 2

Comment the line in cmakelists of the tf

#add_executable(transform_listener_unittest test/transform_listener_unittest.cpp)
#target_link_libraries(transform_listener_unittest ${PROJECT_NAME} ${GTEST_LIBRARIES})
#add_rostest(test/transform_listener_unittest.launch)

#add_executable(test_message_filter EXCLUDE_FROM_ALL test/test_message_filter.cpp)
#target_link_libraries(test_message_filter tf ${Boost_LIBRARIES} ${GTEST_LIBRARIES})
#add_rostest(test/test_message_filter.xml)

#add_executable(transform_listener_unittest test/transform_listener_unittest.cpp)
#target_link_libraries(transform_listener_unittest ${PROJECT_NAME} ${GTEST_LIBRARIES})
#add_rostest(test/transform_listener_unittest.launch)

I have commented all the processes with GTEST dependency.

Check later:

Errors << stereo_image_proc:make /Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/logs/stereo_image_proc/build.make.001.log
In file included from /Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/src/image_pipeline/stereo_image_proc/src/libstereo_image_proc/processor.cpp:35:
/Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/src/image_pipeline/stereo_image_proc/include/stereo_image_proc/processor.h:175:24: error: field type 'cv::StereoBM' is an abstract class
mutable cv::StereoBM block_matcher_; // contains scratch buffers for block matching
^
/usr/local/include/opencv4/opencv2/calib3d.hpp:2225:26: note: unimplemented pure virtual method 'compute' in 'StereoBM'
CV_WRAP virtual void compute( InputArray left, InputArray right,

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

Nodelet library

#add_library(${PROJECT_NAME} src/libstereo_image_proc/processor.cpp src/nodelets/disparity.cpp src/nodelets/point_cloud2.cpp)
#target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}
${OpenCV_LIBRARIES}

Check later this pull request: resolve this problem:

https://github.com/ros-perception/image_pipeline/pull/96/files

Errors << pcl_ros:make /Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/logs/pcl_ros/build.make.000.log
ld: library not found for -lflann
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/devel/.private/pcl_ros/lib/pcl_ros/convert_pointcloud_to_image] Error 1
make[1]: *** [CMakeFiles/convert_pointcloud_to_image.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
ld: library not found for -lflann
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/devel/.private/pcl_ros/lib/pcl_ros/pointcloud_to_pcd] Error 1
make[1]: *** [CMakeFiles/pointcloud_to_pcd.dir/all] Error 2
ld: library not found for -lflann
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/devel/.private/pcl_ros/lib/pcl_ros/pcd_to_pointcloud] Error 1
make[1]: *** [CMakeFiles/pcd_to_pointcloud.dir/all] Error 2
ld: library not found for -lflann
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/devel/.private/pcl_ros/lib/libpcl_ros_features.dylib] Error 1
make[1]: *** [CMakeFiles/pcl_ros_features.dir/all] Error 2
make: *** [all] Error 2
cd /Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/build/pcl_ros; catkin build --get-env pcl_ros | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -

Solution
https://stackoverflow.com/questions/53776238/building-point-cloud-library-pcl-on-macos-x-mojave-error-ld-library-not-foun

librviz_tutorial [ Unrelated job failed ]
Abandoned <<< rqt_rviz [ Unrelated job failed ]
Abandoned <<< rviz_plugin_tutorials [ Unrelated job failed ]
Abandoned <<< rviz_python_tutorial [ Unrelated job failed ]
Abandoned <<< urdf_tutorial

kdarvish@/opt/ros/lunar/bin$ rviz
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in: /usr/local/lib/libJPEG.dylib
in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
[1] 21295 abort rviz

sgrif/pq-sys#1

EDITOR='open -Wne' sudo -e /Users/kdarvish/Documents/ros-install-osx/lunar_desktop_full_ws/build/pcl_ros/CMakeFiles/pcl_ros_features.dir/link.txt

@lrapetti
Copy link
Member

I was able to install ros in macOS (Version: 10.13.6 High Sierra) using https://github.com/mikepurvis/ros-install-osx, and solving some issues that came out (the issue where mostly documented in mikepurvis/ros-install-osx#116).

I have installed the lunar-Desktop (setting ROS_DISTRO=lunar and ROS_CONFIGURATION=desktop). Moreover, I have removed some packages that were giving me problems, I have removed

  • vision_opencv
  • rqt

those packages were giving some problems and should not be required for human-dynamics-estimation.

Then the other problem I have faced during the installation are the following:

  • XQuartz
Already up-to-date.
==> brew cask install caskroom/cask/brew-cask 
Error: Cask 'brew-cask' is unavailable: '/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/Casks/brew-cask.rb' does not exist.
Warning: Cask 'xquartz' is already installed.

To re-install xquartz, run:
  brew cask reinstall xquartz
Log out and in to finalize XQuartz setup.

Solved by commenting out XQuartz in install:

# XQuartz
#  if ! hash xquartz 2>/dev/null; then
#    brew install caskroom/cask/brew-cask
#    brew cask install xquartz
#    echo "Log out and in to finalize XQuartz setup."
#    exit 0
#    fi
  • google-mock
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
roslisp: No definition of [google-mock] for OS [osx]
catkin: No definition of [google-mock] for OS [osx]

Solved by adding --skip-keys google-mock torosdep install in install:

rosdep install --from-paths . --ignore-src --rosdistro ${ROS_DISTRO} -y --as-root pip:no --skip-keys google-mock
  • logError, logWarn
Errors     << tf2:make /Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/logs/tf2/build.make.000.log                                                                                           
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:126:5: error: use of undeclared identifier 'logWarn'
    logWarn("%s",ss.str().c_str());
    ^
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:134:5: error: use of undeclared identifier 'logWarn'
    logWarn("%s",ss.str().c_str());
    ^
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:221:5: error: use of undeclared identifier 'logError'
    logError("TF_SELF_TRANSFORM: Ignoring transform from authority \"%s\" with frame_id and child_frame_id  \"%s\" because they are the same",  authority.c_str(), stripped.child_frame_id.c_str());
    ^
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:227:5: error: use of undeclared identifier 'logError'
    logError("TF_NO_CHILD_FRAME_ID: Ignoring transform from authority \"%s\" because child_frame_id not set ", authority.c_str());
    ^
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:233:5: error: use of undeclared identifier 'logError'
    logError("TF_NO_FRAME_ID: Ignoring transform with child_frame_id \"%s\"  from authority \"%s\" because frame_id not set", stripped.child_frame_id.c_str(), authority.c_str());
    ^
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:240:5: error: use of undeclared identifier 'logError'
    logError("TF_NAN_INPUT: Ignoring transform for child_frame_id \"%s\" from authority \"%s\" because of a nan value in the transform (%f %f %f) (%f %f %f %f)",
    ^
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:255:5: error: use of undeclared identifier 'logError'
    logError("TF_DENORMALIZED_QUATERNION: Ignoring transform for child_frame_id \"%s\" from authority \"%s\" because of an invalid quaternion in the transform (%f %f %f %f)",
    ^
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:277:7: error: use of undeclared identifier 'logWarn'
      logWarn("TF_OLD_DATA ignoring data from the past for frame %s at time %g according to authority %s\nPossible reasons are listed at http://wiki.ros.org/tf/Errors%%20explained", stripped.child_frame_id.c_str(), stripped.header.stamp.toSec(), authority.c_str());
      ^
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:636:7: error: use of undeclared identifier 'logError'
      logError("Unknown error code: %d", retval);
      ^
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:1607:7: error: use of undeclared identifier 'logError'
      logError("Unknown error code: %d", retval);
      ^
/Users/lrapetti/Software/ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp:1626:7: error: use of undeclared identifier 'logError'
      logError("Unknown error code: %d", retval);
      ^
11 errors generated.

Solved by editing /ros-install-osx/lunar_desktop_ws/src/geometry2/tf2/src/buffer_core.cpp adding the following define:

#define logWarn CONSOLE_BRIDGE_logWarn
#define logError CONSOLE_BRIDGE_logError

(check ros/console_bridge#56)

  • rostest
Errors     << rospy_tutorials:cmake /Users/lrapetti/Software/ros-install-osx/lunar_desktop_full_ws/logs/rospy_tutorials/build.cmake.000.log                                                                                                       
CMake Warning at /Users/lrapetti/Software/ros-install-osx/lunar_desktop_full_ws/src/ros_tutorials/rospy_tutorials/CMakeLists.txt:102 (find_package):
  By not providing "Findrostest.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "rostest", but
  CMake did not find one.

  Could not find a package configuration file provided by "rostest" with any
  of the following names:

    rostestConfig.cmake
    rostest-config.cmake

  Add the installation prefix of "rostest" to CMAKE_PREFIX_PATH or set
  "rostest_DIR" to a directory containing one of the above files.  If
  "rostest" provides a separate development package or SDK, be sure it has
  been installed.

When this error comes out, you just have to continue the catkin build from rostest by using start-with:

/ros-install-osx/lunar_desktop_full_ws$ catkin build --start-with rostest
  • rospy
Errors     << rqt_gui_py:cmake /Users/lrapetti/Software/ros-install-osx/lunar_desktop_full_ws/logs/rqt_gui_py/build.cmake.002.log                                                                                                                 
CMake Error at /Users/lrapetti/Software/ros/share/catkin/cmake/catkinConfig.cmake:114 (find_package):
  Could not find a package configuration file provided by "rospy" with any of
  the following names:

    rospyConfig.cmake
    rospy-config.cmake

  Add the installation prefix of "rospy" to CMAKE_PREFIX_PATH or set
  "rospy_DIR" to a directory containing one of the above files.  If "rospy"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:4 (find_package)

Same as before:

/ros-install-osx/lunar_desktop_full_ws$ catkin build --start-with rospy
  • rospkg
Errors     << dynamic_reconfigure:make /Users/lrapetti/Software/ros-install-osx/lunar_desktop_full_ws/logs/dynamic_reconfigure/build.make.000.log                                                                                                 
Traceback (most recent call last):
  File "/Users/lrapetti/Software/ros-install-osx/lunar_desktop_full_ws/src/dynamic_reconfigure/cfg/Test.cfg", line 37, in <module>
    from dynamic_reconfigure.parameter_generator_catkin import *
  File "/Users/lrapetti/Software/ros-install-osx/lunar_desktop_full_ws/devel/.private/dynamic_reconfigure/lib/python2.7/site-packages/dynamic_reconfigure/__init__.py", line 35, in <module>
    exec(__fh.read())
  File "<string>", line 38, in <module>
  File "/Users/lrapetti/Software/ros/lib/python2.7/site-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/Users/lrapetti/Software/ros/lib/python2.7/site-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ModuleNotFoundError: No module named 'rospkg'

It can be solved by pip installing rospkg:

sudo -H python2.7 -m pip install -U rospkg

@lrapetti
Copy link
Member

lrapetti commented Feb 22, 2019

After the installation presented in the previous comment, I was able to run the tests for ros, and for the communication of ros with YARP.

However, I am still having some problem in visualizing the model when running HDE in rviz. I can see the TF moving in rviz, and I am not getting any error, however I am not able to see the model:
screen shot 2019-02-21 at 18 32 27

screen shot 2019-02-22 at 10 56 14

@lrapetti lrapetti added this to the Iteration 19 milestone Feb 22, 2019
@lrapetti
Copy link
Member

I checked again with @Yeshasvitvs, and I was able to visualize the model (the problem was probably due to the way I was launching it). So I would say the installation of ROS and rviz was successful in my case since I was able to run it in the HDE framework.

@DanielePucci
Copy link
Contributor

closing #93

@lrapetti
Copy link
Member

I checked again with @Yeshasvitvs, and I was able to visualize the model (the problem was probably due to the way I was launching it). So I would say the installation of ROS and rviz was successful in my case since I was able to run it in the HDE framework.

I was experiencing again the model not being loaded. At the moment I don't know what it is due to, since I am not getting any error. However in case it is not visualized, it is sufficient to try to run again rviz (sometimes it has to be run multiple times before being able to visualize it).

@lrapetti
Copy link
Member

lrapetti commented Sep 20, 2019

Currently the usage of mikepurvis/ros-install-osx script for installing ROS on macOS is broken mainly due to mikepurvis/ros-install-osx#140. I was able to install ros_comm + all the dependencies of rviz (including the messages) but not rviz itself by setting:

  • configuration of installation
ROS_CONFIGURATION=${ROS_CONFIGURATION:-ros_comm}
ROS_EXTRA_PACKAGES=${ROS_EXTRA_PACKAGES:-rviz}
  • and then i blacklist the rviz package so that it is not compiled (but its dependencies are configured and installed).
catkin config --install \
    --install-space ${ROS_INSTALL_DIR} \
    --blacklist rviz \
    --cmake-args \
      -DCATKIN_ENABLE_TESTING=1 \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_FIND_FRAMEWORK=LAST \
      -DPYTHON_EXECUTABLE=$(which python2) \
      -DPYTHON_LIBRARY=$(python2 -c "import sys; print sys.prefix")/lib/libpython2.7.dylib \
      -DPYTHON_INCLUDE_DIR=$(python2 -c "import sys; print sys.prefix")/include/python2.7

(this in combination with some of the fixies described in #93 (comment) and in https://github.com/mikepurvis/ros-install-osx/issues)

I am able to run everything (roscore, publisher) a part for the visualization. In order to be able to compile also rviz the solution would be to manually compile sip and pyqt with python2.

@lrapetti
Copy link
Member

lrapetti commented Oct 8, 2019

Unfortunately, in order to install ROS, it is required to tap an older version of boost (see comment mikepurvis/ros-install-osx#116 (comment)) that seems to be breaking gazebo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants