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

Danfoa's profile - activity

2020-04-19 01:48:58 -0500 received badge  Famous Question (source)
2019-12-04 03:01:04 -0500 received badge  Good Answer (source)
2019-11-21 14:57:08 -0500 received badge  Popular Question (source)
2019-10-23 08:08:57 -0500 received badge  Nice Answer (source)
2019-10-23 08:08:52 -0500 received badge  Student (source)
2019-08-27 15:55:50 -0500 received badge  Famous Question (source)
2019-05-24 08:27:09 -0500 commented question Providing MoveIt! with (external) octomap data

Did you get an answer? Do you have the code for publishing the octomap?

2019-05-24 08:27:09 -0500 received badge  Commentator
2019-05-24 02:01:38 -0500 commented answer Read or write message from/to file

The ros bag C++ API provides this functionality. see here

2019-03-29 07:16:55 -0500 received badge  Notable Question (source)
2019-03-29 07:16:55 -0500 received badge  Popular Question (source)
2019-03-26 09:18:47 -0500 commented answer load nodelet service as an library

Maybe information about the service name, service message name, and example code could be very helpful here...

2019-02-19 03:37:23 -0500 edited question Axis displayed improperly on rviz_visual_tools

Axis displayed unproperly on rviz_visual_tools Good day, I am having an issue with the display of some axis markers on

2019-02-19 03:36:59 -0500 asked a question Axis displayed improperly on rviz_visual_tools

Axis displayed unproperly on rviz_visual_tools Good day, I am having an issue with the display of some axis markers on

2019-02-15 09:52:58 -0500 marked best answer Error using member function as callback for `setFromIK` on `RobotState` class

Good day,

I am trying to use the function setFromIK defined on moveit::core::RobotState.

This function admits a callable parameter named GroupStateValidityCallbackFn with type (function signature):

typedef boost::function<bool(RobotState* robot_state, const JointModelGroup* joint_group, const double* joint_group_variable_values)>

The problem arises because I am trying to pass a member class functions to this parameter (because I need come class instance member fields in the processing), and then the binding process goes to hell.

My class look like this:

class CSDA10F{
    public:
       bool validateIKSolution( robot_state::RobotState* robot_state, 
                                        const robot_state::JointModelGroup* joint_group, 
                                        const double* joint_group_variable_value){
              [...]
              // some code here
              [...]
       }

