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

MPC is not solved #2

Open
zrd1234 opened this issue Feb 1, 2023 · 11 comments
Open

MPC is not solved #2

zrd1234 opened this issue Feb 1, 2023 · 11 comments

Comments

@zrd1234
Copy link

zrd1234 commented Feb 1, 2023

Hello, I have met some questions, could you please answer them for me? Thank you very much.
屏幕截图 2023-02-01 16:55:18

@kohonda
Copy link
Owner

kohonda commented Feb 1, 2023

@zrd1234
Hi.
Do you publish the topic /reference_path as type nav_msgs/Path ?

@zrd1234
Copy link
Author

zrd1234 commented Feb 1, 2023

nav_msgs/Path

Yes, I passed in the topic type nav_msgs/Path.
No response when not introduced.
11111
22222

@kohonda
Copy link
Owner

kohonda commented Feb 1, 2023

@zrd1234
Can you confirm that the MPC node subscribes the reference path?
https://github.com/kohonda/mpc_tracker_ros/blob/main/src/mpc_tracker_core.cpp#L207

@zrd1234
Copy link
Author

zrd1234 commented Feb 2, 2023

@zrd1234 Can you confirm that the MPC node subscribes the reference path? https://github.com/kohonda/mpc_tracker_ros/blob/main/src/mpc_tracker_core.cpp#L207

Hi, I tried to add ROS_INFO to print info, he can occasionally display info.
However, [MPC] Path callback: receive path size = is not displayed.
When I publish the track, it looks like this.
123456

@kohonda
Copy link
Owner

kohonda commented Feb 2, 2023

@zrd1234
I think the reference path topic is not published or published by the wrong way.
Can you check the publishd topic like:

rostopic echo <topic-name>
rostopic info <topic-name>

If the topic is published, can you check the path using Rviz?

@zrd1234
Copy link
Author

zrd1234 commented Feb 2, 2023

@zrd1234 I think the reference path topic is not published or published by the wrong way. Can you check the publishd topic like:

rostopic echo <topic-name>
rostopic info <topic-name>

If the topic is published, can you check the path using Rviz?

Hello, this is the type of message I printed and can be subscribed to in rviz.
456789

@kohonda
Copy link
Owner

kohonda commented Feb 2, 2023

@zrd1234
Topic name is '/ego_planner_node/optimal_path', right?
Can you change the topic name in the config.yaml: from 'optimal_path' to 'ego_planner_node/optimal_path'?

@zrd1234
Copy link
Author

zrd1234 commented Feb 2, 2023

@zrd1234 Topic name is '/ego_planner_node/optimal_path', right? Can you change the topic name in the config.yaml: from 'optimal_path' to 'ego_planner_node/optimal_path'?

I have changed it. I did not write it correctly at the beginning, but the content of the configuration file is as follows:
out_twist_topic: twist_cmd
in_refpath_topic: /ego_planner_node/optimal_path
in_odom_topic: /visual_slam/odom
robot_frame_id: base_link
map_frame_id: map

@kohonda
Copy link
Owner

kohonda commented Feb 2, 2023

@zrd1234
I see.
What about publishing the reference path topic after the MPC node is up and running?

@zrd1234
Copy link
Author

zrd1234 commented Feb 2, 2023

When I run the MPC node first, the terminal prints the following:
77878
When I published the path again, the original problem occurred.
If it is inconvenient to communicate on this, could you please leave a contact information for good communication? thank you

@kohonda
Copy link
Owner

kohonda commented Feb 3, 2023

@zrd1234
Sorry, I am late replying.
I have no idea to deal with it because I have no way of reproducing it.
This is probably not a problem with this package but with the system.
Thank you.

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