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

yangtfu's profile - activity

2019-06-15 08:28:26 -0500 received badge  Famous Question (source)
2017-11-13 00:06:15 -0500 received badge  Famous Question (source)
2017-09-13 09:44:38 -0500 received badge  Notable Question (source)
2017-06-20 10:12:08 -0500 received badge  Popular Question (source)
2017-05-03 16:11:45 -0500 received badge  Notable Question (source)
2017-04-21 10:06:27 -0500 received badge  Famous Question (source)
2017-04-21 10:06:27 -0500 received badge  Notable Question (source)
2017-03-05 09:51:29 -0500 received badge  Editor (source)
2017-03-05 09:48:23 -0500 asked a question /controller_manager/list_controllers service response

Hi, I am writing a service client to query the states of running controllers. But after calling a controller_manager_msgs::ListControllers service ,I cannot get a response.

ros::ServiceClient controller_client=nh.serviceClient<controller_manager_msgs::ListControllers>("/controller_manager/list_controllers");
controller_manager_msgs::ListControllers srv;
controller_client.call(srv);
std::cout<<"***************"<<std::endl;

typedef controller_manager_msgs::ControllerState cstate_t;
std::cout<<srv.response.controller.size()<<std::endl;

BOOST_FOREACH (const cstate_t& cs, srv.response.controller)
 {
   std::cout<<cs.type<<std::endl;
 }

I actually have three controllers loaded when I rosrun controller_manager controller_manager list

joint_vel_ctrl - hardware_interface::VelocityJointInterface ( stopped )
joint_state_controller - hardware_interface::JointStateInterface ( running )
arm_trajectory_controller - hardware_interface::VelocityJointInterface ( stopped )

The returned srv.response.controller.size() is 0. Please help me. Thanks!

2017-02-28 00:16:51 -0500 received badge  Enthusiast
2017-02-26 20:25:39 -0500 commented answer Orientation constraint for link 'tip' is probably incorrect warning

Yeah, I misunderstood the concept, thank you!

2017-02-26 12:11:39 -0500 received badge  Popular Question (source)
2017-02-26 10:59:33 -0500 commented answer Orientation constraint for link 'tip' is probably incorrect warning

Do you mean the quaternion vector including w should be normalized? I thought the axis vector of xyz should be a normalized vector which represents the rotation axis. What's the point of normalizing a quaternion vector.

2017-02-26 10:27:18 -0500 received badge  Student (source)
2017-02-26 09:03:22 -0500 asked a question Orientation constraint for link 'tip' is probably incorrect warning

Hi, I was planning a pose for a 5-dof manipulator tip with moveit kdl solver. The position of the pose is reached, but the orientation cannot be reached. And the following warning is shown every time:

[ INFO] [1488121271.999191010, 373.663000000]: Planning request received for MoveGroup action. Forwarding to planning pipeline.
[ WARN] [1488121271.999485048, 373.663000000]: Orientation constraint for link 'tip' is probably incorrect: 0.000000, 0.000000, 1.000000, 0.500000. Assuming identity instead.
[ WARN] [1488121271.999603296, 373.663000000]: Orientation constraint for link 'tip' is probably incorrect: 0.000000, 0.000000, 1.000000, 0.500000. Assuming identity instead.
[ INFO] [1488121271.999718045, 373.663000000]: No optimization objective specified, defaulting to PathLengthOptimizationObjective
[ INFO] [1488121271.999857147, 373.663000000]: LBKPIECE1: Starting planning with 1 states already in datastructure
[ INFO] [1488121272.444189499, 374.101000000]: LBKPIECE1: Created 38 (20 start + 18 goal) states in 37 cells (19 start (19 on boundary) + 18 goal (18 on boundary))
[ INFO] [1488121272.444250950, 374.101000000]: Solution found in 0.444438 seconds
[ INFO] [1488121272.467475751, 374.124000000]: SimpleSetup: Path simplification took 0.000019 seconds and changed from 23 to 2 states
[ INFO] [1488121272.500154361, 374.156000000]: Combined planning and execution request received for MoveGroup action. Forwarding to planning and execution pipeline.
[ WARN] [1488121272.500245398, 374.156000000]: Orientation constraint for link 'tip' is probably incorrect: 0.000000, 0.000000, 1.000000, 0.500000. Assuming identity instead.
[ INFO] [1488121272.500362095, 374.156000000]: Planning attempt 1 of at most 1
[ WARN] [1488121272.500788898, 374.157000000]: Orientation constraint for link 'tip' is probably incorrect: 0.000000, 0.000000, 1.000000, 0.500000. Assuming identity instead.
[ WARN] [1488121272.500939599, 374.157000000]: Orientation constraint for link 'tip' is probably incorrect: 0.000000, 0.000000, 1.000000, 0.500000. Assuming identity instead.
[ INFO] [1488121272.501062772, 374.157000000]: No optimization objective specified, defaulting to PathLengthOptimizationObjective
[ INFO] [1488121272.501254698, 374.157000000]: LBKPIECE1: Starting planning with 1 states already in datastructure
[ INFO] [1488121273.689715240, 375.327000000]: LBKPIECE1: Created 75 (37 start + 38 goal) states in 74 cells (37 start (37 on boundary) + 37 goal (37 on boundary))
[ INFO] [1488121273.690050718, 375.327000000]: Solution found in 1.188844 seconds
[ INFO] [1488121273.700934373, 375.345000000]: SimpleSetup: Path simplification took 0.000024 seconds and changed from 66 to 2 states
[ WARN] [1488121273.702429142, 375.345000000]: Dropping first 1 trajectory point(s) out of 10, as they occur before the current time.
First valid point will be reached in 0.060s.

