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

vinmean's profile - activity

2020-01-20 07:13:13 -0500 received badge  Famous Question (source)
2020-01-20 07:13:13 -0500 received badge  Notable Question (source)
2019-04-10 04:49:59 -0500 received badge  Famous Question (source)
2018-11-08 14:16:52 -0500 received badge  Notable Question (source)
2018-11-08 04:19:33 -0500 received badge  Popular Question (source)
2018-11-08 03:12:16 -0500 asked a question How to use getNodeHandle ?

How to use getNodeHandle ? I have a node which uses private node handle to advertise topics. I wanted to subscribe to a

2017-10-15 11:48:30 -0500 received badge  Famous Question (source)
2017-08-03 21:15:24 -0500 received badge  Famous Question (source)
2017-08-03 21:15:24 -0500 received badge  Notable Question (source)
2017-08-03 21:15:24 -0500 received badge  Popular Question (source)
2017-05-29 03:46:03 -0500 edited question Can rosbag 'buffer exceeded' error be overcome by increasing the RAM?

Can rosbag 'buffer exceeded' error be overcome by increasing the RAM? I am trying to record a number of topics which inc

2017-05-29 03:45:09 -0500 asked a question Can rosbag 'buffer exceeded' error be overcome by increasing the RAM?

Can rosbag 'buffer exceeded' error be overcome by increasing the RAM? I am trying to record a number of topics which inc

2017-03-26 02:33:11 -0500 received badge  Popular Question (source)
2017-03-07 05:45:22 -0500 received badge  Famous Question (source)
2017-03-07 05:45:22 -0500 received badge  Popular Question (source)
2017-03-07 05:45:22 -0500 received badge  Notable Question (source)
2017-02-21 19:37:39 -0500 asked a question What is the difference between using a ROS timer and CPU timer?

I want a while loop to run at 400 Hz. I used the below format for my loop

ros::Rate loop_rate(400)
while(ros::ok())
{
  //do stuffs
  ros::spinOnce();
  loop_rate.sleep();
}

I even published a topic within the loop and when the topic is subscribed to, it shows 400Hz. But when I use a cpu clock based timer, the loop seems to run much faster. So when I use a ros::Rate::sleep() is there no guarantee that the individual steps run at the set frequency?

boost::timer t;
while(ros::ok())
{
  //do stuffs
  std::cout<< t.elapsed() << std::endl;
  t.restart();
  ros::spinOnce();
  loop_rate.sleep();
}

The output of the timer is as below (in Secs) which should have been around 0.0025 for a 400 Hz loop.

0.000118
0.000109
0.000138
0.000123
.
.
2017-02-21 05:04:10 -0500 received badge  Famous Question (source)
2017-01-22 21:43:47 -0500 answered a question Issues with sourcing and overlaying packages

Clear the devel and build folder (along with hidden files) and do a catkin_make again. The devel/.catkin and build/.project files at times have details of other workspaces for some reason.

2017-01-11 18:26:21 -0500 received badge  Scholar (source)
2017-01-11 18:25:45 -0500 received badge  Notable Question (source)
2017-01-09 16:25:27 -0500 received badge  Notable Question (source)
2017-01-08 23:43:38 -0500 received badge  Popular Question (source)
2017-01-08 22:19:34 -0500 received badge  Student (source)
2017-01-08 21:55:48 -0500 answered a question remote roslaunch searching local PC for launch file

The workaround I did finally was to run the launch file from a shell script in the embedded platform. I wrote the roslaunch command on a shell script and placed it in the package folder. Then called the shell script like a node from the remote PC launch file.

<node machine="tegra" type=run_launch.sh pkg=ros_package_name name=run_launch output="screen"/>
2017-01-04 17:21:49 -0500 commented answer "Incompatible ssh peer" when launching a remote node

I upgraded paramiko on the PC

2017-01-02 21:16:58 -0500 commented question unable to solve "nvcc fatal: A single input file is required for a non-link phase when an outputfile is specified" error

Thank you. I removed the parentheses from the command and then it executes without any error. So how do I ensure cmake generates a command without these brackets? I see that only the vtk command options seems to have this problem.

2017-01-02 19:10:22 -0500 received badge  Editor (source)
2017-01-02 19:07:56 -0500 asked a question unable to solve "nvcc fatal: A single input file is required for a non-link phase when an outputfile is specified" error

I am unable to find if there is any problem with the below build command generated by catkin_make. Similar questions on forums say that there must be some problem with the syntax of the command generated by cmake. Could some one help me find it ?

