Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

gazebo radar plugin

Hi, I am trying to add radar plugin to my bot in gazebo, for that i got modeCRadar plugin from https://github.com/ros-simulation/gazebo_radar_plugin, and followed the reference of use from https://github.com/osrf/uctf/commit/7a2c50ba9b28005f14046a9c0ac852a32632b776. But not able to use it has if put sensor type="logical_camera" i get below error

Unpause physics service call failed: unable to connect to service: [Errno 104] Connection reset by peer Segmentation fault (core dumped)

If i put sensor type="radar" node will run with died, but no data publishing.

<?xml version="1.0"?>
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="radar">
<xacro:macro name="radar" params="prefix:=rad robot_namespace:=/">


    <link name="rad_link">
        <collision>
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <geometry>
                <box size="0.05 0.05 0.05"/>
            </geometry>
        </collision>

        <visual>
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <geometry>
                <box size="0.05 0.05 0.05"/>
                <material name="blue"/>
                <!-- <mesh filename="package://husky_description/meshes/accessories/dummy_camera.dae" /> -->
            </geometry>
        </visual>

        <inertial>
            <mass value="1e-5" />
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <inertia ixx="1e-6" ixy="0" ixz="0" iyy="1e-6" iyz="0" izz="1e-6" />
        </inertial>

    </link>
    <joint name="radar_joint" type="fixed">
        <axis xyz="0.2 0 0.2" />
        <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
        <parent link="top_plate_link"/>
        <child link="rad_link"/>
    </joint>

    <gazebo reference="rad_link">
        <sensor name="radar" type="logical_camera">
            <visualize>true</visualize>
            <always_on>true</always_on>
            <update_rate>10</update_rate>
            <plugin name="mode_c_radar" filename="libModeCRadarPlugin.so">
                <robotNamespace>${robot_namespace}</robotNamespace>
                <radar_sensor_frameid>rad_link</radar_sensor_frameid>
                <radar_topic_ros>radar_topic</radar_topic_ros>
                <position_noise>
                    <noise>
                        <type>gaussian</type>
                        <mean>0.0</mean>
                        <stddev>0.001</stddev>
                    </noise>
                </position_noise>
                <known_model_types>
                    <type>husky</type>
                    <type>delta_wing</type>
                </known_model_types>
            </plugin>
        </sensor>
    </gazebo>
</xacro:macro>

</robot>

gazebo radar plugin

Hi, I am trying to add radar plugin to my bot in gazebo, for that i got modeCRadar plugin from https://github.com/ros-simulation/gazebo_radar_plugin, and followed the reference of use from https://github.com/osrf/uctf/commit/7a2c50ba9b28005f14046a9c0ac852a32632b776. But not able to use it has if put sensor type="logical_camera" i get below error

Unpause physics service call failed: unable to connect to service: [Errno 104] Connection reset by peer Segmentation fault (core dumped)

If i put sensor type="radar" node will run with died, but no data publishing.

<?xml version="1.0"?>
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="radar">
<xacro:macro name="radar" params="prefix:=rad robot_namespace:=/">


    <link name="rad_link">
        <collision>
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <geometry>
                <box size="0.05 0.05 0.05"/>
            </geometry>
        </collision>

        <visual>
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <geometry>
                <box size="0.05 0.05 0.05"/>
                <material name="blue"/>
                <!-- <mesh filename="package://husky_description/meshes/accessories/dummy_camera.dae" /> -->
            </geometry>
        </visual>

        <inertial>
            <mass value="1e-5" />
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <inertia ixx="1e-6" ixy="0" ixz="0" iyy="1e-6" iyz="0" izz="1e-6" />
        </inertial>

    </link>
    <joint name="radar_joint" type="fixed">
        <axis xyz="0.2 0 0.2" />
        <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
        <parent link="top_plate_link"/>
        <child link="rad_link"/>
    </joint>

    <gazebo reference="rad_link">
        <sensor name="radar" type="logical_camera">
            <visualize>true</visualize>
            <always_on>true</always_on>
            <update_rate>10</update_rate>
            <plugin name="mode_c_radar" filename="libModeCRadarPlugin.so">
                <robotNamespace>${robot_namespace}</robotNamespace>
                <radar_sensor_frameid>rad_link</radar_sensor_frameid>
                <radar_topic_ros>radar_topic</radar_topic_ros>
                <position_noise>
                    <noise>
                        <type>gaussian</type>
                        <mean>0.0</mean>
                        <stddev>0.001</stddev>
                    </noise>
                </position_noise>
                <known_model_types>
                    <type>husky</type>
                    <type>delta_wing</type>
                </known_model_types>
            </plugin>
        </sensor>
    </gazebo>
</xacro:macro>
 </robot>

</robot>

gazebo radar plugin

