You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, it is not working. When I examined it carefully, I found that the following line in capture.cpp is doing nothing.
ROS_ASSERT_MSG(nh_pvt_.getParam("cam_ids", cam_id_vec),"If cam_aliases are provided, they should be the same number as cam_ids and should correspond in order!");
This results in cam_id_vec.size() equals to 0.
I further found that ROS_ASSERT_MSG(CONDITION, MSG) is doing nothing. e.g. I put the following code in capture.cpp,
It does not give me any error or feeback msg during the launch.
To make things get working. I ended up changing the code into:
//ROS_ASSERT_MSG(nh_pvt_.getParam("cam_ids", cam_id_vec),"If cam_aliases are provided, they should be the same number as cam_ids and should correspond in order!");
int cam_id_vec_int;
nh_pvt_.getParam("cam_ids", cam_id_vec_int);
cam_id_vec.push_back(cam_id_vec_int);
...
//ROS_ASSERT_MSG(nh_pvt_.getParam("master_cam", mcam_int),"master_cam is required!");
nh_pvt_.getParam("master_cam", mcam_int);
master_cam_id_=to_string(mcam_int);
Take a look at the multi_camera example showed in the params folder. Also this code is setup for hardware triggering of cameras, so you will need to use GPIO cables to hook up the cameras together.
Hi,
Thanks for providing the driver. Very useful.
I had a problem with reading list of cameras from test_params.yaml. I followed you documentation and set the yaml file as follows:
Unfortunately, it is not working. When I examined it carefully, I found that the following line in capture.cpp is doing nothing.
ROS_ASSERT_MSG(nh_pvt_.getParam("cam_ids", cam_id_vec),"If cam_aliases are provided, they should be the same number as cam_ids and should correspond in order!");
This results in
cam_id_vec.size()
equals to 0.I further found that
ROS_ASSERT_MSG(CONDITION, MSG)
is doing nothing. e.g. I put the following code in capture.cpp,It does not give me any error or feeback msg during the launch.
To make things get working. I ended up changing the code into:
...
and the yaml file into:
However, the code only runs one camera in this way.
So, I'd like to if the raw code is working properly on your machine? Can you suggest me what might be the problem on my side?
Thanks.
Su
The text was updated successfully, but these errors were encountered: