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

Hkev68's profile - activity

2017-01-31 09:47:46 -0500 received badge  Popular Question (source)
2017-01-31 09:47:46 -0500 received badge  Famous Question (source)
2017-01-31 09:47:46 -0500 received badge  Notable Question (source)
2015-10-15 12:53:25 -0500 received badge  Famous Question (source)
2015-05-12 09:11:10 -0500 asked a question undefined reference to GoadlIDGenerator

Hi there,

I am currently working with ros-industrial and an Adept robot-arm.

I am trying to use a code I found on ros-industrial but I have some issues with it.

The code ist he joint_trajectory_action.cpp file from http://swri-ros-pkg.googlecode.com/sv...

The error I get is at the end

astro@astro-1106B5G:~/catkin_kevin$ catkin_make
Base path: /home/astro/catkin_kevin
Source space: /home/astro/catkin_kevin/src
Build space: /home/astro/catkin_kevin/build
Devel space: /home/astro/catkin_kevin/devel
Install space: /home/astro/catkin_kevin/install
####
#### Running command: "make cmake_check_build_system" in "/home/astro/catkin_kevin/build"
####
####
#### Running command: "make -j4 -l4" in "/home/astro/catkin_kevin/build"
####
[  0%] [  0%] Built target std_msgs_generate_messages_lisp
Built target actionlib_msgs_generate_messages_lisp
[  0%] [  0%] Built target std_msgs_generate_messages_cpp
Built target actionlib_msgs_generate_messages_cpp
[  0%] Built target std_msgs_generate_messages_py
[  0%] [  0%] [  0%] Built target actionlib_msgs_generate_messages_py
Built target geometry_msgs_generate_messages_py
Built target trajectory_msgs_generate_messages_cpp
[  0%] Built target trajectory_msgs_generate_messages_py
[  0%] [  0%] [  0%] Built target geometry_msgs_generate_messages_cpp
Built target geometry_msgs_generate_messages_lisp
Built target trajectory_msgs_generate_messages_lisp
[  7%] Built target industrial_msgs_generate_messages_cpp
[  8%] Built target simple_message_dummy
[  9%] [ 10%] Built target industrial_utils
Built target industrial_robot_client_dummy
[ 11%] [ 16%] Built target industrial_trajectory_filters
[ 20%] Built target adept_common_generate_messages_lisp
Built target adept_common_generate_messages_py
[ 23%] Built target adept_common_generate_messages_cpp
[ 32%] [ 32%] Built target industrial_msgs_generate_messages_py
Built target adept_common_generate_messages
[ 38%] Built target industrial_msgs_generate_messages_lisp
[ 38%] Built target industrial_msgs_generate_messages
[ 53%] Built target simple_message_bswap
[ 68%] Built target simple_message_float64
[ 83%] Built target simple_message
Scanning dependencies of target joint_trajectory_action_1
[ 88%] Built target industrial_robot_client_bswap
[ 89%] [ 91%] Built target motion_interface
[ 92%] Building CXX object adept_common/CMakeFiles/joint_trajectory_action_1.dir/src/joint_trajectory_action.cpp.o
Built target robot_state_1
[ 95%] [ 96%] [ 96%] Built target industrial_robot_client
Built target motion_streaming_interface_bswap
Built target motion_download_interface_bswap
[ 97%] Built target robot_state_bswap
[ 98%] [100%] Built target joint_trajectory_action
Built target motion_download_interface
[100%] Built target motion_streaming_interface
[100%] Built target robot_state
Linking CXX executable /home/astro/catkin_kevin/devel/lib/adept_common/joint_trajectory_action_1
CMakeFiles/joint_trajectory_action_1.dir/src/joint_trajectory_action.cpp.o: dans la fonction « actionlib::ActionServerBase<control_msgs::FollowJointTrajectoryAction_<std::allocator<void> > >::ActionServerBase(boost::function<void (actionlib::ServerGoalHandle<control_msgs::FollowJointTrajectoryAction_<std::allocator<void> > >)>, boost::function<void (actionlib::ServerGoalHandle<control_msgs::FollowJointTrajectoryAction_<std::allocator<void> > >)>, bool) »:
joint_trajectory_action.cpp:(.text._ZN9actionlib16ActionServerBaseIN12control_msgs28FollowJointTrajectoryAction_ISaIvEEEEC2EN5boost8functionIFvNS_16ServerGoalHandleIS4_EEEEESB_b[_ZN9actionlib16ActionServerBaseIN12control_msgs28FollowJointTrajectoryAction_ISaIvEEEEC5EN5boost8functionIFvNS_16ServerGoalHandleIS4_EEEEESB_b]+0xa5): référence indéfinie vers « actionlib::GoalIDGenerator::GoalIDGenerator() »
CMakeFiles/joint_trajectory_action_1.dir/src/joint_trajectory_action.cpp.o: dans la fonction « actionlib::StatusTracker<control_msgs::FollowJointTrajectoryAction_<std::allocator<void> > >::StatusTracker(boost::shared_ptr<control_msgs::FollowJointTrajectoryActionGoal_<std::allocator<void> > const> const&) »:
joint_trajectory_action.cpp:(.text._ZN9actionlib13StatusTrackerIN12control_msgs28FollowJointTrajectoryAction_ISaIvEEEEC2ERKN5boost10shared_ptrIKNS1_32FollowJointTrajectoryActionGoal_IS3_EEEE[_ZN9actionlib13StatusTrackerIN12control_msgs28FollowJointTrajectoryAction_ISaIvEEEEC5ERKN5boost10shared_ptrIKNS1_32FollowJointTrajectoryActionGoal_IS3_EEEE]+0x60): référence indéfinie vers « actionlib::GoalIDGenerator::GoalIDGenerator() »
joint_trajectory_action.cpp:(.text._ZN9actionlib13StatusTrackerIN12control_msgs28FollowJointTrajectoryAction_ISaIvEEEEC2ERKN5boost10shared_ptrIKNS1_32FollowJointTrajectoryActionGoal_IS3_EEEE[_ZN9actionlib13StatusTrackerIN12control_msgs28FollowJointTrajectoryAction_ISaIvEEEEC5ERKN5boost10shared_ptrIKNS1_32FollowJointTrajectoryActionGoal_IS3_EEEE]+0xbb): référence indéfinie vers « actionlib::GoalIDGenerator::generateID() »
CMakeFiles/joint_trajectory_action_1.dir/src/joint_trajectory_action.cpp.o: dans la fonction « actionlib::StatusTracker<control_msgs::FollowJointTrajectoryAction_<std::allocator<void> > >::StatusTracker(actionlib_msgs::GoalID_<std::allocator<void> > const&, unsigned int) »:
joint_trajectory_action.cpp:(.text._ZN9actionlib13StatusTrackerIN12control_msgs28FollowJointTrajectoryAction_ISaIvEEEEC2ERKN14actionlib_msgs7GoalID_IS3_EEj[_ZN9actionlib13StatusTrackerIN12control_msgs28FollowJointTrajectoryAction_ISaIvEEEEC5ERKN14actionlib_msgs7GoalID_IS3_EEj]+0x5c): référence indéfinie vers « actionlib::GoalIDGenerator::GoalIDGenerator() »
collect2: erreur: ld a retourné 1 code d'état d'exécution
make[2]: *** [/home/astro/catkin_kevin/devel/lib/adept_common/joint_trajectory_action_1] Erreur 1
make[1]: *** [adept_common/CMakeFiles/joint_trajectory_action_1.dir/all] Erreur 2
make: *** [all] Erreur 2
Invoking "make" failed

