Open tongtybj opened 4 years ago
I think you mean @mikepurvis and not myself.
I am no longer active with ROS presently. Best of luck with your issue.
@mikeodr
Thank you for your reply and sorry to bother you.
@mikepurvis
I narrow down this problem, and found following related error:
root@fb70210db6ac:~/ros/rosserial_ws# python3 -c 'import rosserial_arduino'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/root/ros/rosserial_ws/devel/lib/python3/dist-packages/rosserial_arduino/__init__.py", line 34, in <module>
exec(__fh.read())
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'SerialClient'
This is related to #504, and is fixed by #521
When I tried
rosrun rosserial_arduino make_libraries.py ~/
with the latest version ofnoetic-devel
, I got following unexpected result aboutrosserial_arduino
package:Then, I traced the commit history, and found that before commit a7ac6cd5f55401148a8e8c854d9029f3e815d8e5,
rosserial_arduino/Adc.msg
androsserial_arduino/Test.srv
can be correctly generated in ros_lib. Then I checked which changed file induce such problem. Surprisingly, when I reverted the change ofrosserial_python/src/rosserial_python/SerialClient.py
in this commit, the problem disappeared.Can anyone else (@mikeodr @asukiaaa ) try following commands to confirm whether this is a common phenomenon or my personal problem?
git checkout noetic-devel # latest version
rosrun rosserial_arduino make_libraries.py ~/ # please check there is no rosserial_arduino inside ros_lib
git checkout a7ac6cd
rosrun rosserial_arduino make_libraries.py ~/ # please check there is no rosserial_arduino inside ros_lib
git reset HEAD~
git checkout rosserial_python/src/rosserial_python/SerialClient.py
rosrun rosserial_arduino make_libraries.py ~/ # please check there is rosserial_arduino inside ros_lib