problem of openai using turtlebot3 in ROS Noetic
when i run this command roslaunch my_turtlebot3_openai_example start_training.launch
I am getting below error:
Traceback (most recent call last):
File "/home/zahra/ros_ws/src/turtlebot3/my_turtlebot3_openai_example/scripts/start_qlearning.py", line 20, in <module>
env = gym.make('TurtleBot3World-v0')
File "/home/zahra/.local/lib/python3.8/site-packages/gym/envs/registration.py", line 652, in make
raise e
File "/home/zahra/.local/lib/python3.8/site-packages/gym/envs/registration.py", line 640, in make
env = env_creator(**_kwargs)
File "/home/zahra/ros_ws/src/openai_ros/openai_ros/src/openai_ros/task_envs/turtlebot3/turtlebot3_world.py", line 64, in __init__
high = numpy.full((num_laser_readings), self.max_laser_value)
File "/usr/local/lib/python3.8/dist-packages/numpy/core/numeric.py", line 343, in full
a = empty(shape, dtype, order)
TypeError: expected a sequence of integers or a single integer, got '72.0'
[turtlebot3_world-2] process has died [pid 550934, exit code 1, cmd /home/zahra/ros_ws/src/turtlebot3/my_turtlebot3_openai_example/scripts/start_qlearning.py __name:=turtlebot3_world __log:=/home/zahra/.ros/log/1c6e38f4-5b80-11ed-bbb3-6d3fe910ccd7/turtlebot3_world-2.log].
log file: /home/zahra/.ros/log/1c6e38f4-5b80-11ed-bbb3-6d3fe910ccd7/turtlebot3_world-2*.log
My advice is that you determine which version(s) of ros this
openai_ros
package works in. I took a quick look, but it seems the web page doesn't say and the git repo doesn't say either. The name of the git branch iskinetic-devel
, so maybe that's a clue.okey is there any version suitable with noetic ?