joshnewans / articubot_one

282 stars 248 forks source link

running this on ros1(ament_index_python.packages) #1

Closed Vasanth28897 closed 2 years ago

Vasanth28897 commented 2 years ago

Hi, i have been following your work on ROS, since i started ros. so, i am running this articubot_one(with 4 wheel instead of a caster one) on my machine(installed ros1-melodic) in different name, changed the name where all i can find. The problem is ros1 didn't find "ament_index_python" package, because it is build on catkin not on colcon. How can i fix this? is there anyway to run this on catkin? Below is the error showed when i run.

Screenshot from 2022-03-10 12-24-18

joshnewans commented 2 years ago

Hi, thanks for your interest in the project!

Unfortunately this project is being built on ROS 2, not ROS 1, and although there are a lot of conceptual similarities, the actual syntax is completely different. Your post highlights just two examples of this:

If you wanted to follow this project but use ROS 1 you will have to write more of the code from scratch - e.g a new CMakeLists.txt, an XML version of the launch files, and using ROS 1 alternatives for the control code.

I strongly recommend using ROS 2 instead, since ROS 1 is no longer being developed. If you are stuck on Ubuntu 18.04 your options are:

If you have the option, the easiest approach will be to swap to Ubuntu 20.04 and install Foxy normally.

I hope that answer is helpful, feel free to get back to me if needed.

Vasanth28897 commented 2 years ago

Hi, thanks for your reply. Will try to follow what you suggested.

K.S.Vasanth

On Sat, Mar 12, 2022 at 2:14 AM Josh Newans @.***> wrote:

Hi, thanks for your interest in the project!

Unfortunately this project is being built on ROS 2, not ROS 1, and although there are a lot of conceptual similarities, the actual syntax is completely different. Your post highlights just two examples of this:

  • ROS 2 uses ament/colcon, whereas ROS 1 uses catkin.
  • ROS 2 supports the use of Python for launch files, whereas ROS 1 only uses XML (this is the error you are seeing - rsp.launch.py is a Python file and roslaunch is expecting XML).

If you wanted to follow this project but use ROS 1 you will have to write more of the code from scratch - e.g a new CMakeLists.txt, an XML version of the launch files, and using ROS 1 alternatives for the control code.

I strongly recommend using ROS 2 instead, since ROS 1 is no longer being developed. If you are stuck on Ubuntu 18.04 your options are:

  • Use ROS 2 Eloquent (easy to install, but 1 version older than what I'll be using so there's a chance of small differences)
  • Use ROS 2 Foxy in Docker
  • Compile ROS 2 Foxy from source

If you have the option, the easiest approach will be to swap to Ubuntu 20.04 and install Foxy normally.

I hope that answer is helpful, feel free to get back to me if needed.

— Reply to this email directly, view it on GitHub https://github.com/joshnewans/articubot_one/issues/1#issuecomment-1065508647, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANLQSUDKEB6PBGPC35AB4ATU7OWBVANCNFSM5QLWUKFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

Vasanth28897 commented 2 years ago

Hi, I want to clarify some other information from the video you named "Drive your Virtual Robot". I wrote a custom robot(has a chassis and 4 wheels) in the urdf file, added all the files that need to run the bot in gazebo, I used rqt_robot_steering node used to drive the bot. It works perfectly. I tried to use the teleop_twist_keyboard to control the bot from the keyboard. But it shows like this "Waiting for subscriber to connect to /cmd_vel" . By the way, I used ROS1. I don't know what to do. Thanks in advance.

Regards

K.S.Vasanth

On Mon, Mar 14, 2022 at 10:34 AM K S Vasanth @.***> wrote:

Hi, thanks for your reply. Will try to follow what you suggested.

K.S.Vasanth

On Sat, Mar 12, 2022 at 2:14 AM Josh Newans @.***> wrote:

Hi, thanks for your interest in the project!

Unfortunately this project is being built on ROS 2, not ROS 1, and although there are a lot of conceptual similarities, the actual syntax is completely different. Your post highlights just two examples of this:

  • ROS 2 uses ament/colcon, whereas ROS 1 uses catkin.
  • ROS 2 supports the use of Python for launch files, whereas ROS 1 only uses XML (this is the error you are seeing - rsp.launch.py is a Python file and roslaunch is expecting XML).

If you wanted to follow this project but use ROS 1 you will have to write more of the code from scratch - e.g a new CMakeLists.txt, an XML version of the launch files, and using ROS 1 alternatives for the control code.

I strongly recommend using ROS 2 instead, since ROS 1 is no longer being developed. If you are stuck on Ubuntu 18.04 your options are:

  • Use ROS 2 Eloquent (easy to install, but 1 version older than what I'll be using so there's a chance of small differences)
  • Use ROS 2 Foxy in Docker
  • Compile ROS 2 Foxy from source

If you have the option, the easiest approach will be to swap to Ubuntu 20.04 and install Foxy normally.

I hope that answer is helpful, feel free to get back to me if needed.

— Reply to this email directly, view it on GitHub https://github.com/joshnewans/articubot_one/issues/1#issuecomment-1065508647, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANLQSUDKEB6PBGPC35AB4ATU7OWBVANCNFSM5QLWUKFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

Vasanth28897 commented 2 years ago

Hi, I want to clarify some other information from the video you named "Drive your Virtual Robot". I wrote a custom robot(has a chassis and 4 wheels) in the urdf file, added all the files that need to run the bot in gazebo, I used rqt_robot_steering node used to drive the bot. It works perfectly. I tried to use the teleop_twist_keyboard, like you did in that video in "Keyboard Teleop" to control the bot from the keyboard. But it shows like this "Waiting for subscriber to connect to /cmd_vel" . By the way, I used ROS1. I don't know what to do. Thanks in advance.

Regards K.S.Vasanth

K.S.Vasanth

On Mon, Mar 14, 2022 at 10:34 AM K S Vasanth @.***> wrote:

Hi, thanks for your reply. Will try to follow what you suggested.

K.S.Vasanth

On Sat, Mar 12, 2022 at 2:14 AM Josh Newans @.***> wrote:

Hi, thanks for your interest in the project!

Unfortunately this project is being built on ROS 2, not ROS 1, and although there are a lot of conceptual similarities, the actual syntax is completely different. Your post highlights just two examples of this:

  • ROS 2 uses ament/colcon, whereas ROS 1 uses catkin.
  • ROS 2 supports the use of Python for launch files, whereas ROS 1 only uses XML (this is the error you are seeing - rsp.launch.py is a Python file and roslaunch is expecting XML).

If you wanted to follow this project but use ROS 1 you will have to write more of the code from scratch - e.g a new CMakeLists.txt, an XML version of the launch files, and using ROS 1 alternatives for the control code.

I strongly recommend using ROS 2 instead, since ROS 1 is no longer being developed. If you are stuck on Ubuntu 18.04 your options are:

  • Use ROS 2 Eloquent (easy to install, but 1 version older than what I'll be using so there's a chance of small differences)
  • Use ROS 2 Foxy in Docker
  • Compile ROS 2 Foxy from source

If you have the option, the easiest approach will be to swap to Ubuntu 20.04 and install Foxy normally.

I hope that answer is helpful, feel free to get back to me if needed.

— Reply to this email directly, view it on GitHub https://github.com/joshnewans/articubot_one/issues/1#issuecomment-1065508647, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANLQSUDKEB6PBGPC35AB4ATU7OWBVANCNFSM5QLWUKFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>