ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

francisc0garcia's profile - activity

2022-04-18 12:10:10 -0500 answered a question ros2: start node with sudo rights

Hi there, This launch config works for my use case (Raspberry Pi 4 - ROS2 Galactic - run node as root with access to GP

2022-02-15 09:34:26 -0500 received badge  Supporter (source)
2022-02-15 09:34:21 -0500 commented question Robot meshes not visible in rviz [Windows11, WSL2]

Hi, I have exactly the same problem. I have prepared a URDF file that works perfectly in ROS melodic, but it does not ge

2016-06-01 02:34:14 -0500 commented answer Linker error on ros kinetic + Ubuntu 16.04

you can also try to set as a C/CXX compiler gcc-5 using:

export CC=/usr/bin/gcc-5 export CXX=/usr/bin/g++-5

and then compile again using catkin_make

2016-05-22 02:35:08 -0500 received badge  Enthusiast
2016-05-17 15:42:46 -0500 received badge  Teacher (source)
2016-05-17 13:25:07 -0500 answered a question [jade] eigen3 not found build error

Hi! you can try adding to CMakeList.txt:

pkg_search_module(Eigen3 REQUIRED eigen3)
include_directories(${EIGEN3_INCLUDE_DIR})
add_definitions(${EIGEN3_DEFINITIONS})

if(NOT EIGEN3_FOUND)
    # Fallback to cmake_modules
    find_package(cmake_modules REQUIRED)
    find_package(Eigen REQUIRED)
    set(EIGEN3_INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS})
    set(EIGEN3_LIBRARIES ${EIGEN_LIBRARIES})  # Not strictly necessary as Eigen is head only
    # Possibly map additional variables to the EIGEN3_ prefix.
else()
    set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
endif()

catkin_package(
    ...
    DEPENDS Eigen
    ...
)

include_directories(
    ...
    ${Eigen_INCLUDE_DIRS}
)

This setup works for me, I also got problems before with Eigen.

I hope it helps you.

2016-05-17 13:17:58 -0500 commented question Error building OpenCV codes on ROS

Hi! You can try: download the cv_bridge source folder from https://github.com/ros-perception/vis... and paste it into the src folder of your workspace and then try to compile it again.

2016-05-17 13:17:57 -0500 commented question ROS Raspberry Pi 3 deployment

Hi! The easiest way for me is to make a copy (ISO image) of your MicroSD and then put it in the MicroSD of the new Raspberry. It can guaranteed that everything will work properly.

2016-05-17 13:17:57 -0500 commented question Linker error on ros kinetic + Ubuntu 16.04

@dirk-thomas I have upgraded ubuntu from 14.04 to 16.04, install ROS kinetic, I tested the nodes without compiling (OK), then I have compiled and installed OpenCV 3.1, for that, I change the GCC version from 5.3 to 4.8 and after that catkin_make fails. I didn't try it before change GCC version : (

2016-05-17 13:17:56 -0500 answered a question Linker error on ros kinetic + Ubuntu 16.04

I finally solve the problem changing the compiler from gcc-5 to clang. It is not an optimal solution but it works for me:

Ubuntu 14.04 have GCC-4.X and in ubuntu 16.04 the default version is GCC-5.X. first, I try to change the default version using "sudo update-alternatives --config gcc" and selecting GCC-4.8 but it doesn't work for me.

So, simply I add this lines to CMakeLists.txt

set(CMAKE_CXX_COMPILER "clang++")

set(CMAKE_C_COMPILER "clang")

if you need to install clang in ubuntu 16.04: sudo apt-get install clang

I hope It helps you.

2016-05-17 12:10:01 -0500 commented question Linker error on ros kinetic + Ubuntu 16.04

I also got the same problem after updating my ubuntu from 14.04 to 16.04 : ( catkin_make doesn't link ROS libraries!