justagist / panda_simulator

A Gazebo simulator for the Franka Emika Panda robot with ROS interface, supporting sim-to-real code transfer (Python). Exposes customisable controllers and state feedback from robot in simulation.
Apache License 2.0
188 stars 58 forks source link

Fixups for python3 and noetic #43

Closed lucbettaieb closed 3 years ago

lucbettaieb commented 3 years ago

Fixups for compatibility with ROS Noetic + python3

Companion PR for franka_ros_interface https://github.com/justagist/franka_ros_interface/pull/30

lucbettaieb commented 3 years ago

@justagist I'm not a super pythonic individual, so if there's a better way of doing the imports over from .thing import * please lemme know and I'll revise the PR.

Hope this is helpful!

lucbettaieb commented 3 years ago

I haven't tested this a bunch yet, but will be doing so for one of my own projects. However, I've been able to launch it without a bunch of errors popping up in the launching terminal.

Here's a screenscast: https://drive.google.com/file/d/128UMZ7vXNV5PtdDFBiyChlcVvUT9vY42/view?usp=sharing

lucbettaieb commented 3 years ago

Also, I see you may not be a fan of my changes to the requirements.txt file per another PR. Not having warnings/errors when launching is pretty nice, but its your project and not required for it to run, so lemme know and I'll remove them.

justagist commented 3 years ago

Hi, thanks for this PR as well! The complication with porting the simulator to Noetic was getting Moveit to work (the other changes are trivial) because panda_moveit_config had not been fully integrated with Noetic when I had tested. I don't know if they have fixed this now; have you checked if this works correctly with your modifications?

Obviously, the main reason for writing this simulator was to be able to use the same interfaces and code interchangeably with the real robot, so I can review this only after I am done reviewing your other PR (There are also a couple of other major changes planned to the simulator, which may slow the review of this PR even further unfortunately).

Also, I see you may not be a fan of my changes to the requirements.txt file per another PR. Not having warnings/errors when launching is pretty nice, but its your project and not required for it to run, so lemme know and I'll remove them.

Haha, yes, sorry! I would rather not have unnecessary packages added as dependencies to this repository just to remove insignificant warning messages. But this is not a big problem, and can be dealt with later. The main things that concern me are the following, and your help will be greatly appreciated:

  1. Moveit compatibility
  2. Franka ROS Interface compatibility (easiest way might be to just test if all the demos mentioned in the README of this repo run correctly)

Thanks again for this PR, and very sorry that I am unable to review it soon. In the meantime, I will direct anyone who is looking for a Noetic version of this simulator to your fork so that my delay doesn't affect them.

-- Saif

justagist commented 3 years ago

Hi, I started working on a separate branch entirely (now in testing phase) for ROS Noetic + Python3 support because significant changes were required for other files not included in your PR, and most of the changes in this PR were not needed. So it was easier to just start from scratch. I am closing this PR, but please feel free to raise another one if you want to add more changes. The current branch (beta phase) relevant to your PR is _noetic_test.

lucbettaieb commented 3 years ago

@justagist Sweet! No worries, glad I was able to at least help you get started.