Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create New Custom Message #201

Closed
MARLARCHAN opened this issue Oct 5, 2020 · 4 comments
Closed

Create New Custom Message #201

MARLARCHAN opened this issue Oct 5, 2020 · 4 comments

Comments

@MARLARCHAN
Copy link

Dear @pablogs9 @ralph-lange @FranFin

I'm trying to add custom message into microros right now. I follow according to the link.
https://micro-ros.github.io/docs/tutorials/core/create_new_type/

In that link, I update the following variables as in eg.
my_custom_message__msg__MyCustomMessage msg;

msg.byte_test = 3;
msg.uint32_test = 42;
msg.point32_test.x = 1.23;
msg.point32_test.y = 2.31;
msg.point32_test.z = 3.12;

I follwed according to the instructure procedure.

(my_custom_message__msg__MyCustomMessage ) structure is declared in (my_custom_message__struct.h ) as the following:
// Struct defined in msg/MyCustomMessage in the package my_custom_message.
typedef struct my_custom_message__msg__MyCustomMessage
{
bool bool_test;
uint8_t byte_test;
uint8_t char_test;
float float32_test;
double double_test;
int8_t int8_test;
uint8_t uint8_test;
int16_t int16_test;
uint16_t uint16_test;
int32_t int32_test;
uint32_t uint32_test;
int64_t int64_test;
uint64_t uint64_test;
geometry_msgs__msg__Point32 point32_test;
} my_custom_message__msg__MyCustomMessage;

However, I'm facing the issue as shown in following:
Issue for Adding custom message

I've no idea to trace this issue.Please check and guide for me what is the issue related.

Best Regards,
Marlar

@pablogs9
Copy link
Member

pablogs9 commented Oct 5, 2020

Provide a comprehensive list of commands and code of your application in order to reproduce this issue.

@pablogs9
Copy link
Member

pablogs9 commented Oct 5, 2020

For more info check:

https://asciinema.org/a/ERulP9hCXpkzPgpS0eKXPcozz

The session is quite long but you can find:

@MARLARCHAN
Copy link
Author

Dear @pablogs9

 Thank you for sharing your video. I just want to ask some questions.

I follow according to your video. However, when agent run and application start run, the nsh become aborting. I suspect I need to update int into microROS agent also.
Please suggest me do I need to update microROS agent side?

Best Regards,
Marlar
NSH uros_packet_test Aborting

@pablogs9
Copy link
Member

pablogs9 commented Oct 8, 2020

Hello @MARLARCHAN I'm closing this issue since it seems that you have solved the problem of creation and cross-compilation of a micro-ROS new type.

Regarding the other part: open a new issue targeting this new problem, and please take into account:

  • Be extremely descriptive about the procedure that produces the error
  • Consider opening the issue in a repository related to the nature of the problems, not always in the build system repository.
  • Always provide a list of commands so we can reproduce your issue.
  • If possible, always provide the code or a link to the code so we can reproduce your issue.
  • Avoid screenshots and try to copy-paste full logs or upload the log file (if the log is too long for copy-pasting)

@pablogs9 pablogs9 closed this as completed Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants