Closed IdoPractical closed 1 year ago
Hi @practical-mechanics,
If you want to have a boolean output topic, the best way is to create your specific controller that converts the state_interface
double data to a boolean array message and publishes it on a ROS topic.
Hi @practical-mechanics, If you want to have a boolean output topic, the best way is to create your specific controller that converts the
state_interface
double data to a boolean array message and publishes it on a ROS topic.
I didn't think about it.. good idea :) Is it possible to make it with a node instead of a controller? (sorry for the noob question) Do you have any information about how to create a controller on ROS2? Thank you!
You can do it with a node by reading the topic and doing the conversion but a dedicated controller is more suited for this. For building controllers for ros2_control, here is a tutorial.
Thank you!
Hello, I successfully connected my Delta R1-EC6002 module to ROS2 via Ethercat. It's a digital input module with 16 channels, the output should be Boolean but I see it as Float. For example, I see 8.0 when I click the button connected to channel 4 (due the bit mask). I assume it happens because of the type of the gpio_states topic which is DynamicJointState Is there a way to change the data type of this topic? Thank you!