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

neuromancer2701's profile - activity

2023-09-04 13:45:48 -0500 received badge  Notable Question (source)
2023-09-04 13:45:48 -0500 received badge  Popular Question (source)
2023-05-08 09:41:39 -0500 received badge  Enlightened (source)
2023-05-08 09:41:39 -0500 received badge  Good Answer (source)
2023-03-06 01:58:21 -0500 marked best answer state_interfaces_ empty in custom ros2_control controller

I have created a simple state broadcasting controller, I used the joint state broadcaster as a template. The inherited state_interfaces_ vector is empty in the controller when I try to validate the interfaces in on_config.

I have setup the interfaces in the ros2_control plugin and set the names in state_interface_configuration in the controller. I have put debug trace in both the command and sate configuration functions but I don't see the trace running.

Any ideas?

2023-03-01 14:30:52 -0500 answered a question state_interfaces_ empty in custom ros2_control controller

The inherited state_interfaces_ is not available until on_activate and that is based on if the correct state interfaces

2023-03-01 14:30:52 -0500 received badge  Rapid Responder (source)
2023-03-01 13:48:56 -0500 asked a question state_interfaces_ empty in custom ros2_control controller

state_interfaces_ empty in custom ros2_control controller I have created a simple state broadcasting controller, I used

2023-02-20 15:12:27 -0500 received badge  Nice Answer (source)
2023-02-07 12:10:45 -0500 received badge  Popular Question (source)
2023-02-03 01:51:43 -0500 received badge  Student (source)
2022-11-09 07:54:07 -0500 asked a question ros2_canopen proxy driver examples

ros2_canopen proxy driver examples I was wondering if there were any open source examples of implementing a ros2_canopen

2022-05-14 10:00:42 -0500 received badge  Self-Learner (source)
2022-05-14 10:00:42 -0500 received badge  Teacher (source)
2022-04-14 01:55:26 -0500 received badge  Famous Question (source)
2021-04-23 05:32:59 -0500 received badge  Notable Question (source)
2021-04-23 05:32:59 -0500 received badge  Popular Question (source)
2020-10-11 14:10:17 -0500 asked a question rospy timer exception in callback

rospy timer exception in callback I have 4 timers that are talking to a set of motors and some associated pubs. One of t

2020-06-30 07:52:47 -0500 received badge  Famous Question (source)
2020-03-23 09:50:06 -0500 received badge  Notable Question (source)
2019-12-11 20:26:37 -0500 received badge  Enthusiast
2019-11-18 11:20:14 -0500 received badge  Popular Question (source)
2019-11-18 02:06:53 -0500 marked best answer ROS2 twist sub linker errors

I am trying to build a node for a motor controller. I have a timer, a pub<custom message> and a sub to twist.
I have added both std_msgs and geometry_msgs to both the package.xml and the cmakelist.txt.

It compiles and links if I comment out the line below:

subscription_ = this->create_subscription<Twist>("cmd_vel", std::bind(&VescNode::twist_callback, this, _1),cmd_vel_qos_profile);

Then that line is added back in I get all sorts of linking errors. Are std_msgs and geometry_msgs conflicting somehow?

Error:

CMakeFiles/vesc_node.dir/vesc_node.cpp.o: In function rclcpp::create_subscription_factory<geometry_msgs::msg::Twist_<std::allocator<void> >, std::_Bind<void (VescNode::*(VescNode*, std::_Placeholder<1>))(std::shared_ptr<geometry_msgs::msg::Twist_<std::allocator<void> > >)>, std::allocator<void>, geometry_msgs::msg::Twist_<std::allocator<void> >, rclcpp::Subscription<geometry_msgs::msg::Twist_<std::allocator<void> >, std::allocator<void> > >(std::_Bind<void (VescNode::*(VescNode*, std::_Placeholder<1>))(std::shared_ptr<geometry_msgs::msg::Twist_<std::allocator<void> > >)>&&, rclcpp::SubscriptionEventCallbacks const&, rclcpp::message_memory_strategy::MessageMemoryStrategy<geometry_msgs::msg::Twist_<std::allocator<void> >, std::allocator<void> >::SharedPtr, std::shared_ptr<std::allocator<void> >)::{lambda(rclcpp::node_interfaces::NodeBaseInterface*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rcl_subscription_options_t const&)#1}::operator()(rclcpp::node_interfaces::NodeBaseInterface*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rcl_subscription_options_t const&) const':
vesc_node.cpp:(.text._ZZN6rclcpp27create_subscription_factoryIN13geometry_msgs3msg6Twist_ISaIvEEESt5_BindIFM8VescNodeFvSt10shared_ptrIS5_EEPS7_St12_PlaceholderILi1EEEES4_S5_NS_12SubscriptionIS5_S4_EEEENS_19SubscriptionFactoryEOT0_RKNS_26SubscriptionEventCallbacksENS_23message_memory_strategy21MessageMemoryStrategyIT2_T1_E9SharedPtrES8_ISS_EENKUlPNS_15node_interfaces17NodeBaseInterfaceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK26rcl_subscription_options_tE_clESY_S16_S19_[_ZZN6rclcpp27create_subscription_factoryIN13geometry_msgs3msg6Twist_ISaIvEEESt5_BindIFM8VescNodeFvSt10shared_ptrIS5_EEPS7_St12_PlaceholderILi1EEEES4_S5_NS_12SubscriptionIS5_S4_EEEENS_19SubscriptionFactoryEOT0_RKNS_26SubscriptionEventCallbacksENS_23message_memory_strategy21MessageMemoryStrategyIT2_T1_E9SharedPtrES8_ISS_EENKUlPNS_15node_interfaces17NodeBaseInterfaceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK26rcl_subscription_options_tE_clESY_S16_S19_]+0x16d): undefined reference to rosidl_message_type_support_t const* rosidl_typesupport_cpp::get_message_type_support_handle<geometry_msgs::msg::Twist_<std::allocator<void> > >()'
collect2: error: ld returned 1 exit status

Code: vesc_node.cpp vesc_node.hpp

2019-11-17 20:54:34 -0500 answered a question ROS2 twist sub linker errors

I figured out the problem. I had added the 'geometry_msgs' to all of the places in package.xml and CMakeLists.txt excep

2019-11-17 20:54:34 -0500 received badge  Rapid Responder (source)
2019-11-17 16:37:26 -0500 edited question ROS2 twist sub linker errors

ROS2 twist sub linker errors I am trying to build a node for a motor controller. I have a timer, a pub<custom message

2019-11-17 16:37:26 -0500 received badge  Editor (source)
2019-11-17 16:36:13 -0500 commented question ROS2 twist sub linker errors

I did implement the code with using using geometry_msgs::msg::Twist; I just tested it without that and I still get th

2019-11-17 16:35:59 -0500 commented question ROS2 twist sub linker errors

I did implement the code with using 'using geometry_msgs::msg::Twist;' I just tested it without that and I still get

2019-11-17 16:35:45 -0500 commented question ROS2 twist sub linker errors

I did implement the code with using using geometry_msgs::msg::Twist; I just tested it without that and I still get th

2019-11-17 16:33:21 -0500 edited question ROS2 twist sub linker errors

ROS2 twist sub linker errors I am trying to build a node for a motor controller. I have a timer, a pub<custom message

2019-11-16 17:52:41 -0500 asked a question ROS2 twist sub linker errors

ROS2 twist sub linker errors I am trying to build a node for a motor controller. I have a timer, a pub<custom message

2019-10-18 10:55:05 -0500 received badge  Famous Question (source)
2019-08-18 09:13:10 -0500 received badge  Notable Question (source)
2019-08-18 09:13:10 -0500 received badge  Popular Question (source)
2019-06-21 07:28:57 -0500 commented answer ROS 2 Sharing data/resources between class and pub and sub

I just didn't know since ROS 2 added a threaded model did they add some sort of mechanism for sharing data between those

2019-06-21 00:33:17 -0500 asked a question ROS 2 Sharing data/resources between class and pub and sub

ROS 2 Sharing data/resources between class and pub and sub So I have written a serial protocol C++ lib to talk to a coup