My system arch is aarch64 (Nvidia TX1) and OS is ubuntu 16.04. The same code builds perfectly on my ubuntu PC.

 -- Generating dependency file: /home/ubuntu/workspace/Jetson/ROS_Workspace/branches/tx1/iruVizhi_v1/build/ros_kinfu/kinfu/pcl_kinfu_large_scale/CMakeFiles/KinfuLargeScaleCUDA.dir/kinfu_large_scale/src/cuda/KinfuLargeScaleCUDA_generated_colors.cu.o.NVCC-depend
Scanning dependencies of target KinfuLargeScaleCPP
/usr/local/cuda-8.0/bin/nvcc -M -D__CUDACC__ /home/ubuntu/workspace/Jetson/ROS_Workspace/branches/tx1/iruVizhi_v1/src/ros_kinfu/kinfu/pcl_kinfu_large_scale/kinfu_large_scale/src/cuda/colors.cu -o /home/ubuntu/workspace/Jetson/ROS_Workspace/branches/tx1/iruVizhi_v1/build/ros_kinfu/kinfu/pcl_kinfu_large_scale/CMakeFiles/KinfuLargeScaleCUDA.dir/kinfu_large_scale/src/cuda/KinfuLargeScaleCUDA_generated_colors.cu.o.NVCC-depend -ccbin /usr/bin/cc -m64 -DROS_BUILD_SHARED_LIBS=1 -DROS_PACKAGE_NAME=\"kinfu\" -DROSCONSOLE_BACKEND_LOG4CXX -DDISABLE_OPENNI2 -DDISABLE_PCAP -DDISABLE_PNG -DvtkFiltersFlowPaths_AUTOINIT=1 ( vtkFiltersParallelFlowPaths ) -DvtkIOExodus_AUTOINIT=1 ( vtkIOParallelExodus ) -DvtkIOGeometry_AUTOINIT=1 ( vtkIOMPIParallel ) -DvtkIOImage_AUTOINIT=1 ( vtkIOMPIImage ) -DvtkIOSQL_AUTOINIT=2 ( vtkIOMySQL,vtkIOPostgreSQL ) -DvtkRenderingContext2D_AUTOINIT=1 ( vtkRenderingContextOpenGL ) -DvtkRenderingCore_AUTOINIT=4 ( vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL ) -DvtkRenderingFreeType_AUTOINIT=2 ( vtkRenderingFreeTypeFontConfig,vtkRenderingMatplotlib ) -DvtkRenderingLIC_AUTOINIT=1 ( vtkRenderingParallelLIC ) -DvtkRenderingVolume_AUTOINIT=1 ( vtkRenderingVolumeOpenGL ) -DDISABLE_OPENNI2 -DKinfuLargeScaleCUDA_EXPORTS -Xcompiler ,\"-fPIC\",\"-g\" -D_FORCE_INLINES -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 --ftz=true --prec-div=false --prec-sqrt=false -DNVCC -I/usr/local/cuda-8.0/include -I/usr/include/vtk-6.2 -I/usr/include -I/usr/include/jsoncpp -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -I/usr/include/freetype2 -I/usr/include/aarch64-linux-gnu/freetype2 -I/usr/include/aarch64-linux-gnu -I/usr/include/hdf5/openmpi -I/usr/include/libxml2 -I/usr/include/python2.7 -I/usr/include/tcl -I/home/ubuntu/workspace/Jetson/ROS_Workspace/branches/tx1/iruVizhi_v1/src/ros_kinfu/kinfu/pcl_kinfu_large_scale/containers/include -I/home/ubuntu/workspace/Jetson/ROS_Workspace/branches/tx1/iruVizhi_v1/src/ros_kinfu/kinfu/pcl_kinfu_large_scale/utils/include -I/home/ubuntu/workspace/Jetson/ROS_Workspace/branches/tx1/iruVizhi_v1/src/ros_kinfu/kinfu/pcl_kinfu_large_scale/kinfu_large_scale/include -I/home/ubuntu/workspace/Jetson/ROS_Workspace/branches/tx1/iruVizhi_v1/src/ros_kinfu/kinfu/pcl_kinfu_large_scale/kinfu_large_scale/src -I/usr/include/pcl-1.7 -I/usr/include/eigen3 -I/usr/include/ni -I/usr/local/cuda-8.0/include
nvcc fatal   : A single input file is required for a non-link phase when an outputfile is specified
CMake Error at KinfuLargeScaleCUDA_generated_colors.cu.o.cmake:207 (message):
  Error generating
  /home/ubuntu/workspace/Jetson/ROS_Workspace/branches/tx1/iruVizhi_v1/build/ros_kinfu/kinfu/pcl_kinfu_large_scale/CMakeFiles/KinfuLargeScaleCUDA.dir/kinfu_large_scale/src/cuda/./KinfuLargeScaleCUDA_generated_colors.cu.o

