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

bigbrett's profile - activity

2020-02-20 02:49:57 -0500 received badge  Taxonomist
2016-10-02 10:42:40 -0500 received badge  Famous Question (source)
2016-05-30 13:43:03 -0500 received badge  Famous Question (source)
2016-05-30 13:43:03 -0500 received badge  Notable Question (source)
2016-05-24 13:42:16 -0500 received badge  Famous Question (source)
2016-04-28 12:56:48 -0500 received badge  Notable Question (source)
2016-04-28 12:56:48 -0500 received badge  Popular Question (source)
2016-03-23 01:49:28 -0500 received badge  Famous Question (source)
2016-03-15 13:37:50 -0500 received badge  Student (source)
2016-03-03 01:40:04 -0500 received badge  Nice Answer (source)
2016-03-01 21:07:27 -0500 asked a question CMake linker warning: lib<foo>.so.<v1> may conflict with lib<foo>.so.<v2>

I am getting a ton of linker warnings when building a catkin package, and I don't know whether they are dangerous or not. Things seem to be working fine, but want to make sure that I'm not setting myself up for future failure.

Could anyone shed some light on the nature of these errors, or do they seem benign?

CMake Warning (dev) at PID/CMakeLists.txt:73 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "diagnostic_updater" of target "controller" does not
  exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at PID/CMakeLists.txt:73 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "dynamic_reconfigure" of target "controller" does not
  exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at PID/CMakeLists.txt:87 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "diagnostic_updater" of target "mvp_controller" does
  not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at PID/CMakeLists.txt:87 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "dynamic_reconfigure" of target "mvp_controller" does
  not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at PID/CMakeLists.txt:74 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "diagnostic_updater" of target "plant_sim" does not
  exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at PID/CMakeLists.txt:74 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "dynamic_reconfigure" of target "plant_sim" does not
  exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at PID/CMakeLists.txt:75 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "diagnostic_updater" of target "setpoint_node" does
  not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at PID/CMakeLists.txt:75 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in ...
(more)
2016-02-29 03:15:33 -0500 received badge  Notable Question (source)
2016-02-29 00:58:46 -0500 received badge  Self-Learner (source)
2016-02-29 00:58:46 -0500 received badge  Teacher (source)
2016-02-28 18:46:29 -0500 commented answer roslaunch ssh error

Thanks for the response. I have since fixed the network configuration, but that was not the problem causing that error. See my answer above for the actual issue.

2016-02-28 18:46:04 -0500 received badge  Popular Question (source)
2016-02-28 18:45:29 -0500 answered a question roslaunch ssh error

Found the solution after much digging....

The error lay in the version of paramiko on my computer, as seen here. I updated paramiko and then that error went away. I also needed to provide an env-loader option in my .launch file when I declared the remote machine. Once I did this, everything worked.

I don't have enough points to accept my own answer, but if someone else could flag it as accepted, that would be great.

2016-02-25 10:10:59 -0500 asked a question roslaunch ssh error

Hi,

I am getting the following error when attempting to launch a series of nodes across two machines..

  • beaglebone black (ubuntu@bbone): ubuntu 14.04 LTS (3.14 kernel) and ROS indigo
  • Linux workstation (thayer@T1538): ubuntu 14.04 LTS (3.14 kernel) and ROS indigo

I have verified that both machines have the correct ROS_MASTER_URI environment variables set, and I have full bi-directional internet connectivity between the two. I can get success if I start up roscore and bring up each node on the respective machines one at a time, but can't get the launch file to work. Also, FWIW, the sys.excepthook is missing lost sys.stderr error message occurs often on the beaglebone after killing roscore if it is running, however has never affected functionality in any way. Does this point to a deeper issue?

Error message:

thayer@T1538:~/catkin_ws/src/mvp_ros/launch$ roslaunch mvp_ros rangetest.launch 
... logging to /home/thayer/.ros/log/b097f6ac-dbd8-11e5-a8ba-78acc0a5686d/roslaunch-T1538-9473.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://T1538:44498/
remote[bbone-0] starting roslaunch
remote[bbone-0]: creating ssh connection to bbone:22, user[ubuntu]
launching remote roslaunch child with command: [env ROS_MASTER_URI=http://localhost:11311 /opt/ros/indigo/env.sh roslaunch -c bbone-0 -u http://T1538:44498/ --run_id b097f6ac-dbd8-11e5-a8ba-78acc0a5686d]
remote[bbone-0]: ssh connection created
remote[bbone-0]: Exception while registering with roslaunch parent [http://T1538:44498/]: Traceback (most recent call last):
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/server.py", line 506, in _register_with_server
    code, msg, _ = server.register(name, self.uri)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1301, in single_request
    self.send_content(h, request_body)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1448, in send_content
    connection.endheaders(request_body)
  File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 835, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 797, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 778, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known

The traceback for the exception was written to the log file
Unhandled exception in thread started by 
sys.excepthook is missing
lost sys.stderr

[bbone-0] killing on exit
remote roslaunch failed to launch: bone
The traceback for the exception was written to the log file

Launch File:

<launch>
    <machine name="bone" address="bbone" default="true" user="ubuntu" password="ubuntu"/>
    <machine name="thayer" address="localhost" default="true"/>

    <node ...
(more)
2016-02-23 23:16:14 -0500 received badge  Notable Question (source)
2016-02-23 09:19:14 -0500 commented answer TimeSynchronizer compilation error

solved, your suggestion was indeed the correct answer, and I was just inappropriately handling the geometry_msgs/TwistStamped type. Will edit OP. Thanks much!

2016-02-23 08:59:54 -0500 commented answer TimeSynchronizer compilation error

arghh that answer makes perfect sense now, so I marked this as solved, but then upon implementing it, I am now getting another even more cryptic error (see the edit in my OP). Any ideas?

2016-02-23 08:59:04 -0500 received badge  Editor (source)
2016-02-23 08:06:52 -0500 marked best answer TimeSynchronizer compilation error

Hi,

I am trying to implement a simple approximate time synchronizer that synchronizes two topics, Imu data and a twist message from an xbox controller

I have not even departed from the structure of the example here, but I can't for the life of me figure out where my build errors are coming from since it is buried somewhere in a sea of boost warning messages that I can't decrypt.

The node I wrote is below.

#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <sensor_msgs/Imu.h>
#include <sensor_msgs/Joy.h>

#include <message_filters/subscriber.h>
#include <message_filters/time_synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>

using namespace sensor_msgs;
using namespace geometry_msgs;
using namespace message_filters;

void syncCallback(const sensor_msgs::Imu::ConstPtr& msg, const geometry_msgs::Twist::ConstPtr& vel)
{
    ROS_INFO("HERE WE ARE!"); 
}

int main(int argc, char** argv)
{
    /* initialize ros and create node */ 
    ros::init(argc, argv, "sync_cmd");

    /* create node handle */ 
    ros::NodeHandle nh; 

    /* create filtered subscriber objects for imu and xbox topics */
    message_filters::Subscriber<sensor_msgs::Imu> imu_sub(nh, "/imu/data", 1); 
    message_filters::Subscriber<geometry_msgs::Twist> xbox_sub(nh, "/cmd_vel", 1); 


    typedef message_filters::sync_policies::ApproximateTime<sensor_msgs::Imu, geometry_msgs::Twist> MySyncPolicy;
    // ApproximateTime takes a queue size as its constructor argument, hence MySyncPolicy(10)

    message_filters::Synchronizer<MySyncPolicy> sync(MySyncPolicy(10), imu_sub, xbox_sub);
    sync.registerCallback(boost::bind(&syncCallback, _1, _2)); 

    ros::spin();

    return 0;
}

There are a huge amount of error messages from boost which are really hard for me to make sense of, but the first thing that looked important was the error message below. The full error message can be found at http://pastebin.com/SQdT5VhT

/home/ubuntu/catkin_ws/src/mvp_ros/src/synchronizer.cpp:34:89:   required from here
/opt/ros/indigo/include/message_filters/sync_policies/approximate_time.h:167:89: error: 'value' is not a member of 'ros::message_traits::TimeStamp<geometry_msgs::Twist_<std::allocator<void> >, void>'
     ros::Time msg_time = mt::TimeStamp<typename mpl::at_c<Messages, i>::type>::value(msg);
                                                                                         ^
/opt/ros/indigo/include/message_filters/sync_policies/approximate_time.h:177:99: error: 'value' is not a member of 'ros::message_traits::TimeStamp<geometry_msgs::Twist_<std::allocator<void> >, void>'
       previous_msg_time = mt::TimeStamp<typename mpl::at_c<Messages, i>::type>::value(previous_msg);
                                                                                                   ^
/opt/ros/indigo/include/message_filters/sync_policies/approximate_time.h:183:100: error: 'value' is not a member of 'ros::message_traits::TimeStamp<geometry_msgs::Twist_<std::allocator<void> >, void>'
       previous_msg_time =  mt::TimeStamp<typename mpl::at_c<Messages, i>::type>::value(previous_msg);
                                                                                                ^

EDIT1:

Ughh ok I thought the suggestion from @ahendrix would work, but now I'm hitting another error that is even more cryptic.....

CMakeFiles/synchronizer.dir/src/synchronizer.cpp.o: In function `message_filters::Synchronizer<message_filters::sync_policies::ApproximateTime<sensor_msgs::Imu_<std::allocator<void> >, geometry_msgs::TwistStamped_<std::allocator<void> >, message_filters::NullType, message_filters::NullType, message_filters::NullType, message_filters::NullType, message_filters::NullType, message_filters::NullType, message_filters::NullType> >::disconnectAll()':
synchronizer.cpp:(.text._ZN15message_filters12SynchronizerINS_13sync_policies15ApproximateTimeIN11sensor_msgs4Imu_ISaIvEEEN13geometry_msgs13TwistStamped_IS5_EENS_8NullTypeESA_SA_SA_SA_SA_SA_EEE13disconnectAllEv[_ZN15message_filters12SynchronizerINS_13sync_policies15ApproximateTimeIN11sensor_msgs4Imu_ISaIvEEEN13geometry_msgs13TwistStamped_IS5_EENS_8NullTypeESA_SA_SA_SA_SA_SA_EEE13disconnectAllEv]+0x24): undefined reference to `message_filters::Connection::disconnect()'

The key error here seems to be the undefined reference to message_filters::Connection::Connection(boost::function<void ()> const&). I feel terrible just posting error codes and asking or help...in addition to helping me solve this ... (more)

2016-02-23 08:06:52 -0500 received badge  Scholar (source)
2016-02-23 08:05:42 -0500 received badge  Enthusiast
2016-02-23 07:40:38 -0500 received badge  Popular Question (source)