Hi, I am trying to add radar plugin to my bot in gazebo, for that i got modeCRadar plugin from https://github.com/ros-simulation/gazebo_radar_plugin, and followed the reference of use from https://github.com/osrf/uctf/commit/7a2c50ba9b28005f14046a9c0ac852a32632b776. But not able to use it has if put sensor type="logical_camera" i get below error

Unpause physics service call failed: unable to connect to service: [Errno 104] Connection reset by peer Segmentation fault (core dumped)

If i put sensor type="radar" node will run with is running without process died, but no data publishing.

<?xml version="1.0"?>
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="radar">
<xacro:macro name="radar" params="prefix:=rad robot_namespace:=/">


    <link name="rad_link">
        <collision>
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <geometry>
                <box size="0.05 0.05 0.05"/>
            </geometry>
        </collision>

        <visual>
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <geometry>
                <box size="0.05 0.05 0.05"/>
                <material name="blue"/>
                <!-- <mesh filename="package://husky_description/meshes/accessories/dummy_camera.dae" /> -->
            </geometry>
        </visual>

        <inertial>
            <mass value="1e-5" />
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <inertia ixx="1e-6" ixy="0" ixz="0" iyy="1e-6" iyz="0" izz="1e-6" />
        </inertial>

    </link>
    <joint name="radar_joint" type="fixed">
        <axis xyz="0.2 0 0.2" />
        <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
        <parent link="top_plate_link"/>
        <child link="rad_link"/>
    </joint>

    <gazebo reference="rad_link">
        <sensor name="radar" type="logical_camera">
            <visualize>true</visualize>
            <always_on>true</always_on>
            <update_rate>10</update_rate>
            <plugin name="mode_c_radar" filename="libModeCRadarPlugin.so">
                <robotNamespace>${robot_namespace}</robotNamespace>
                <radar_sensor_frameid>rad_link</radar_sensor_frameid>
                <radar_topic_ros>radar_topic</radar_topic_ros>
                <position_noise>
                    <noise>
                        <type>gaussian</type>
                        <mean>0.0</mean>
                        <stddev>0.001</stddev>
                    </noise>
                </position_noise>
                <known_model_types>
                    <type>husky</type>
                    <type>delta_wing</type>
                </known_model_types>
            </plugin>
        </sensor>
    </gazebo>
</xacro:macro>
 </robot>

gazebo radar plugin

Hi, I am trying to add radar plugin to my bot in gazebo, for that i got modeCRadar plugin from https://github.com/ros-simulation/gazebo_radar_plugin, and followed the reference of use from https://github.com/osrf/uctf/commit/7a2c50ba9b28005f14046a9c0ac852a32632b776. But not able to use it has if put sensor type="logical_camera" i get below error

Unpause physics service call failed: unable to connect to service: [Errno 104] Connection reset by peer Segmentation fault (core dumped)

If i I put sensor type="radar" node is running without process died, but no data publishing.

<?xml version="1.0"?>
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="radar">
<xacro:macro name="radar" params="prefix:=rad robot_namespace:=/">


    <link name="rad_link">
        <collision>
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <geometry>
                <box size="0.05 0.05 0.05"/>
            </geometry>
        </collision>

        <visual>
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <geometry>
                <box size="0.05 0.05 0.05"/>
                <material name="blue"/>
                <!-- <mesh filename="package://husky_description/meshes/accessories/dummy_camera.dae" /> -->
            </geometry>
        </visual>

        <inertial>
            <mass value="1e-5" />
            <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
            <inertia ixx="1e-6" ixy="0" ixz="0" iyy="1e-6" iyz="0" izz="1e-6" />
        </inertial>

    </link>
    <joint name="radar_joint" type="fixed">
        <axis xyz="0.2 0 0.2" />
        <origin xyz="0.2 0 0.2" rpy="0 0 0"/>
        <parent link="top_plate_link"/>
        <child link="rad_link"/>
    </joint>

    <gazebo reference="rad_link">
        <sensor name="radar" type="logical_camera">
            <visualize>true</visualize>
            <always_on>true</always_on>
            <update_rate>10</update_rate>
            <plugin name="mode_c_radar" filename="libModeCRadarPlugin.so">
                <robotNamespace>${robot_namespace}</robotNamespace>
                <radar_sensor_frameid>rad_link</radar_sensor_frameid>
                <radar_topic_ros>radar_topic</radar_topic_ros>
                <position_noise>
                    <noise>
                        <type>gaussian</type>
                        <mean>0.0</mean>
                        <stddev>0.001</stddev>
                    </noise>
                </position_noise>
                <known_model_types>
                    <type>husky</type>
                    <type>delta_wing</type>
                </known_model_types>
            </plugin>
        </sensor>
    </gazebo>
</xacro:macro>
 </robot>