ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Michdo93's profile - activity

2022-12-14 16:26:27 -0500 received badge  Famous Question (source)
2022-12-14 16:26:27 -0500 received badge  Notable Question (source)
2022-11-24 02:48:15 -0500 received badge  Self-Learner (source)
2022-11-24 02:48:15 -0500 received badge  Teacher (source)
2022-08-17 05:50:43 -0500 commented question How to convert OccupancyGridMap to .pgm with Python?

I have completely rewritten the code again and it works now: def mapConvert(self, msg): header = msg.header

2022-08-16 16:36:30 -0500 asked a question How to convert OccupancyGridMap to .pgm with Python?

How to convert OccupancyGridMap to .pgm with Python? Hi I want to convert a OccupancyGridMap to a .pgm image file with

2022-04-24 06:25:09 -0500 received badge  Popular Question (source)
2022-04-23 07:18:14 -0500 commented answer Create custom message with min and max value for a specific field

I changed it to int8 PERCENTAGE0=0 as example.

2022-04-23 06:42:26 -0500 asked a question Create custom message with min and max value for a specific field

Create custom message with min and max value for a specific field Hi, maybe a very bad question but I haven't seen a so

2022-03-22 10:27:55 -0500 received badge  Famous Question (source)
2021-12-14 06:49:33 -0500 received badge  Famous Question (source)
2021-12-14 06:49:33 -0500 received badge  Notable Question (source)
2021-11-28 06:19:18 -0500 commented answer gazebo_ros_control plugin: GazeboRosControlPlugin missing <legacyModeNS> DefaultRobotHWSim

this change does not have an effect. The same error appears again using ros-kinetic.

2021-10-24 08:32:55 -0500 answered a question Unable to install keys for ROS Kinetic using Ubuntu 16.04

Well it is not a good solution. I can install ROS but I can not install new packages. As example: sudo apt-get install

2021-10-22 08:15:37 -0500 asked a question ROS GPG keys for Raspberry Pi

ROS GPG keys for Raspberry Pi Hi, I got following error if I try to install ROS on Raspbian gpg --keyserver hkp://ha.p

2021-10-22 08:13:56 -0500 asked a question GPG keyserver Raspberry PI

GPG keyserver Raspberry PI Hi, I got following error if I try to install ROS on Raspbian gpg --keyserver hkp://ha.pool

2021-08-21 12:59:44 -0500 received badge  Popular Question (source)
2021-07-01 06:18:29 -0500 received badge  Notable Question (source)
2021-06-29 07:17:57 -0500 commented answer Run rospy inside Jython

