Carla ROS bridge: 'SceneDescription' object has no attribute 'map_name'
See original GitHub issueI am trying to use carla_ros_bridge package Carla version 0.8.4 and ros kinetic
Running the test command fails
rostest carla_ros_bridge ros_bridge_client.test
Output:
Traceback (most recent call last):
File "/home/anshul/catkin_ws/src/carla_ros_bridge/src/carla_ros_bridge/client.py", line 42, in <module>
main()
File "/home/anshul/catkin_ws/src/carla_ros_bridge/src/carla_ros_bridge/client.py", line 38, in main
carla_ros_bridge.run()
File "/home/anshul/catkin_ws/src/carla_ros_bridge/src/carla_ros_bridge/bridge.py", line 143, in run
map_handler = MapHandler(scene.map_name)
AttributeError: 'SceneDescription' object has no attribute 'map_name'
[INFO] [1540391064.654831]: Shutdown requested
[Testcase: testtestTopics] ... ERROR!
ERROR: max time [20.0s] allotted for test [testTopics] of type [rostest/publishtest]
File "/usr/lib/python2.7/unittest/case.py", line 329, in run
testMethod()
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rostest/runner.py", line 148, in fn
self.test_parent.run_test(test)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rostest/rostest_parent.py", line 132, in run_test
return self.runner.run_test(test)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/launch.py", line 684, in run_test
(test.time_limit, test.test_name, test.package, test.type))
--------------------------------------------------------------------------------
[ROSTEST]-----------------------------------------------------------------------
SUMMARY
* RESULT: FAIL
* TESTS: 0
* ERRORS: 1
* FAILURES: 0
AttributeError: ‘SceneDescription’ object has no attribute ‘map_name’
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to source carla ros bridge 0.9.7 with another python3 ros ...
I have a workspace where I have run a Python3 code. import tf >>> impport tf File " ", line 1 impport tf...
Read more >The ROS bridge package - CARLA Simulator
This parameter will synchronize the ROS /clock topic with CARLA simulation time. host and port: Network settings to connect to CARLA using a...
Read more >carla Changelog - PyUp.io
CARLA now is built with Visual Studio 2019 in Windows * Fixed bug causing the RoadOptions at the BehaviorAgent to not work as...
Read more >ROS-CARLA Integration > How to use ROS Bridge package
First run the CARLA simulator (see CARLA documentation). Wait for this message. Start ROS bridge via this command. Start ROS bridge with rviz...
Read more >Voice and Robotics, Episode 17: Installing a ROS Bridge
We've got CARLA working -- let's livecode and try to get a ROS bridge installed so we can control carla with voice. Build...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi guys! Sorry, it is not documented. Working combination:
PythonClient
from master branchcarla_ros_bridge
from master branchI also have Carla 0.82 Here is a workaround, I hardcoded scene.map_name as string “Town01”
Then you have another error that CarlaMap object takes 4 arguments but only 2 provided. Missing values for pixel_density, node_density For this, you have to change the map.py file line 20:
to
pixel_density = 0.1643, node_density = 50
I found the values from previous versions of this file