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

os's profile - activity

2022-07-07 10:17:31 -0500 received badge  Famous Question (source)
2022-07-06 11:37:16 -0500 received badge  Notable Question (source)
2022-05-31 20:49:25 -0500 received badge  Popular Question (source)
2022-05-29 16:09:48 -0500 asked a question how to build and debug ROS2 nodes with clion and docker

how to build and debug ROS2 nodes with clion and docker Hi, Currently, I'm using docker as my ROS2 environment(using the

2021-10-07 14:55:38 -0500 received badge  Famous Question (source)
2021-07-07 02:52:58 -0500 received badge  Notable Question (source)
2021-03-31 08:22:28 -0500 received badge  Supporter (source)
2021-03-31 08:22:27 -0500 marked best answer using multiple robots with the same roscore on multiple machines

Hi, I have 2 robots with the same code. They are running on multiple machines(each robot on one machine). I have one node that needs to sync the data between them. The question is, how I change the topics on the launch so that each robot will work with its own topics and still be able to configure the topic of the syncing node so it will be able to subscribe from the second robot topics.
I'm using ROS 1 Kinetic

2021-03-31 08:00:14 -0500 commented answer using multiple robots with the same roscore on multiple machines

@gvdhoorn So in order to avoid editing all my .launch files, I need to create a new launch that will load the others, an

2021-03-31 06:02:38 -0500 commented answer using multiple robots with the same roscore on multiple machines

So in order to avoid editing all my .launch files, I need to create a new launch that will load the others, and in that

2021-03-31 03:43:15 -0500 commented answer using multiple robots with the same roscore on multiple machines

Is there a way to this globally without edit each launch file? In my project, I have multiple lanch and I try to find ou

2021-03-31 03:41:36 -0500 received badge  Popular Question (source)
2021-03-30 09:20:00 -0500 asked a question using multiple robots with the same roscore on multiple machines

using multiple robots with the same roscore on multiple machines Hi, I have 2 robots with the same code. They are runnin

2021-03-30 04:17:47 -0500 received badge  Famous Question (source)
2021-03-30 04:17:47 -0500 received badge  Notable Question (source)
2021-03-30 04:17:47 -0500 received badge  Popular Question (source)
2020-04-02 13:55:33 -0500 received badge  Famous Question (source)
2020-01-19 05:31:24 -0500 marked best answer cannot find -lMylib

I have two ROS packages. Package A loads the library Mylib, which is a .so file. package B uses package A with find packages().

Package A compiles without any issues, while package B fails for the reason: cannot find -lMylib.

I don't understand why Mylib is required by package B if Package A loaded it without problems

---EDIT----

These are the Cmake Formats packageA

cmake_minimum_required(VERSION 2.8.3)
project(PackageA)
set(CMAKE_CXX_COMPILER_ID "--with-cc=/usr/bin/mpicc --with-cxx=/usr/bin/mpicxx -lmpi_cxx")
add_compile_options(-std=c++14)
find_package(Eigen3 REQUIRED)
find_package(catkin REQUIRED COMPONENTS
    roscpp
    moveit_core
    moveit_ros_planning
    moveit_ros_planning_interface
    moveit_msgs

    )
catkin_package(
    INCLUDE_DIRS include
    CATKIN_DEPENDS
    message_runtime
    roscpp moveit_msgs moveit_ros_planning
    moveit_ros_planning_interface
    moveit_core
    DEPENDS
    EIGEN3

)
include_directories(
    include
    ${catkin_INCLUDE_DIRS}
    lib
    ${EIGEN3_INCLUDE_DIRS}
)
link_directories(lib/myLibFolder/)
set(MY_LIB_NAME MyLib)

add_library(some_lib src/some_lib.cpp)
target_link_libraries(some_lib ${MY_LIB_NAME} ${catkin_LIBRARIES})

add_library(some_lib_2 src/some_lib_2.cpp)
target_link_libraries(some_lib_2 some_lib ${catkin_LIBRARIES})

add_library(packageA_launcher src/PackageA_launcher.cpp)
target_link_libraries( packageA_launcher some_lib_2 ${catkin_LIBRARIES})

packageB

cmake_minimum_required(VERSION 2.8.3) 
project(PackageB) 
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 ") 
find_package(catkin REQUIRED COMPONENTS
    cmake_modules
    PackageA       ) 
find_package(Boost REQUIRED COMPONENTS system) catkin_package(
    INCLUDE_DIRS
    include
    LIBRARIES
    CATKIN_DEPENDS
    DEPENDS
    PackageA)
add_executable(some_PackageB_cpp
    src/some_PackageB_cpp.cpp        )
target_link_libraries(some_PackageB_cpp packageA_launcher  ${catkin_LIBRARIES} ) }

The error comes from package B.Package A compiles.

@mgruhler How can I say

"hey package B, just link against everything that package A links against"?

2020-01-16 07:06:11 -0500 commented question cannot find -lMylib

@mgruhler Exactly, it's a .so file located inside PackageA

2020-01-16 04:01:53 -0500 commented answer cannot find -lMylib

Thanks! I Edited the question

2020-01-16 04:01:19 -0500 edited question cannot find -lMylib

cannot find -lMylib I have two ROS packages. Package A loads the library Mylib, which is a .so file. package B uses pac

2020-01-15 10:53:42 -0500 asked a question cannot find -lMylib

cannot find -lMylib I have two ROS packages. Package A loads the library Mylib, which is a .so file. package B uses pac

2019-10-02 08:21:05 -0500 received badge  Famous Question (source)
2019-10-02 08:21:05 -0500 received badge  Notable Question (source)
2019-06-28 12:26:34 -0500 received badge  Notable Question (source)
2019-06-01 20:34:37 -0500 received badge  Popular Question (source)
2019-05-23 06:36:19 -0500 commented question Moveit getJacobian returns wrong jacobian

@dhindhimathai Why it's obvious that pose won't be the same as test_cart. According to theory x=J*q. whats the differenc

2019-05-20 07:04:20 -0500 commented question Moveit getJacobian returns wrong jacobian

I want to convert cartesian velocities to joint space and from joint space to cartesian. The position conversion was a s

2019-05-20 04:54:24 -0500 asked a question Moveit getJacobian returns wrong jacobian

Moveit getJacobian returns wrong jacobian I am trying to extract the Jacobian with that code: robot_model_loader::Robot

2018-10-31 08:51:56 -0500 received badge  Famous Question (source)
2018-10-31 08:51:42 -0500 received badge  Popular Question (source)
2018-08-15 13:21:01 -0500 received badge  Enthusiast
2018-08-13 08:40:34 -0500 asked a question transform angular velocity between differents tf

transform angular velocity between differents tf I need to transform angular velocity (rpy) from one tf to other tf. Cur

2018-08-13 08:32:35 -0500 marked best answer how to create my own ros controller

Hi, I want to create cartesian position controller, but I did not find any documentation or example code. I've seen that page http://wiki.ros.org/ros_control it didn't help me. I use the kinetic distribution. Does someone know how to do it?

2018-08-13 08:32:35 -0500 received badge  Scholar (source)
2018-01-02 18:21:04 -0500 received badge  Notable Question (source)
2018-01-02 07:28:15 -0500 received badge  Popular Question (source)
2018-01-01 09:44:30 -0500 asked a question how to create my own ros controller

how to create my own ros controller Hi, I want to create cartesian position controller, but I did not find any document