And in older versions: sudo java -jar jython-standalone-2.7-b1.jar -Dpython.path=$PYTHONPATH Jython 2.7b1 (default:ac42

2021-06-29 07:17:23 -0500 commented answer Run rospy inside Jython

I tested all standalone Jython jar files. In none of this it works. Sadly... sudo java -jar jython-standalone-2.7-b2.ja

2021-06-29 05:41:40 -0500 commented answer Run rospy inside Jython

*to But what is not possible is that rospy as example loads other imports. So I can not run genpy which is needed and s

2021-06-29 05:39:26 -0500 commented answer Run rospy inside Jython

I try to explain what I mean: jython talker.py Traceback (most recent call last): File "talker.py", line 39, in <m

2021-06-29 05:36:09 -0500 commented answer Run rospy inside Jython

@gvdhoorn Thank you for your explanation and help. I think in principle I was on the wrong track anyway. When you import

2021-06-29 05:00:59 -0500 commented answer Importing std_msgs.msg with Python

If you have installed and build ROS from source the path is as example ~/ros_catkin_ws/install_isolated/lib/python2.7/di

2021-06-29 04:55:38 -0500 received badge  Popular Question (source)
2021-06-29 04:26:29 -0500 commented answer Run rospy inside Jython

Inside ~/ros_catkin_ws/install_isolated/include are header files for C++. In ~/ros_catkin_ws/devel_isolated we will find

2021-06-29 04:15:51 -0500 commented answer Run rospy inside Jython

I hope no one minds if I expand on this a bit. I could still use some help. Of course it is a different if I run jython

2021-06-29 04:15:51 -0500 received badge  Commentator
2021-06-29 02:00:08 -0500 answered a question Run rospy inside Jython

Well it is not the whole ROS integration. I can not import std_msgs as example. I got this error: >>> from std

2021-06-29 02:00:08 -0500 received badge  Rapid Responder
2021-06-29 01:45:12 -0500 commented answer Run rospy inside Jython

I am amazed. It didn't work if I left out individual things, and somehow I also have to consider an appropriate order. O

2021-06-29 01:32:23 -0500 marked best answer Run rospy inside Jython

Hi,

I installed Jython like this:

sudo java -jar jython-installer-2.7.0.jar
set this path --> /usr/local/lib/jython2.7.0/
sudo ln -s /usr/local/lib/jython2.7.0/bin/jython /usr/local/bin/jython
$ which jython
/usr/local/bin/jython
$ jython --version
Jython 2.7.0

I am using Python 2.7 and Ubuntu 18.04. I have installed ROS Kinetic Kame. But this does not matter. I could also have Melodic Morenia installed the problem is that I can not import Python Packages to Jython:

jython
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
[OpenJDK 64-Bit Server VM (Azul Systems, Inc.)] on java1.8.0_252
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print('\n'.join(sys.path))

/usr/local/lib/jython2.7.0/Lib
__classpath__
__pyclasspath__/
/usr/local/lib/jython2.7.0/Lib/site-packages
>>> sys.path.append('/usr/lib/python2.7/dist-packages')
>>> print('\n'.join(sys.path))

/usr/local/lib/jython2.7.0/Lib
__classpath__
__pyclasspath__/
/usr/local/lib/jython2.7.0/Lib/site-packages
/usr/lib/python2.7/dist-packages
>>> sys.path.append('/usr/local/lib/python2.7/dist-packages')
>>> print('\n'.join(sys.path))

/usr/local/lib/jython2.7.0/Lib
__classpath__
__pyclasspath__/
/usr/local/lib/jython2.7.0/Lib/site-packages
/usr/lib/python2.7/dist-packages
/usr/local/lib/python2.7/dist-packages
>>> import rospy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named rospy
>>>

A completely another approach was jython -m pip install rospy. But pip does not really work. Sadly.

The problem with pip is that it does not work in Jython:

jython -m pip install pip --upgrade

Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip in ./site-packages
Downloading/unpacking pip
Cleaning up...
No distributions at all found for pip in ./site-packages
Storing debug log for failure in /home/<user>/.pip/pip.log

If I look inside the log file I receive:

pip run on Mon Jun 28 20:32:41 2021
Getting page https://pypi.python.org/simple/pip/
Could not fetch URL https://pypi.python.org/simple/pip/: 403 Client Error: [[[!!! BREAKING CHANGE !!!]]] Support for clients that do not support Server Name Indication is temporarily disabled and will be permanently deprecated soon. See https://status.python.org/incidents/hzmjhqsdjqgb and https://github.com/pypa/pypi-support/issues/978 [[[!!! END BREAKING CHANGE !!!]]]
Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip in ./site-packages
Getting page https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/: 403 Client Error: [[[!!! BREAKING CHANGE !!!]]] Support for clients that do not support Server Name Indication is temporarily disabled and will be permanently deprecated soon. See https://status.python.org/incidents/hzmjhqsdjqgb and https://github.com/pypa/pypi-support/issues/978 [[[!!! END BREAKING CHANGE !!!]]]
Will skip URL https://pypi.python.org/simple/ when looking for download links ...
(more)
2021-06-29 01:32:23 -0500 received badge  Scholar (source)
2021-06-28 16:39:39 -0500 commented answer Run rospy inside Jython

I'm not sure what you're getting at. Should I add to Jython /opt/ros/$ROSDISTRO? By the way I build it from source becau

2021-06-28 16:39:26 -0500 commented answer Run rospy inside Jython

I'm not sure what you're getting at. Should I add to Jython /opt/ros/$ROSDISTRO? By the way I build it from source becau

2021-06-28 14:44:33 -0500 asked a question Run rospy inside Jython

Run rospy inside Jython Hi, I installed Jython like this: sudo java -jar jython-installer-2.7.0.jar set this path --&g

2021-06-28 02:53:25 -0500 answered a question Link rospack to newer version of boost

I am wondering. I have installed libboost 1.58 manually on Ubuntu 18. This was a solution I have seen in the installatio

2021-06-21 14:47:21 -0500 edited question Need help using matplotlib inside callback function

Need help using matplotlib inside callback function Hi, at first I tried this code without ROS and the Raspberry Pi sen

2021-06-21 14:46:28 -0500 asked a question Need help using matplotlib inside callback function

Need help using matplotlib inside callback function Hi, at first I tried this code without ROS and the Raspberry Pi sen

2021-03-08 09:27:26 -0500 received badge  Famous Question (source)
2021-03-08 09:27:26 -0500 received badge  Notable Question (source)