Robotics StackExchange | Archived questions

Custom Action Messages in ROSSerial Arduino

I am trying to run an action server on my arduino to control 4 stepper motors. I started by creating my motorpose.action file:

#goal definition - 4 angles to be sent to arduino
float32 baseAngle
float32 mainAngle
float32 secAngle
float32 toolAngle
---
#result definition - State of motion
bool motionComplete
---
#feedback definition - Current steps for each robot
int32 baseCS
int32 mainCS
int32 secCS
int32 toolCS

After compiling, I have no issues loading my msgs into Python and CPP files. All of the messages are generated in the catkin_ws/devel/include and catkin_ws/devel/share directories. They also appear when I call rosmsg list.

However, after following the tutorial for loading my roslib into my arduino libraries at http://wiki.ros.org/rosserialarduino/Tutorials/Adding%20Custom%20Messages:

rosrun rosserial_client make_library.py path_to_libraries your_message_package

In my specific case I run:

rosrun rosserial_client make_library.py ~/Documents/Arduino/Arduino/libraries motor_control

I have also tried

rosserial_python make_libraries.py ...

In all cases I will get a ros_lib directory with all ROS headers and even messages from other packages but not the motorpose Action Headers that I just generated.

Any ideas what I'm missing?

Asked by mhyde64 on 2019-11-20 20:30:11 UTC

Comments

Answers

Hat is the Outputs of

rosrun rosserial_client make_library.py path_to_libraries your_message_package

As Iread here There is no Support for Action

https://github.com/ros-drivers/rosserial/issues/182

Asked by duck-development on 2019-11-21 19:20:51 UTC

Comments

Thank you. I'll have to explore compiling C code from the workspace to the arduino.

Asked by mhyde64 on 2019-11-21 22:32:33 UTC

If you have some like an cortex m3 or bigger you may try ros bridge

Asked by duck-development on 2019-11-22 02:20:27 UTC