Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 1441

Multiple hardware interfaces on one controller

$
0
0
Hi, I have a robot with two different types of motors. I have made a separate hardware interface for each type. To control the robot I want to use a JointTrajectoryController that uses joints from both hardware interfaces. I have followed [this](https://slaterobots.com/blog/5abd8a1ed4442a651de5cb5b/how-to-implement-ros_control-on-a-custom-robot) structure for the hardware interfaces, but instead of launching one hardware interface node, I launch two. When I launch the nodes and controller manager I get the following prints: Could not find joint 'Joint2' in 'hardware_interface::PositionJointInterface'. Failed to load /ROBOT/controller/trajectory/path My controller config look like this: trajectory: path: type: position_controllers/JointTrajectoryController joints: - joint1 - joint2 Joint1 is from hardwareinterface 1 and joint2 is from hardwareinterface 2 Is it not possible to have a controller use two hardware interfaces?

Viewing all articles
Browse latest Browse all 1441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>