Community Profile

# Cam Salzberger

### MathWorks

Last seen: 2 dagen ago Active since 2015

I am a Software Engineer at MathWorks, and a Mechanical Engineer by education. I specialize in Robotics.

In my free time, I enjoy hiking and parkour.

All

#### Content Feed

View by

How to get an array from a Rosbag
I provided some guidance and sample code to a similar question here. That should help get you moving in the right direction! -C...

10 dagen ago | 0

Solved

The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

11 dagen ago

Finding value pairs in subsequent arrays
Hello Kai, If the order doesn't matter (i.e. the "call" doesn't need to be before the "put"), you could separate out the data i...

13 dagen ago | 0

| accepted

When can ROS actions be supported during the custom message generation?
I provided some information on why this is the case here. There is no workaround for manually generating custom actions in R2021...

25 dagen ago | 0

| accepted

How to pick the content out of a ROS Point message?
Hello Andreas, cellfun is useful for operations like this, where you want to do the same thing on each cell. Probably the best ...

ongeveer een maand ago | 1

| accepted

what's TruckTrailerPlot function?
That example is in the Model Predictive Control Toolbox. Do you have that one? -Cam

ongeveer een maand ago | 0

MATLAB crashes after running ros2bag
Hello Nurullah, /opt/ros/foxy/lib/librosbag2_storage_default_plugins.so This indicates it's using your ROS 2 Foxy library on y...

ongeveer een maand ago | 1

| accepted

Creating custom ROS2 Message in Simulink using ROS2 Foxy
Hello Harun, My money would be on this specific issue being cause by AMENT_PREFIX_PATH being checked for include files during t...

ongeveer 2 maanden ago | 1

| accepted

If you're using tic, toc, and var=input('prompt'), is there a way for toc to interrupt the user input if they take too long to answer?
Hello Christina, You could try using an inputdlg to ask the question, instead of keeping it in the command window. You could ge...

ongeveer 2 maanden ago | 0

| accepted

How to launch RVIZ from Matlab?
Hello Andreas, My suspicion of what is happening here is library path conflict. ROS Toolbox ships with ROS libraries, which pro...

2 maanden ago | 0

| accepted

Add option to select networkinterface for libwmros2server
Hello Andrei, ROS 2 itself doesn't currently provide an easy way to select a particular network interface to use (like an envir...

2 maanden ago | 1

Why do I receive: Error using ros.internal.ROSProjectBuilder/buildPackage (line 534) Error building package: build log.
The key part of the error message in the log file is right here: Path: <...> exceeds the OS max path limit. The fully qualified...

2 maanden ago | 0

| accepted

Hello Angel, This is likely to be caused by the publisher on the ROS machine not having the ROS_IP environment variable set or ...

2 maanden ago | 0

Cannot echo messages coming from Matlab ROS2
Hello Sergei, Please see this answer for up-to-date information on the Dashing-Foxy connectivity issue, and workarounds. -Cam

2 maanden ago | 1

| accepted

How can I update a dependent property
Hello Amine, Dependent properties aren't just initially calculated based on other properties, they are always calculated using ...

3 maanden ago | 0

how to fix ode45 parameters?
The value of "y" (the "state" input to "derivative") is going infinite or NaN at some point. I'd suggest creating a helper funct...

3 maanden ago | 0

How can I set the labels of multiple axes without iteration?
Hello Yazan, If, as you create the axes, you save the handles to one reference axes array, you can easily set the labels like s...

3 maanden ago | 0

| accepted

Problems with ROS service client in MATLAB
Hello Massimo, I attempted to reproduce this by taking this mavros_msgs/CommandTOL service defintiion. Fortunately it doesn't e...

4 maanden ago | 0

Niryo One - MATLA interface
Hello Afsoon, Can you try running this code in MATLAB: !cmake --version If you see any warning messages about libcurl or libs...

5 maanden ago | 0

| accepted

How can ROS Custom Messages be exchanged or even moved to another folder?
Hello Sven, The "addpath" command is only a small part of getting the custom messages working with MATLAB. It is required to re...

5 maanden ago | 0

| accepted

Lidar Labeler Rosbag Loading Error (Ubuntu 20.04): Could not locate the base directory for ros.
Hello Daniel, Does the error occur if you try to load the rosbag data outside of the Lidar Labeler? bag = rosbag(filePath); m...

6 maanden ago | 1

| accepted

Hello Dominika, We have a similar example that demonstrates a robot (either real or simulated in Gazebo) following an object. I...

6 maanden ago | 0

| accepted

Generating ROS Custom Action Service Messages in R2021a
Hello Wesley, In R2020a and before, custom actions were not officially supported for ROS Toolbox. It's noted in the documentati...

6 maanden ago | 0

| accepted

MATLAB ros 3D visualizing in real time
Hello Eirik, You can create a ROS subscriber for the PointCloud2 topic, and in the callback have it update a scatter3 plot show...

7 maanden ago | 0

Receive data from ros2 /scan topic does not work, while it is possible for /odom and /cmd_vel topic
Hello Bernd, There are two main culprits that I always look at first when there is difficulty communicating in ROS 2, but there...

7 maanden ago | 0

| accepted

Generate custom ROS messages in Matlab running on Windows using Cmake from Ubuntu install on WSL2
Hello Eric, You will need CMake installed on your Windows system, along with Visual Studio 2017 and Python 2.7. It's unlikely t...

7 maanden ago | 1

| accepted

MATLAB freezes the OS when using java environments: a Fatal Java Exception occurs (Resource temporarily unavailable)
I assume that you are using SSH with X11 forwarding to work with MATLAB on a remote machine? I would recommend against doing tha...

7 maanden ago | 0

Would I able to load a Gazebo world as a training model into rlSimulinkEnv function ?

7 maanden ago | 0

| accepted

how to generate the custom message
This is the same issue as here. Please see that question and this one for more folder structure details. -Cam

7 maanden ago | 0

| accepted