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

ROS Noetic Compatibility Changes #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

prabinrath
Copy link

@prabinrath prabinrath commented May 28, 2022

These changes make the rrt_exploration package compatible with ROS Noetic

  1. Python 3 is the default for ROS1 distributions starting from Noetic. Hence, the shebang has been updated to point at python3.
  2. Integer division result is different between python2 and python3. For example, 3/2 is 1 in python2 but 1.5 in python3, however, 3//2 is 1 in python3. Hence, the / operator has been replaced with // to get floored integers.

@prabinrath
Copy link
Author

With these changes, I was able to run the rrt_exploration package on my custom robot + ROS Noetic successfully. Please find the associated launch file for a single robot exploration scenario here.

@phoenixrider12
Copy link

Hey @prabinrath , when I am trying to run your fork in ROS noetic, my robots are not moving. Nothing gets printed on terminal after "Waiting for the robot transform". Can you help?

@prabinrath
Copy link
Author

@phoenixrider12 the message is "Waiting for the robot transform", I guess your TF graph is probably not connected. Your robot needs to be navigation ready before you can use RRT exploration. For getting started with this package I had to tune some parameters. This package is designed for multi-robot systems and running it on a single robot system without the "robot_1" namespace requires overriding default params in the launch file. You can refer to my launch file that sets these parameters for the package here.

@phoenixrider12
Copy link

frames
see the tf_tree is correct I think and autonomous navigation works on my robot so I think its navigation ready. I also tried with your launch file but the issue is still same

@prabinrath
Copy link
Author

@phoenixrider12 please share the link to your package. The information you have provided is not enough to debug the issue. There are a plethora of reasons that may lead to the issue you are facing. It is not related to this thread for ROS Noetic compatibility. I would suggest you create an issue in your repository and share the link with me at [email protected]

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

Successfully merging this pull request may close these issues.

2 participants