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

marko1990's profile - activity

2022-09-09 00:21:50 -0500 received badge  Nice Question (source)
2022-01-15 02:22:21 -0500 received badge  Famous Question (source)
2022-01-15 02:22:21 -0500 received badge  Notable Question (source)
2022-01-15 02:22:21 -0500 received badge  Popular Question (source)
2021-09-06 09:52:44 -0500 received badge  Self-Learner (source)
2021-09-06 09:52:44 -0500 received badge  Teacher (source)
2021-09-06 09:52:38 -0500 received badge  Student (source)
2021-05-16 12:48:34 -0500 received badge  Famous Question (source)
2021-03-30 09:56:33 -0500 received badge  Notable Question (source)
2020-07-14 01:31:14 -0500 received badge  Famous Question (source)
2020-06-25 11:59:04 -0500 received badge  Famous Question (source)
2020-06-25 11:59:04 -0500 received badge  Notable Question (source)
2020-06-25 11:59:04 -0500 received badge  Popular Question (source)
2020-05-21 06:34:47 -0500 marked best answer specify openCV version ROS melodic, Ubuntu 18.04

Hello everyone,

I am a bit confused here, the problem which happens to me is, I have made a ROS node some time ago, the node has been working just fine, until recently I decided to install the new openCV 4.3 (cloned and installed from source). I have done it because I wanted to use the third party library which I wanted to depend on the openCV 4.3 so I can have some additional options. In my node's CMakeList.txtI have defined OpenCV_DIR to point the OpenCVConfig.cmake of the openCV4.3. I think this went through just fine. From what I know, the Ubuntu 18.04 comes with already installed OpenCV3.2 and this is the version which is used by the cv_bridge package. When I run the node the problem which happens is:

OpenCV Error: Assertion failed (tlsSlots.size() > slotIdx) in releaseSlot, file /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/core/src/system.cpp, line 1092 terminate called after throwing an instance of 'cv::Exception' what(): /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/core/src/system.cpp:1092: error: (-215) tlsSlots.size() > slotIdx in function releaseSlot

If I have to guess I would say this is because there are two conflict libraries loaded, after running:

ldd <binary> | grep libopencv_core

I got this back:

libopencv_core.so.3.2 => /usr/lib/x86_64-linux-gnu/libopencv_core.so.3.2 (0x00007fe9de973000) libopencv_core.so.4.3 => /usr/local/lib/libopencv_core.so.4.3 (0x00007fe9db2e2000)

So this confirms the conflict between libraries, so since I have loaded the openCV 4.3 (with the third party library) I would say that the libopencv_core.so.3.2 is loaded because of the cv_bridge package. cv_bridge is used to get the image from the sensor_msgs::ImageConstPtrand this image is given as an argument to the object of the third party library (which previously has been built with the opencv 4.3) I tried to debug and the cv_bridge works just fine, but when the third party object tries to execute certain functions, it raises a previously mentioned exception. I think it is because of the conflict, do you guys have any idea how to fix this? Or do you have any idea for a workaround? This is frustrating because I am using the cv_bridge only in one line, just to get the image for the third party library.

Thanks

2020-05-21 02:58:14 -0500 answered a question specify openCV version ROS melodic, Ubuntu 18.04

There cannot be a binary or a lib which depends or loads two version of the same source, in this case there will always

2020-05-21 02:58:14 -0500 received badge  Rapid Responder (source)
2020-05-19 09:57:48 -0500 edited question specify openCV version ROS melodic, Ubuntu 18.04

specify openCV version ROS melodic, Ubuntu 18.04 Hello everyone, I am a bit confused here, the problem which happens to

2020-05-19 09:56:43 -0500 asked a question specify openCV version ROS melodic, Ubuntu 18.04

specify openCV version ROS melodic, Ubuntu 18.04 Hello everyone, I am a bit confused here, the problem which happens to

2020-03-11 04:58:14 -0500 asked a question visp extrinsic calibration (visp_hand2eye_calibration)

visp extrinsic calibration (visp_hand2eye_calibration) Hello all, I am trying to make an extrinstic calibration of the

2020-02-29 12:39:02 -0500 received badge  Famous Question (source)
2020-02-19 08:05:42 -0500 received badge  Popular Question (source)
2020-01-19 13:20:34 -0500 asked a question 3D coordinates in a camera frame

