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

A.M Dynamics's profile - activity

2021-12-29 08:56:39 -0500 received badge  Famous Question (source)
2021-08-30 23:54:19 -0500 received badge  Famous Question (source)
2020-08-17 07:33:12 -0500 received badge  Famous Question (source)
2020-03-09 04:17:41 -0500 marked best answer Error in linking a catkin library against another catkin package

Dear All,

I've created a simple catkin library including a class with a member function (lib_test). I want to use this class/library in another catkin pkg (caller_pkg). I receive this error :

CMakeFiles/main2.dir/src/main2.cpp.o: In function main': main2.cpp:(.text+0x23): undefined reference toUtility::dosomething(int)' collect2: error: ld returned 1 exit status caller_pkg/CMakeFiles/main2.dir/build.make:113: recipe for target '/home/alireza/catkin_ws/devel/lib/caller_pkg/main2' failed

The pkg contents are as follows.

* the library pkg <lib_test> *

 cmake_minimum_required(VERSION 2.8.3)
 project(lib_test)
 find_package(catkin REQUIRED COMPONENTS
 roscpp
 rospy
 std_msgs)

 catkin_package(
 INCLUDE_DIRS include
 LIBRARIES lib_test
 CATKIN_DEPENDS roscpp rospy std_msgs)

 include_directories(include
  ${catkin_INCLUDE_DIRS}
  )

 add_library(lib_test src/utility.cpp )

 target_link_libraries(lib_test ${catkin_LIBRARIES})

 install(TARGETS lib_test 
 ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
 LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
 RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
 )

 install(DIRECTORY include/${PROJECT_NAME}/
 DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})

package.xml

  <?xml version="1.0"?>
  <package>
  <name>lib_test</name>
  <version>0.0.0</version>
  <description>The lib_test package</description>
  <maintainer email="alireza@todo.todo">alireza</maintainer>
  <buildtool_depend>catkin</buildtool_depend>
  <build_depend>roscpp</build_depend>
  <build_depend>rospy</build_depend>
  <build_depend>std_msgs</build_depend>
  <run_depend>roscpp</run_depend>
  <run_depend>rospy</run_depend>
  <run_depend>std_msgs</run_depend>
  <package>

lib_test/include/lib_test/utility.h

  #ifndef _COMMON_UTILITY_
  #define _COMMON_UTILITY_

  class Utility
  {
    public:
            int dosomething(int param);
  };
 #endif

src/utility.cpp:

#include "lib_test/utility.h"

int Utility::dosomething(int param)
{
   return param / 2;
 }

