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

JuliusS's profile - activity

2022-12-21 15:41:50 -0500 received badge  Famous Question (source)
2022-01-03 11:28:15 -0500 received badge  Self-Learner (source)
2022-01-03 11:28:15 -0500 received badge  Teacher (source)
2022-01-03 00:24:46 -0500 received badge  Notable Question (source)
2022-01-02 10:39:04 -0500 marked best answer ros::package::getPath throws bad_alloc

I have quite a large ros repo and everything was working fine for a very long time. For some reason running it after Christmas I started seeing the following:

terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc [kinematic_simulation-5] process has died [pid 42457, exit code -6, cmd /home/jj/ws/phd_ws/ws/devel/lib/perceptive_mpc/as_mpc_simulation_node /joint_states:=/as_control/joint_states __name:=kinematic_simulation __log:=/home/jj/.ros/log/59272bc6-6995-11ec-9acb-dc8b2894491d/kinematic_simulation-5.log]. log file: /home/jj/.ros/log/59272bc6-6995-11ec-9acb-dc8b2894491d/kinematic_simulation-5*.log

I have isolated the error to the following line:

std::string packagePath = ros::package::getPath("perceptive_mpc");

I'm using melodic, docker. the perceptive_mpc package is built and sourced. The line itself is inside the package so its definitely seen. roslib is inside dependencies. I just have no clue at all. Only seen one issue similar online : https://answers.ros.org/question/2963...

Oh and most interesting of all: if I put an absolute path myself instead of using ros:package:getPath -> everything runs fine.

Absolutely any help or advice appreciated!

2022-01-02 10:39:04 -0500 received badge  Scholar (source)
2022-01-02 10:38:59 -0500 answered a question ros::package::getPath throws bad_alloc

If anyone encounters this -> Its likely todo with docker setup. In my case it was related to mounting /usr/share. O

2022-01-02 10:38:26 -0500 received badge  Popular Question (source)
2021-12-31 10:37:12 -0500 received badge  Student (source)
2021-12-30 11:59:57 -0500 edited question ros::package::getPath throws bad_alloc

ros::package::getPath throws bad_alloc I have quite a large ros repo and everything was working fine for a very long tim

2021-12-30 11:59:57 -0500 received badge  Editor (source)
2021-12-30 11:34:14 -0500 asked a question ros::package::getPath throws bad_alloc

ros::package::getPath throws bad_alloc I have quite a large ros repo and everything was working fine for a very long tim

2021-05-31 13:55:30 -0500 received badge  Popular Question (source)
2021-05-30 09:39:08 -0500 edited question How to quickly teleport in MoveIt?

How to quickly teleport in MoveIt? Hi! So I've been working on this planning problem where I need to teleport a robot a

2021-05-30 09:38:49 -0500 asked a question How to quickly teleport in MoveIt?

How to quickly teleport in MoveIt? Hi! So I've been working on this planning problem where I need to teleport a robot ar

2021-05-30 09:37:55 -0500 asked a question How to quickly teleport in MoveIt?

How to quickly teleport in MoveIt? Hi! So I've been working on this planning problem where I need to teleport a robot ar

2021-03-19 06:49:24 -0500 received badge  Famous Question (source)
2020-07-05 20:23:07 -0500 received badge  Notable Question (source)
2020-05-14 07:30:53 -0500 received badge  Popular Question (source)
2020-04-29 03:31:30 -0500 received badge  Enthusiast
2020-04-28 16:15:42 -0500 asked a question URDF/MoveIt parental relationship reverse

URDF/MoveIt parental relationship reverse Hi, This questions is 'how to best approach this problem in ROS' type of que

2019-04-17 15:05:06 -0500 received badge  Notable Question (source)
2019-04-17 15:05:06 -0500 received badge  Popular Question (source)
2018-08-31 12:27:36 -0500 commented question Joint constraint problem

Same here ! It seems whenever I add joint constraints trac-ik fails to sample accordingly!

2018-05-30 10:54:33 -0500 answered a question urdf_sim_tutorial step 3 no joint_state_controller

Resolved after installing packages that are for some reason left out of gazebo and not mentioned in the urdf_sim_tutoria

2018-05-30 10:36:45 -0500 asked a question urdf_sim_tutorial step 3 no joint_state_controller

urdf_sim_tutorial step 3 no joint_state_controller in the urdf_sim_tutorial step 3 ,http://wiki.ros.org/urdf/Tutorials/U