3D coordinates in a camera frame Hello all, I have searching for some time now, but I can't find the solution. I have

2019-12-29 06:56:07 -0500 received badge  Supporter (source)
2019-12-21 20:14:54 -0500 received badge  Notable Question (source)
2019-12-21 09:03:02 -0500 answered a question How to know if the controllers are working/controlling? Spawned robot in gazebo is falling down/crushing to the floor.

the answer is given here How to know/check/confirm/debug if a controller is controlling/working?

2019-12-21 09:01:27 -0500 answered a question How to know/check/confirm/debug if a controller is controlling/working?

Hello Everyone, the answer for this question and #q338443 How to know if the controllers are working/controlling? Spawn

2019-12-19 12:03:25 -0500 edited question How to know/check/confirm/debug if a controller is controlling/working?

How to know/check/confirm/debug if a controller is controlling/working? Hello everyone, I am using ROS Melodic and the

2019-12-19 09:42:42 -0500 received badge  Popular Question (source)
2019-12-16 12:23:32 -0500 commented question How to know/check/confirm/debug if a controller is controlling/working?

Also I have been switching between the effort_controllers/JointTrajectoryController and position_controllers/JointTraje

2019-12-16 11:43:19 -0500 commented question How to know/check/confirm/debug if a controller is controlling/working?

Hello gvdhoorn thanks for attention, Here I have indentified the problem, it is not related to moveit, it is related to

2019-12-16 11:21:19 -0500 asked a question How to know/check/confirm/debug if a controller is controlling/working?

How to know/check/confirm/debug if a controller is controlling/working? Hello everyone, I am using ROS Melodic and the

2019-11-29 16:00:46 -0500 received badge  Notable Question (source)
2019-11-29 06:39:58 -0500 edited question How to know if the controllers are working/controlling? Spawned robot in gazebo is falling down/crushing to the floor.

How to know if the controllers are working/controlling? Spawned robot in gazebo is falling down/crushing to the floor. H

2019-11-29 06:14:38 -0500 received badge  Popular Question (source)
2019-11-26 08:33:33 -0500 received badge  Organizer (source)
2019-11-26 08:32:43 -0500 edited question How to know if the controllers are working/controlling? Spawned robot in gazebo is falling down/crushing to the floor.

How to know if the controllers are working/controlling? Spawned robot in gazebo is falling down/crushing to the floor. H

2019-11-26 08:31:24 -0500 commented question How to know if the controllers are working/controlling? Spawned robot in gazebo is falling down/crushing to the floor.

It should have been ROS I, not ros-i. sorry, this tag is not even necessary since it is already tagged as melodic.I will

2019-11-26 08:07:31 -0500 marked best answer spawned robot in Gazebo is moving by itself (Moveit!)

Hello everyone,

This is my first question, so please have some understanding if I haven't posted it like it was meant to be posted. I am running Ubuntu 18.04.2 with ROS_Melodic and Gazebo 9, I have also installed Moveit! package like it was explained in the moveit tutorial, after that I have made catkin package and in the src folder I have git cloned the fanuc moveit! package(Kinetic distro) and all dependent packages for a fanuc in this case. I have sourced and built the workspace (using catkin build). I have chosen the fanuc_m16ib20 robot (it was random choice) and I have made the moveit package like in instructions for the moveit_setup_assistant. At the end of the package generation in setup_assistant I was offered the URDF file for the made configuration, I have copied it and saved it under mypackage/urdf path. After this I have added the Gazebo plugin to the URDF file

<gazebo>
    <plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
        <robotNamespace>fanuc_m16ib20</robotNamespace>
    </plugin>
</gazebo>

Also I wanted to fix(anchor) the robot to the world and I added this to the beginning of the URDF file:

  <link name="world"></link>
  <joint name="fixed" type="fixed">
     <parent link="world"/>
     <child link="base_link"/>
  </joint>

Next thing I have done is, added the namespace fanuc_m16ib20 to the controllers, controller spawner and controller manager. I have modified the demo_gazebo.launch file to do this and controller.yaml files accordingly.