The pkg that calls library: caller_pkg

  cmake_minimum_required(VERSION 2.8.3)
  project(caller_pkg)

  find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  )
  find_package(lib_test REQUIRED)
  catkin_package(
  # INCLUDE_DIRS include
  # LIBRARIES lib_test
   CATKIN_DEPENDS roscpp rospy std_msgs lib_test
  # DEPENDS lib_test
  )
  include_directories(
  ${catkin_INCLUDE_DIRS}
  )

  include_directories(
  ${lib_test_INCLUDE_DIRS}
  )
  add_executable(main2 src/main2.cpp)

  target_link_libraries(main2
  ${catkin_LIBRARIES}
  ${lib_test_INCLUDE_DIRS}
  )

   install(DIRECTORY include/${PROJECT_NAME}/
   DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
   #  FILES_MATCHING PATTERN "*.h"
   #  PATTERN ".svn" EXCLUDE
   )

   install(TARGETS main2
   RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

package.xml

 <?xml version="1.0"?>
 <package>
 <name>caller_pkg</name>
 <version>0.0.0</version>
 <description>The caller_pkg package</description>
 <maintainer email="alireza@todo.todo">alireza</maintainer>
 <buildtool_depend>catkin</buildtool_depend>
 <build_depend>roscpp</build_depend>
 <build_depend>rospy</build_depend>
 <build_depend>std_msgs</build_depend>
 <run_depend>roscpp</run_depend>
 <run_depend>rospy</run_depend>
 <run_depend>std_msgs</run_depend>
 <package>

src/main2.cpp:

  #include <ros/ros.h>
  #include "lib_test/utility.h"
  int main(int argc, char** argv)
  {
  ros::init(argc, argv, "lib_test_node");
  ros::start();
  Utility u;
  int x = u.dosomething(26);
  ROS_INFO("x=%1d",x);
  ros::spin();
  ros::shutdown();
  return 0;}

I would appreciate it if you help me out.

2020-01-09 09:19:37 -0500 received badge  Notable Question (source)
2019-04-07 22:52:22 -0500 marked best answer How to migrate ROS PKG for Kuka youbot from Hydro to Kinetic

Hello,

For Kuka youbot, I am trying to install (by source) its Hydro driver (youbot_driver) and ROS wrapper (youbot_driver_ros_interface) in ROS Kinetic. but I receive this error as follows.

ResourceNotFound: youbot_description

ROS path [0]=/opt/ros/kinetic/share/ros

ROS path [1]=/home/alireza/catkin_ws/src

ROS path [2]=/opt/ros/kinetic/share

Dose anyone know how to solve this issue?

There are the links:

youbot driver

youbot ros wapper

2019-04-07 22:52:01 -0500 marked best answer how to edit the map (.pbm) built by gmapping pkg

Hello All,

I need to edit the map that built by gmapping pkg. Is there any software that supports this format? almost all software open this format but they don't save changes under this format? Do you have any suggestion?

2019-03-22 03:08:25 -0500 received badge  Famous Question (source)
2019-02-20 04:19:21 -0500 received badge  Famous Question (source)
2019-02-20 04:19:21 -0500 received badge  Notable Question (source)
2019-02-18 14:00:35 -0500 received badge  Famous Question (source)
2018-09-28 05:58:21 -0500 received badge  Famous Question (source)
2018-09-19 14:18:42 -0500 marked best answer seting the initial pose in navigation not using "2D Pose Estimate" tool in rviz

Dear All,

I am using the navigation pkg for Kuka youbot. My question is whether there is another way to set initial and goal poses of robot in the map except using 2D Pose Estimate" tool in rviz?

Thank you for your help and suggestions.

2018-09-06 03:13:31 -0500 received badge  Famous Question (source)
2018-07-18 10:38:31 -0500 commented question How to migrate ROS PKG for Kuka youbot from Hydro to Kinetic

@jayess I have provided the links

2018-07-18 10:37:25 -0500 edited question How to migrate ROS PKG for Kuka youbot from Hydro to Kinetic

How to migrate ROS PKG for Kuka youbot from Hydro to Kinetic Hello, For Kuka youbot, I am trying to install (by source)

2018-07-18 10:34:23 -0500 received badge  Notable Question (source)
2018-07-18 10:33:01 -0500 commented question How to migrate ROS PKG for Kuka youbot from Hydro to Kinetic

Yes, I did

2018-07-18 08:51:15 -0500 commented answer How to wrap a hardware-driver in ROS

@PeteBlackerThe3rd Thanks for your response.I have to build a mobile robot compatible with ROS. I'll control the robot u

2018-07-18 06:42:40 -0500 received badge  Famous Question (source)
2018-07-17 23:45:18 -0500 received badge  Popular Question (source)
2018-07-17 21:53:14 -0500 edited question How to migrate ROS PKG for Kuka youbot from Hydro to Kinetic

ROS migration PKG for Kuka youbot from Hydro to Kinetic Hello, For Kuka youbot, I am trying to install (by source) its

2018-07-17 21:52:07 -0500 edited question How to migrate ROS PKG for Kuka youbot from Hydro to Kinetic

ROS migration PKG for Kuka youbot from Hydro to Kinetic Hello, For Kuka youbot, I am trying to install (by source) its

2018-07-17 21:20:26 -0500 edited question How to wrap a hardware-driver in ROS

How wrapping a hardware-driver in ROS Dear All, I need to write a ROS wrapper for a driver in ROS. Is there any clear p

2018-07-17 21:19:28 -0500 asked a question How to migrate ROS PKG for Kuka youbot from Hydro to Kinetic

ROS migration PKG for Kuka youbot from Hydro to Kinetic Hello, For Kuka youbot, I am trying to install (by source) its

2018-07-17 21:09:38 -0500 received badge  Notable Question (source)
2018-07-08 19:26:59 -0500 marked best answer The use of ros navigation stack in dynamic environment

Hello All,

I need to use the ROS navigation stack for the environment with moving objects. Does anybody know if this stack handles such condition? If not, is there any package for this purpose?

Any suggestion is appreciated.

2018-07-08 19:18:41 -0500 marked best answer Sending Initial pose to the Navigation Stack?

Hello,

There is tutorial for Sending Goals to the Navigation Stack in Ros wiki here. Is it possible to do the same thing for the initial position of the robot? if yes, how could I extract the actual pose of the robot first and then use it for this propose?

Thanks for helping me out?

2018-07-03 04:43:59 -0500 received badge  Notable Question (source)
2018-07-03 02:22:15 -0500 received badge  Popular Question (source)
2018-07-02 21:55:33 -0500 asked a question Sending Initial pose to the Navigation Stack?

Sending Initial pose to the Navigation Stack? Hello, There is tutorial for Sending Goals to the Navigation Stack in Ros

2018-07-02 21:30:41 -0500 commented question how to edit the map (.pbm) built by gmapping pkg

Thanks. I export it

2018-07-02 21:29:24 -0500 received badge  Notable Question (source)
2018-07-01 22:47:30 -0500 marked best answer How to adapt an old PKG, driver and ROS wrapper to a new ROS distribution?

Hello,

I have a Kuka youbot robot. The last updated version (by source) of the driver and ROS wrapper for this robot is Hydro. The most stable version of ROS is Kinetic. My question clearly is how I adapt the both hydro driver and ROS wrapper of this robot to Kinetic distribution? Is there any documentation for this purpose? I can not find any. Do I need to change CMakeLists.txt file? I would appreciate it if you help me out.

Sincerely,

2018-07-01 22:45:29 -0500 commented question How to adapt an old PKG, driver and ROS wrapper to a new ROS distribution?

@Geoff These are links to Youbot driver and its ROS wrapper. Thanks... git clone http://github.com/youbot/youbot_driver.

2018-07-01 22:43:25 -0500 received badge  Popular Question (source)
2018-07-01 17:52:47 -0500 received badge  Popular Question (source)
2018-07-01 13:03:07 -0500 edited question How to adapt an old PKG, driver and ROS wrapper to a new ROS distribution?

How to adapt an old PKG, driver and ROS wrapper to a new ROS distribution? Hello, I have a Kuka youbot robot. The last

2018-07-01 13:03:01 -0500 edited question How to adapt an old PKG, driver and ROS wrapper to a new ROS distribution?

How to adapt an old PKG, driver and ROS wrapper to a new ROS distribution Hello, I have a Kuka youbot robot. The last u

2018-07-01 12:16:54 -0500 edited question How to adapt an old PKG, driver and ROS wrapper to a new ROS distribution?

How to adapt an old PKG, driver and ROS wrapper to a new ROS distribution Hello, I have a Kuka youbot robot. The last u

2018-07-01 12:09:52 -0500 asked a question How to adapt an old PKG, driver and ROS wrapper to a new ROS distribution?

How to adapt an old PKG, driver and ROS wrapper to a new ROS distribution Hello, I have a Kuka youbot robot. The last u

2018-06-30 19:00:57 -0500 asked a question how to edit the map (.pbm) built by gmapping pkg

how to edit the map (.pbm) built by gmapping pkg Hello All, I need to edit the map that built by gmapping pkg. Is there

2018-06-28 03:49:21 -0500 received badge  Notable Question (source)
2018-06-28 03:49:21 -0500 received badge  Famous Question (source)
2018-06-24 15:54:14 -0500 received badge  Popular Question (source)