       bool planCartesianMotionTask(MoveGroupInterface* move_group, 
                                                    geometry_msgs::Pose initial_pose, 
                                                    geometry_msgs::Pose final_pose,
                                                    std::vector<MoveGroupInterface::Plan> motion_plans,
                                                    uint max_configurations = 10) {
       [...] // Here I make the call!!!.
            auto ik_check_callback = std::bind(&CSDA10F::validateIKSolution, this, _1, _2, _3);
            ik_solution_found = start_state.setFromIK( joint_model_group, initial_pose, 10, 0.01, ik_check_callback);
       [...]
       }

I use 3 placeholders for the 3 arguments from the function, but then the compiler just failes with an error that I simply dont understand.

In file included from /usr/include/boost/function/detail/maybe_include.hpp:28:0,
                 from /usr/include/boost/function/detail/function_iterate.hpp:14,
                 from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:62,
                 from /usr/include/boost/function.hpp:64,
                 from /opt/ros/kinetic/include/ros/forwards.h:40,
                 from /opt/ros/kinetic/include/ros/common.h:37,
                 from /opt/ros/kinetic/include/ros/ros.h:43,
                 from /home/invite/catkin_ws/src/[...].cpp:1:
/usr/include/boost/function/function_template.hpp: In instantiation of ‘static R boost::detail::function::function_obj_invoker3<FunctionObj, R, T0, T1, T2>::invoke(boost::detail::function::function_buffer&, T0, T1, T2) [with FunctionObj = std::_Bind<std::_Mem_fn<bool (invite_utils::CSDA10F::*)(moveit::core::RobotState*, const moveit::core::JointModelGroup*, const double*)>(invite_utils::CSDA10F, boost::arg<1>, boost::arg<2>, boost::arg<3>)>; R = bool; T0 = moveit::core::RobotState*; T1 = const moveit::core::JointModelGroup*; T2 = const double*]’:
/usr/include/boost/function/function_template.hpp:940:38:   required from ‘void boost::function3<R, T1, T2, T3>::assign_to(Functor) [with Functor = std::_Bind<std::_Mem_fn<bool (invite_utils::CSDA10F::*)(moveit::core::RobotState*, const moveit::core::JointModelGroup*, const double*)>(invite_utils::CSDA10F, boost::arg<1>, boost::arg<2>, boost::arg<3>)>; R = bool; T0 = moveit::core::RobotState*; T1 = const moveit::core::JointModelGroup*; T2 = const double*]’
/usr/include/boost/function/function_template.hpp:728:7:   required from ‘boost::function3<R, T1, T2, T3>::function3(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = std::_Bind<std::_Mem_fn<bool (invite_utils::CSDA10F::*)(moveit::core::RobotState*, const moveit::core::JointModelGroup*, const double*)>(invite_utils::CSDA10F, boost::arg<1>, boost::arg<2>, boost::arg<3>)>; R = bool; T0 = moveit::core::RobotState*; T1 = const moveit::core::JointModelGroup*; T2 = const double*; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]’
/usr/include/boost/function/function_template.hpp:1077:16:   required from ‘boost::function<R(T0, T1, T2)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = std::_Bind<std::_Mem_fn<bool (invite_utils::CSDA10F::*)(moveit ...
(more)
2019-02-15 09:52:55 -0500 commented answer Error using member function as callback for `setFromIK` on `RobotState` class

Thank you, the solution was also mentioned here, but I forgot to upload ROS answers.

2019-02-14 08:13:53 -0500 received badge  Necromancer (source)
2019-02-14 08:13:53 -0500 received badge  Self-Learner (source)
2019-02-14 08:13:53 -0500 received badge  Teacher (source)
2019-02-08 08:37:58 -0500 asked a question Error using member function as callback for `setFromIK` on `RobotState` class

Error using member function as callback for `setFromIK` on `RobotState` class Good day, I am trying to use the function

2019-01-28 08:53:49 -0500 edited answer Return of multple IK configurations of goal state.

I find a way of obtaining some of the possible IK solutions for a given goal state, by using a custom implementation of

2019-01-28 08:53:20 -0500 edited answer Return of multple IK configurations of goal state.

I find a way of obtaining some of the possible IK solutions for a given goal state, by using a custom implementation of

2019-01-28 08:51:58 -0500 answered a question Return of multple IK configurations of goal state.

I find a way of obtaining some of the possible IK solutions for a given goal state, by using a custom implementation of

2019-01-28 08:19:50 -0500 received badge  Famous Question (source)
2019-01-28 08:19:50 -0500 received badge  Notable Question (source)
2019-01-28 08:19:50 -0500 received badge  Popular Question (source)
2019-01-17 02:38:51 -0500 edited answer Understand PointCloud2 msg (data array)

Here you can find useful information about the message structure and how to iterate through the cloud points.

2019-01-17 02:38:20 -0500 answered a question Understand PointCloud2 msg (data array)

Here you can find useful information about the message structure and how to iterate through it.

2019-01-08 07:23:49 -0500 commented answer Sourcing from multiple workspaces

It seems not to, I did it with a source installation of moveit, and it does not work.

2019-01-03 04:33:13 -0500 received badge  Famous Question (source)
2019-01-03 04:33:13 -0500 received badge  Notable Question (source)
2018-12-19 02:42:12 -0500 received badge  Notable Question (source)
2018-12-19 02:42:12 -0500 received badge  Popular Question (source)
2018-12-18 05:23:23 -0500 commented question [Octomap] Not updating the map in real time?

Having the same issue, were you able to solve this?

2018-12-17 17:34:07 -0500 received badge  Popular Question (source)
2018-12-17 15:59:55 -0500 edited question Deeper control over robot self-filtering

Deeper control over robot self-filtering Good day, For an application in development, it is important to use the self-f

2018-12-17 09:01:05 -0500 edited question Deeper control over robot self-filtering

Deeper control over robot self-filtering Good day, For an application, we are developing it is important to use the sel

2018-12-17 09:00:27 -0500 asked a question Deeper control over robot self-filtering

Deeper control over robot self-filtering Good day, For an application, we are developing it is important to use the sel

2018-12-10 03:55:20 -0500 received badge  Famous Question (source)
2018-10-17 04:10:03 -0500 asked a question Return of multple IK configurations of goal state.

Return of multple IK configurations of goal state. I have searched a lot for the way of obtaining a set of possible IK r

2018-10-01 06:12:45 -0500 received badge  Famous Question (source)
2018-10-01 06:12:45 -0500 received badge  Notable Question (source)
2018-05-08 04:41:44 -0500 received badge  Famous Question (source)
2018-04-25 15:12:17 -0500 received badge  Popular Question (source)
2018-04-15 17:23:25 -0500 asked a question controller_joint_names param joint-order for Motoman Driver nodes?

controller_joint_names param joint-order for Motoman Driver nodes? Good day, we are integrating the CSDA10F motoman robo

2018-04-14 14:49:19 -0500 received badge  Enthusiast
2018-04-13 17:29:29 -0500 edited question motion_interface.yaml and controller_joint_names.yaml configuration for Motoman CSDA10F with FS100 controller

motion_interface.yaml and controller_joint_names.yaml configuration for Motoman CSDA10F with FS100 controller Good day.

2018-04-13 17:28:40 -0500 edited question motion_interface.yaml and controller_joint_names.yaml configuration for Motoman CSDA10F with FS100 controller

motion_interface.yaml and controller_joint_names.yaml configuration for Motoman CSDA10F with FS100 controller Good day.

2018-04-13 17:17:20 -0500 asked a question motion_interface.yaml and controller_joint_names.yaml configuration for Motoman CSDA10F with FS100 controller

motion_interface.yaml and controller_joint_names.yaml configuration for Motoman CSDA10F with FS100 controller Good day.