After this changes all it was left to do is to try and run the demo_gazebo.launchfile, but after running it Gazebo and Rviz are started but the robot in the Gazebo is moving by itself. Since it is connected to the RViz I can see the same behaviour in the RViz, with the exception, in RViz there robot joints stay connected. When I run rostopic list or rosservice list I can see topics and controller manager under the same namespace.

topics:

> /fanuc_m16ib20/fanuc_arm_controller/command
/fanuc_m16ib20/fanuc_arm_controller/follow_joint_trajectory/cancel
/fanuc_m16ib20/fanuc_arm_controller/follow_joint_trajectory/feedback
/fanuc_m16ib20/fanuc_arm_controller/follow_joint_trajectory/goal
/fanuc_m16ib20/fanuc_arm_controller/follow_joint_trajectory/result
/fanuc_m16ib20/fanuc_arm_controller/follow_joint_trajectory/status
/fanuc_m16ib20/fanuc_arm_controller/state
/fanuc_m16ib20/joint_states

services:

/fanuc_m16ib20/controller_manager/list_controller_types
/fanuc_m16ib20/controller_manager/list_controllers
/fanuc_m16ib20/controller_manager/load_controller
/fanuc_m16ib20/controller_manager/reload_controller_libraries
/fanuc_m16ib20/controller_manager/switch_controller
/fanuc_m16ib20/controller_manager/unload_controller

I have these errors and a few warnings:

[ERROR] [1573735342.035351047]: name, joints, action_ns, and type must be specifed for each controller

[ERROR] [1573735343.777676683, 0.001000000]: No p gain specified for pid.  Namespace: /fanuc_m16ib20/gazebo_ros_control/pid_gains/joint_1
[ERROR] [1573735343.779464187, 0.001000000]: No p gain specified for pid.  Namespace: /fanuc_m16ib20/gazebo_ros_control/pid_gains/joint_2
[ERROR] [1573735343.781116227, 0.001000000]: No p gain specified for pid.  Namespace: /fanuc_m16ib20/gazebo_ros_control/pid_gains/joint_3
[ERROR] [1573735343.783848394, 0.001000000]: No p gain specified for pid.  Namespace: /fanuc_m16ib20/gazebo_ros_control/pid_gains/joint_4
[ERROR] [1573735343.785975603, 0.001000000]: No p gain specified for pid.  Namespace: /fanuc_m16ib20/gazebo_ros_control/pid_gains/joint_5
[ERROR] [1573735343.797053511, 0.001000000]: No p gain specified for pid.  Namespace: /fanuc_m16ib20/gazebo_ros_control/pid_gains/joint_6

After solving the ... (more)

2019-11-26 07:23:26 -0500 edited question How to know if the controllers are working/controlling? Spawned robot in gazebo is falling down/crushing to the floor.

Spawned robot in gazebo is falling down/crushing to the floor Hello guys, I was thinking I have made everything properl

2019-11-26 07:23:26 -0500 received badge  Editor (source)
2019-11-25 01:00:57 -0500 received badge  Enthusiast
2019-11-24 12:48:27 -0500 asked a question How to know if the controllers are working/controlling? Spawned robot in gazebo is falling down/crushing to the floor.

Spawned robot in gazebo is falling down/crushing to the floor Hello guys, I was thinking I have made everything properl

2019-11-21 14:50:28 -0500 answered a question spawned robot in Gazebo is moving by itself (Moveit!)

Ok after hours of trying to understand what went wrong I have finally figured it out. The problem was not in the /contro

2019-11-21 06:14:59 -0500 commented question [start_demo.launch] is neither a launch file in package [learning_tf] nor is [learning_tf] a launch file name The traceback for the exception was written to the log file

I think you should provide more explanation about the steps taken before the error happened. But anyway the error could

2019-11-20 14:32:46 -0500 edited question spawned robot in Gazebo is moving by itself (Moveit!)

spawned robot in Gazebo is moving by itself (Moveit!) Hello everyone, This is my first question, so please have some un

2019-11-18 00:35:10 -0500 received badge  Famous Question (source)
2019-11-18 00:35:10 -0500 received badge  Notable Question (source)
2019-11-18 00:35:10 -0500 received badge  Popular Question (source)
2019-11-14 07:59:57 -0500 asked a question spawned robot in Gazebo is moving by itself (Moveit!)

spawned robot in Gazebo is moving by itself (Moveit!) Hello everyone, This is my first question, so please have some un