It concern apparently the GoalIDGenerator reference which is undefined. I know that this code was supposed to work on ROS groovy, can you tell me what I need to change in it ?

Regards

2015-05-01 05:10:16 -0500 received badge  Notable Question (source)
2015-04-30 10:52:38 -0500 received badge  Popular Question (source)
2015-04-30 08:03:26 -0500 asked a question roscore doesnt start

I start to run the roscore on ROS hydro, and I get this error :

WARNING: disk usage in log directory [/home/astro/.ros/log] is over 1GB.
It's recommended that you use the 'rosclean' command.

^CTraceback (most recent call last):
  File "/opt/ros/hydro/bin/roscore", line 63, in <module>
    roslaunch.main(['roscore', '--core'] + sys.argv[1:])

  File "/opt/ros/hydro/lib/python2.7/dist-packages/roslaunch/__init__.py", line 279, in main
    p.start()

  File "/opt/ros/hydro/lib/python2.7/dist-packages/roslaunch/parent.py", line 257, in start
    self._start_infrastructure()

  File "/opt/ros/hydro/lib/python2.7/dist-packages/roslaunch/parent.py", line 215, in _start_infrastructure
    self._start_server()

  File "/opt/ros/hydro/lib/python2.7/dist-packages/roslaunch/parent.py", line 166, in _start_server
    self.server.start()

  File "/opt/ros/hydro/lib/python2.7/dist-packages/roslaunch/server.py", line 368, in start
    code, msg, val = xmlrpclib.ServerProxy(self.uri).get_pid()

  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)

  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose

  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)

  File "/usr/lib/python2.7/xmlrpclib.py", line 1292, in single_request
    self.send_content(h, request_body)

  File "/usr/lib/python2.7/xmlrpclib.py", line 1439, in send_content
    connection.endheaders(request_body)

  File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
    self._send_output(message_body)

  File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
    self.send(msg)

  File "/usr/lib/python2.7/httplib.py", line 791, in send
    self.connect()

  File "/usr/lib/python2.7/httplib.py", line 772, in connect
    self.timeout, self.source_address)

  File "/usr/lib/python2.7/socket.py", line 562, in create_connection
    sock.connect(sa)

  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)

What is wrong ?

Thank you