Does anybody have any idea what is wrong, please?

2017-02-26 08:49:38 -0500 received badge  Popular Question (source)
2017-02-14 09:35:33 -0500 commented question boost exception related to controller manager

I have to install and compile all the ros packages I used with boost version 1.63, and it is totally OK. But the apt-get packages are built with version 1.54. Compiling my package with these packages is fine, but the exception above appears at runtime.

2017-02-13 07:35:19 -0500 asked a question boost exception related to controller manager

Hi, I'm writing a ROS program with galil DMC4060 controller.

When I add gclib and gclibo into the CMakelists.txt file, a run-time exception is thrown:

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::logic_error> >'
what(): character conversion failed

The build progress has no error. If gclib and gclibo library is not included the program is totally fine. I think there is something wrong with the Boost library. The Boost version with this error is 1.54, and boost 1.63 is totally fine. But it is inconvenient to compile all the rospacks with the newest version.

Does anybody have the similar problem? Please help me. Thank you!

The gdb debugging information is attached below:
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::logic_error> >'
  what():  character conversion failed

Program received signal SIGABRT, Aborted.
0x00007ffff6b42c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56  ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.

(gdb) bt
#0  0x00007ffff6b42c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff6b46028 in __GI_abort () at abort.c:89
#2  0x00007ffff7147535 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff71456d6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff7145703 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff7145922 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff65a95e6 in ?? () from /usr/lib/libgclib.so.0
#7  0x00007ffff665d190 in std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > boost::detail::convert<wchar_t, char, boost::_bi::bind_t<std::codecvt_base::result, boost::_mfi::cmf7<std::codecvt_base::result, std::__codecvt_abstract_base<wchar_t, char, __mbstate_t>, __mbstate_t&, char const*, char const*, char const*&, wchar_t*, wchar_t*, wchar_t*&>, boost::_bi::list8<boost::_bi::value<std::codecvt<wchar_t, char, __mbstate_t> const*>, boost::arg<1>, boost::arg<2>, boost::arg<3>, boost::arg<4>, boost::arg<5>, boost::arg<6>, boost::arg<7> > > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::_bi::bind_t<std::codecvt_base::result, boost::_mfi::cmf7<std::codecvt_base::result, std::__codecvt_abstract_base<wchar_t, char, __mbstate_t>, __mbstate_t&, char const*, char const*, char const*&, wchar_t*, wchar_t*, wchar_t*&>, boost::_bi::list8<boost::_bi::value<std::codecvt<wchar_t, char, __mbstate_t> const*>, boost::arg<1>, boost::arg<2>, boost::arg<3>, boost::arg<4>, boost::arg<5>, boost::arg<6>, boost::arg<7> > >) () from /usr/lib/libgclib.so.0
#8  0x00007ffff665cde6 in boost::from_8_bit(std::string const&, std::codecvt<wchar_t, char, __mbstate_t> const&) ()
   from /usr/lib/libgclib.so.0
#9  0x00007ffff665ce00 in boost::from_utf8(std::string const&) () from /usr/lib/libgclib.so.0
#10 0x00007ffff66546bf in boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const () from /usr/lib/libgclib.so.0
#11 0x00007ffff665088e in boost::program_options::store(boost::program_options::basic_parsed_options<char> const&, boost::program_options::variables_map&, bool) () from /usr/lib/libgclib.so.0
#12 0x00007ffff281a0b0 in rospack::parse_args(int, char**, rospack::Rosstackage ...
(more)