The difference I can make out when comparing the build output from my PC is that the tx1 compile options have some lines with round brackets. Is that a problem?

-DvtkFiltersFlowPaths_AUTOINIT=1 ( vtkFiltersParallelFlowPaths )

May be insignificant, but I also get the below warning on tx1 and not on my pc

  Argument not separated from preceding token by whitespace.
This warning is for project ...
(more)
2016-12-23 00:47:50 -0500 received badge  Enthusiast
2016-12-22 00:46:11 -0500 asked a question remote roslaunch searching local PC for launch file

I have to run a remote launch file running on an embedded board. My PC runs indigo and the board runs kinetic. The launch file in my PC is

<launch>
<machine name = "tegra-ubuntu" address="tx1" user="ubuntu" password="ubuntu" env-loader="/home/ubuntu/workspace/Jetson/ROS_Workspace/branches/tx1/iruVizhi_v1/setup.sh" default="true"/>
<include file="$(find xsens_driver)/launch/xsens_driver.launch" machine="tegra-ubuntu"/>
<node machine="tegra-ubuntu" type="mtnode.py" pkg="xsens_driver" name="xsens_driver" output="screen"/>
<node machine="tegra-ubuntu" type="odom_listener_node" pkg="ego_motion" name="ego_motion_node" output="screen"/>
</launch>

However, when I do a roslaunch, the launch fails by saying ResourceNotFound. Even though I mentioned the machine to find the launch file, the search seems to happen in the local system. If I give the complete path of the launch file like this

<include file="/home/ubuntu/workspace/Jetson/ROS_Workspace/branches/tx1/iruVizhi_v1/src/xsens_driver/launch/xsens_driver.launch" machine="tegra-ubuntu"/>

I get the error

Invalid roslaunch XML syntax: [Errno 2] No such file or directory:

I am pretty sure that my file paths are correct. Remote nodes doesn't have any issue with execution.

What could possibly be a reason for this?

2016-12-20 04:57:39 -0500 received badge  Popular Question (source)
2016-12-18 17:18:55 -0500 commented question "Incompatible ssh peer" when launching a remote node

Thanks for the comment. Yes, you were right. The PC was running 14.04 and the embedded device was running 16.04.

2016-12-18 16:59:19 -0500 answered a question "Incompatible ssh peer" when launching a remote node

I upgraded paramiko to fix this problem

sudo pip install paramiko --upgrade
2016-12-18 01:16:03 -0500 asked a question "Incompatible ssh peer" when launching a remote node

I want to launch a node on a remote embedded system from my PC. My PC happens to run ROS indigo and the embedded platform runs ROS Kinetic. I made a launch file to run remote node.

<launch>
<machine name = "tegra-ubuntu" address="101.134.21.165" user="ubuntu" env-loader="/opt/ros/kinetic/env.sh"/>
<node machine="tegra-ubuntu" name="ego_motion" pkg="ego_motion" type="odom_listener_node"/>
</launch>

When I do a ros launch from the host system to this remote system I get the following error

deepak@sword:~/workspace/ROS_Workspace/iruVizhi_v1/src/remote/launch$ roslaunch remote remote.launch 
... logging to /home/deepak/.ros/log/ff8de646-c4e3-11e6-a1a7-ac7ba196454c/roslaunch-sword-18118.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://101.134.21.160:38258/
remote[101.134.21.165-0] starting roslaunch
remote[101.134.21.165-0]: creating ssh connection to 101.134.21.165:22, user[ubuntu]
remote[101.134.21.165-0]: failed to launch on tegra-ubuntu:

Unable to establish ssh connection to [ubuntu@101.134.21.165:22]: Incompatible ssh peer (no acceptable kex algorithm)


[101.134.21.165-0] killing on exit
unable to start remote roslaunch child: 101.134.21.165-0
The traceback for the exception was written to the log file

I get this "Incompatible ssh peer (no acceptable kex algorithm)" error. Is there a fix for this problem? Is it because I use ROS Indigo and Kinetic on these machines?