1
$\begingroup$

Rosanswers logo

Error:

[gzclient   -2] gzclient: /usr/include/boost/smart_ptr/shared_ptr.hpp:734: typename boost::detail::sp_member_access<T>::type boost::shared_ptr<T>::operator->() const [with T = gazebo::rendering::Camera; typename boost::detail::sp_member_access<T>::type = gazebo::rendering::Camera*]: Assertion `px != 0' failed.
[gzclient   -2] Aborted
[ERROR] [gzclient   -2]: process has died [pid 3246, exit code 134, cmd 'gzclient   '].

Launch file:

# Start Gazebo server
  start_gazebo_server_cmd = IncludeLaunchDescription(
    PythonLaunchDescriptionSource(os.path.join(pkg_gazebo_ros, 'launch', 'gzserver.launch.py')),
    condition=IfCondition(use_simulator),
    launch_arguments={'world': world}.items())

  # Start Gazebo client    
  start_gazebo_client_cmd = IncludeLaunchDescription(
    PythonLaunchDescriptionSource(os.path.join(pkg_gazebo_ros, 'launch', 'gzclient.launch.py')),
    condition=IfCondition(PythonExpression([use_simulator, ' and not ', headless])))

Originally posted by iimata on ROS Answers with karma: 40 on 2022-05-11

Post score: 0

$\endgroup$

1 Answer 1

1
$\begingroup$

Rosanswers logo

Based on this related question and it's answer:

Could you try sourcing Gazebo's setup after sourcing your workspace? . /usr/share/gazebo/setup.sh This is needed to set some necessary environment variables in case they're going to be overridden, which is a common use case. More context in this issue.


Originally posted by ljaniec with karma: 3064 on 2022-05-11

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by iimata on 2022-05-13:
thank you,its worked <3

Comment by ljaniec on 2022-05-13:
Please accept this answer so the question is marked as solved then :)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.