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

i got this error while im launching my robot

asked 2022-05-11 14:04:40 -0600

iimata gravatar image

updated 2022-07-10 12:11:00 -0600

lucasw gravatar image

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])))
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-05-11 15:46:46 -0600

ljaniec gravatar image

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.

edit flag offensive delete link more

Comments

thank you,its worked <3

iimata gravatar image iimata  ( 2022-05-13 03:42:16 -0600 )edit

Please accept this answer so the question is marked as solved then :)

ljaniec gravatar image ljaniec  ( 2022-05-13 03:50:49 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2022-05-11 14:04:40 -0600

Seen: 509 times

Last updated: May 11 '22