question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Carla ROS bridge: 'SceneDescription' object has no attribute 'map_name'

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
danil-tolkachevcommented, Oct 26, 2018

Hi guys! Sorry, it is not documented. Working combination:

  • Carla binaries form 0.8.4 release
  • PythonClient from master branch
  • carla_ros_bridge from master branch
2reactions
anshulpaigwarcommented, Oct 26, 2018

I also have Carla 0.82 Here is a workaround, I hardcoded scene.map_name as string “Town01”

map_handler = MapHandler("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:

self.carla_map = CarlaMap(map_name)

to

self.carla_map = CarlaMap(map_name, 0.1643, 50)

pixel_density = 0.1643, node_density = 50

I found the values from previous versions of this file

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found